Skip to content

Commit 604b5f4

Browse files
committed
[WIP][SYCL][CUDA] LIT XFAIL/UNSUPPORTED
Remove XFAIL from passing tests. Change tests that should pass but fail as XFAIL, e.g., mark unexpectedly failing sub-buffer test to fix later for SYCL CUDA. Add `REQUIRES: opencl` for LIT tests requiring OpenCL. LIT tests that `REQUIRES: opencl` do not need an `UNSUPPORTED: cuda`. Mark tests of features not supported by SYCL CUDA with `UNSUPPORTED: cuda`. Tests that do not use the CUDA target triple do not require any CUDA related LIT marker. Tests that do not fail with CUDA do not require any CUDA specific LIT marker. Fix LIT test using `-Werror` to fail when the compiler driver warns about an unknown CUDA version as CUDA has otherwise nothing to do with the test. Adapt test to moved `pi_cuda.hpp` header. Some cleanup inside LIT configuration scripts. Signed-off-by: Bjoern Knafla <[email protected]>
1 parent eb373c4 commit 604b5f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+116
-82
lines changed

sycl/test/aot/gpu.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// REQUIRES: ocloc, gpu
2+
// UNSUPPORTED: cuda
3+
// CUDA is not compatible with SPIR.
24

35
// RUN: %clangxx -fsycl -fsycl-targets=spir64_gen-unknown-unknown-sycldevice -Xsycl-target-backend=spir64_gen-unknown-unknown-sycldevice "-device skl" %s -o %t.out
46
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
57
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
8+
79
//==----- gpu.cpp - AOT compilation for gen devices using GEN compiler ------==//
810
//
911
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/aot/multiple-devices.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===------------------------------------------------------------------------===//
88

99
// REQUIRES: opencl-aot, ocloc, aoc, cpu, gpu, accelerator
10+
// UNSUPPORTED: cuda
11+
// CUDA is not compatible with SPIR.
1012

1113
// 1-command compilation case
1214
// Targeting CPU, GPU, FPGA

sycl/test/backend/cuda/primary_context.cpp

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// REQUIRES: cuda
2-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -I%opencl_include_dir -I%cuda_toolkit_include -o %t.out -lcuda -lsycl
2+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -I%opencl_include_dir -I%cuda_toolkit_include -I%sycl_plugins_dir/cuda -o %t.out -lcuda -lsycl
33
// RUN: env SYCL_DEVICE_TYPE=GPU %t.out
44
// NOTE: OpenCL is required for the runtime, even when using the CUDA BE.
55

@@ -11,24 +11,14 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14+
#include "../../helpers.hpp"
1415
#include <CL/sycl.hpp>
15-
#include <CL/sycl/detail/pi_cuda.hpp>
1616
#include <cuda.h>
1717
#include <iostream>
18+
#include <pi_cuda.hpp>
1819

1920
using namespace cl::sycl;
2021

21-
void check(bool condition, const char *conditionString, const char *filename,
22-
const long line) noexcept {
23-
if (!condition) {
24-
std::cerr << "CHECK failed in " << filename << "#" << line << " "
25-
<< conditionString << "\n";
26-
std::abort();
27-
}
28-
}
29-
30-
#define CHECK(CONDITION) check(CONDITION, #CONDITION, __FILE__, __LINE__)
31-
3222
bool isCudaDevice(const device &dev) {
3323
const platform platform = dev.get_info<info::device::platform>();
3424
const std::string platformVersion =

sycl/test/basic_tests/boolean.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
7-
// TODO: investigate incorrect results on cuda backend
86
#include <CL/sycl.hpp>
97

108
#include <cassert>

sycl/test/basic_tests/buffer/buffer_full_copy.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// XFAIL: cuda
2+
// TODO: Fix fail for CUDA.
3+
//
14
// RUN: %clangxx %s -o %t1.out -lsycl
25
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out
36
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t2.out
@@ -6,9 +9,6 @@
69
// RUN: %GPU_RUN_PLACEHOLDER %t2.out
710
// RUN: %ACC_RUN_PLACEHOLDER %t2.out
811

9-
// TODO: cuda_piEnqueueMemBufferCopy not implemented
10-
// XFAIL: cuda
11-
1212
//==------------- buffer_full_copy.cpp - SYCL buffer basic test ------------==//
1313
//
1414
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/buffer/subbuffer.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
1+
// XFAIL: cuda
2+
// TODO: Fix fail for CUDA.
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
58
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// XFAIL: cuda
7-
// TODO: cuda fail due to unimplemented param_name 4121 in cuda_piDeviceGetInfo
8-
99
//==---------- subbuffer.cpp --- sub-buffer basic test ---------------------==//
1010
//
1111
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/buffer/subbuffer_interop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
24
// RUN: %CPU_RUN_PLACEHOLDER %t.out
35
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %ACC_RUN_PLACEHOLDER %t.out
57

6-
// REQUIRES: opencl
7-
88
//==------------ subbuffer_interop.cpp - SYCL buffer basic test ------------==//
99
//
1010
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/event.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
24
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
35
//==--------------- event.cpp - SYCL event test ----------------------------==//

sycl/test/basic_tests/image_api.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -I %sycl_source_dir %s -o %t1.out
24
// RUN: %clangxx -I %sycl_source_dir %s -o %t3.out -lsycl
35
// RUN: env SYCL_DEVICE_TYPE=HOST %t1.out

sycl/test/basic_tests/kernel_info.cpp

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,11 @@
1111
//
1212
//===----------------------------------------------------------------------===//
1313

14+
#include "../helpers.hpp"
1415
#include <CL/sycl.hpp>
1516

1617
using namespace cl::sycl;
1718

18-
void check(bool condition, const char *conditionString, const char *filename,
19-
const long line) noexcept {
20-
if (!condition) {
21-
std::cerr << "CHECK failed in " << filename << "#" << line << " "
22-
<< conditionString << "\n";
23-
std::abort();
24-
}
25-
}
26-
27-
#define CHECK(CONDITION) check(CONDITION, #CONDITION, __FILE__, __LINE__)
28-
2919
int main() {
3020
queue q;
3121

@@ -64,4 +54,4 @@ int main() {
6454
const cl_ulong prvMemSize =
6555
krn.get_work_group_info<info::kernel_work_group::private_mem_size>(dev);
6656
CHECK(prvMemSize == 0);
67-
}
57+
}

sycl/test/basic_tests/kernel_interop.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
24
// RUN: %CPU_RUN_PLACEHOLDER %t.out
35
// RUN: %GPU_RUN_PLACEHOLDER %t.out
46
// RUN: %ACC_RUN_PLACEHOLDER %t.out
57

6-
// REQUIRES: opencl
7-
88
//==--------------- kernel_interop.cpp - SYCL kernel ocl interop test ------==//
99
//
1010
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/basic_tests/parallel_for_range.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// XFAIL: cuda
2+
// CUDA exposes broken hierarchical parallelism.
3+
4+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
25
// RUN: %CPU_RUN_PLACEHOLDER %t.out
36
// RUN: %GPU_RUN_PLACEHOLDER %t.out
47
// RUN: %ACC_RUN_PLACEHOLDER %t.out
5-
// XFAIL: cuda
68

79
#include <CL/sycl.hpp>
810

sycl/test/fpga_tests/fpga_pipes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// UNSUPPORTED: cuda
6+
77
//==------------- fpga_pipes.cpp - SYCL FPGA pipes test --------------------==//
88
//
99
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/fpga_tests/fpga_queue.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
24
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
35
// RUN: %ACC_RUN_PLACEHOLDER %t.out
46
// RUN: %CPU_RUN_PLACEHOLDER %t.out
57
// RUN: %GPU_RUN_PLACEHOLDER %t.out
6-
// UNSUPPORTED: cuda
8+
79
//==------------- fpga_queue.cpp - SYCL FPGA queues test -------------------==//
810
//
911
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/function-pointers/fp-as-kernel-arg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
// UNSUPPORTED: windows
2+
// UNSUPPORTED: cuda
3+
// CUDA does not support the function pointer as kernel argument extension.
4+
15
// RUN: %clangxx -Xclang -fsycl-allow-func-ptr -std=c++14 -fsycl %s -o %t.out -L %opencl_libs_dir -lOpenCL
26
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
37
// RUN: %CPU_RUN_PLACEHOLDER %t.out
48
// RUN: %GPU_RUN_PLACEHOLDER %t.out
59
// FIXME: This test should use runtime early exit once correct check for
610
// corresponding extension is implemented
7-
// UNSUPPORTED: windows
8-
// XFAIL: cuda
911

1012
#include <CL/sycl.hpp>
1113

sycl/test/function-pointers/pass-fp-through-buffer.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
// UNSUPPORTED: windows
2+
// UNSUPPORTED: cuda
3+
// CUDA does not support the function pointer as kernel argument extension.
4+
15
// RUN: %clangxx -Xclang -fsycl-allow-func-ptr -std=c++14 -fsycl %s -o %t.out -L %opencl_libs_dir -lOpenCL
26
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
37
// RUN: %CPU_RUN_PLACEHOLDER %t.out
48
// RUN: %GPU_RUN_PLACEHOLDER %t.out
59
// FIXME: This test should use runtime early exit once correct check for
610
// corresponding extension is implemented
7-
// UNSUPPORTED: windows
8-
// XFAIL: cuda
911

1012
#include <CL/sycl.hpp>
1113

sycl/test/hier_par/hier_par_wgscope.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1919
// RUN: %ACC_RUN_PLACEHOLDER %t.out
2020

21+
// XFAIL: cuda
2122
// TODO: ptxas fatal : Unresolved extern function '__spirv_ControlBarrier'
22-
// UNSUPPORTED: cuda
2323

2424
// This test checks correctness of hierarchical kernel execution when there is
2525
// code and data in the work group scope.

sycl/test/kernel_from_file/hw.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// UNSUPPORTED: cuda
2+
// CUDA does not support SPIR-V.
3+
14
//-fsycl-targets=%sycl_triple
25
// RUN: %clangxx -fsycl-device-only -fno-sycl-use-bitcode -Xclang -fsycl-int-header=%t.h -c %s -o %t.spv
36
// RUN: %clangxx -include %t.h -g %s -o %t.out -lsycl
@@ -6,9 +9,6 @@
69

710
// TODO: InvalidTargetTriple: Expects spir-unknown-unknown or spir64-unknown-unknown. Actual target triple is x86_64-unknown-linux-gnu
811

9-
// XFAIL: cuda
10-
// Currently unsupported on cuda as this test specifically tests a SPV path.
11-
1212
#include <CL/sycl.hpp>
1313
#include <iostream>
1414

sycl/test/linear_id/linear-sub_group.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out

sycl/test/linear_id/opencl-interop.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %GPU_RUN_PLACEHOLDER %t.out
44
// RUN: %ACC_RUN_PLACEHOLDER %t.out
55
// REQUIRES: opencl
6-
// UNSUPPORTED: cuda
6+
77
//==---------------- opencl-interop.cpp - SYCL linear id test --------------==//
88
//
99
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/lit.cfg.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@
6969

7070
config.substitutions.append( ('%sycl_libs_dir', config.sycl_libs_dir ) )
7171
config.substitutions.append( ('%sycl_include', config.sycl_include ) )
72-
config.substitutions.append( ('%opencl_libs_dir', config.opencl_libs_dir) )
7372
config.substitutions.append( ('%sycl_source_dir', config.sycl_source_dir) )
73+
config.substitutions.append( ('%sycl_plugins_dir', config.sycl_plugins_dir) )
74+
config.substitutions.append( ('%opencl_libs_dir', config.opencl_libs_dir) )
7475
config.substitutions.append( ('%opencl_include_dir', config.opencl_include_dir) )
7576
config.substitutions.append( ('%cuda_toolkit_include', config.cuda_toolkit_include) )
7677

sycl/test/lit.site.cfg.py.in

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,16 @@
33
import sys
44

55
config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
6-
config.sycl_tools_dir = lit_config.params.get('SYCL_TOOLS_DIR', "@LLVM_TOOLS_DIR@")
76
config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@"
7+
config.sycl_tools_dir = lit_config.params.get('SYCL_TOOLS_DIR', "@LLVM_TOOLS_DIR@")
88
config.sycl_include = lit_config.params.get('SYCL_INCLUDE', "@SYCL_INCLUDE@")
99
config.sycl_obj_root = "@SYCL_BINARY_DIR@"
1010
config.sycl_source_dir = "@SYCL_SOURCE_DIR@/source"
11-
config.opencl_libs_dir = os.path.dirname("@OpenCL_LIBRARIES@")
1211
config.sycl_libs_dir = lit_config.params.get('SYCL_LIBS_DIR', "@LLVM_LIBS_DIR@")
12+
config.sycl_plugins_dir = "@sycl_plugin_dir@"
1313
config.target_triple = "@TARGET_TRIPLE@"
1414
config.host_triple = "@LLVM_HOST_TRIPLE@"
15+
config.opencl_libs_dir = os.path.dirname("@OpenCL_LIBRARIES@")
1516
config.opencl_include_dir = "@OpenCL_INCLUDE_DIR@"
1617
config.cuda_toolkit_include = "@CUDA_TOOLKIT_INCLUDE@"
1718

sycl/test/ordered_queue/ordered_queue.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// REQUIRES: opencl
2+
//
13
// RUN: %clangxx -fsycl %s -o %t.out -L %opencl_libs_dir -lOpenCL
24
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
35
//==---------- ordered_queue.cpp - SYCL ordered queue test -----------------==//

sycl/test/ordered_queue/prop.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
// RUN: %clangxx -fsycl %s -o %t1.out -L %opencl_libs_dir -lOpenCL
1+
// REQUIRES: opencl
2+
//
3+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t1.out -L %opencl_libs_dir -lOpenCL
24
// RUN: %CPU_RUN_PLACEHOLDER %t1.out
35
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
46

sycl/test/program_manager/env_vars.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
// RUN: %clangxx -O0 -fsycl %s -o %t.out -lsycl
1+
// REQUIRES: opencl
2+
// Env vars are used to pass OpenCL-specific flags to PI compiling/linking.
3+
//
4+
// RUN: %clangxx -O0 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -lsycl
25
//
36
// Deprecated SYCL_PROGRAM_BUILD_OPTIONS should work as an alias to
47
// SYCL_PROGRAM_COMPILE_OPTIONS:

sycl/test/regression/image_access.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,8 @@
55
// TODO: For now PI checks are skipped for ACC device. To decide if it's good.
66
// RUN: env %ACC_RUN_PLACEHOLDER %t.out
77

8-
// TODO: No CUDA image support
9-
// XFAIL: cuda
10-
11-
// TODO: No CUDA image support
12-
// XFAIL: cuda
8+
// UNSUPPORTED: cuda
9+
// CUDA cannot support OpenCL spec conform images.
1310

1411
//==-------------- image_access.cpp - SYCL image accessors test -----------==//
1512
//

sycl/test/sub_group/attributes.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clangxx -fsycl %s -o %t.out
1+
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
22
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUNx: %GPU_RUN_PLACEHOLDER %t.out

sycl/test/sub_group/barrier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// UNSUPPORTED: cuda
6+
77
//==---------- barrier.cpp - SYCL sub_group barrier test -------*- C++ -*---==//
88
//
99
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/sub_group/broadcast.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
// XFAIL: cuda
2+
// CUDA compilation and runtime do not yet support sub groups.
3+
4+
15
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
26
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D SG_GPU %s -o %t_gpu.out
37
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
48
// RUN: %CPU_RUN_PLACEHOLDER %t.out
59
// RUN: %GPU_RUN_PLACEHOLDER %t_gpu.out
610
// RUN: %ACC_RUN_PLACEHOLDER %t.out
7-
// UNSUPPORTED: cuda
11+
812
//==--------- broadcast.cpp - SYCL sub_group broadcast test ----*- C++ -*---==//
913
//
1014
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/sub_group/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// RUN: %CPU_RUN_PLACEHOLDER %t.out
44
// RUN: %GPU_RUN_PLACEHOLDER %t.out
55
// RUN: %ACC_RUN_PLACEHOLDER %t.out
6-
// UNSUPPORTED: cuda
6+
77
//==-------------- common.cpp - SYCL sub_group common test -----*- C++ -*---==//
88
//
99
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

sycl/test/sub_group/common_ocl.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1+
// REQUIRES: opencl
2+
13
// RUN: %clang_cc1 -x cl -cl-std=CL2.0 %S/sg.cl -triple spir64-unknown-unknown -emit-llvm-bc -o %T/kernel_ocl.bc -include opencl-c.h
24
// RUN: llvm-spirv %T/kernel_ocl.bc -o %T/kernel_ocl.spv
35
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out -L %opencl_libs_dir -lOpenCL
46
// RUN: env SYCL_DEVICE_TYPE=HOST %t.out
57
// RUN: %CPU_RUN_PLACEHOLDER %t.out %T/kernel_ocl.spv
68
// RUN: %GPU_RUN_PLACEHOLDER %t.out %T/kernel_ocl.spv
79
// RUN: %ACC_RUN_PLACEHOLDER %t.out %T/kernel_ocl.spv
8-
// UNSUPPORTED: cuda
10+
911
//==--- common_ocl.cpp - basic SG methods in SYCL vs OpenCL ---*- C++ -*---==//
1012
//
1113
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.

0 commit comments

Comments
 (0)