Skip to content

Commit c4cb810

Browse files
committed
[SYCL][CUDA] Mark LIT tests not supported by CUDA
Marks LIT tests as UNSUPPORTED that require OpenCL or behavior not supported by PI CUDA, e.g., online compilation/linking. Marks tests as XFAIL that could be supported by CUDA but aren't yet. Signed-off-by: Bjoern Knafla <bjoern@codeplay.com>
1 parent af63f10 commit c4cb810

File tree

4 files changed

+19
-4
lines changed

4 files changed

+19
-4
lines changed

sycl/test/ordered_queue/prop.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
// RUN: %clangxx -fsycl %s -o %t1.out -L %opencl_libs_dir -lOpenCL
1+
// REQUIRES: opencl
2+
// UNSUPPORTED: cuda
3+
// CUDA does not support OpenCL interop.
4+
//
5+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out -L %opencl_libs_dir -lOpenCL
26
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
37
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
48

sycl/test/program_manager/env_vars.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
// RUN: %clangxx -O0 -fsycl %s -o %t.out -lsycl
1+
// REQUIRES: opencl
2+
// UNSUPPORTED: cuda
3+
// CUDA does not support online compilation/linking.
4+
// CUDA does not support OpenCL linker options.
5+
//
6+
// RUN: %clangxx -O0 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -lsycl
27
//
38
// Deprecated SYCL_PROGRAM_BUILD_OPTIONS should work as an alias to
49
// SYCL_PROGRAM_COMPILE_OPTIONS:

sycl/test/usm/mixed2template.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// RUN: %clangxx -fsycl %s -o %t1.out
1+
// XFAIL: cuda
2+
// CUDA does not support USM.
3+
//
4+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out
25
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
36
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
47
// RUN: %GPU_RUN_PLACEHOLDER %t1.out

sycl/test/usm/queue_wait.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// XFAIL: cuda
2+
// CUDA does not support USM.
3+
//
4+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
25
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
36
// RUN: %CPU_RUN_PLACEHOLDER %t.out
47
// RUN: %GPU_RUN_PLACEHOLDER %t.out

0 commit comments

Comments
 (0)