File tree Expand file tree Collapse file tree 10 files changed +7
-20
lines changed Expand file tree Collapse file tree 10 files changed +7
-20
lines changed Original file line number Diff line number Diff line change @@ -219,10 +219,6 @@ endif()
219
219
include (CheckIncludeFile )
220
220
check_include_file (sys/resource.h CLANG_HAVE_RLIMITS )
221
221
222
- if (SYCL_BUILD_PI_CUDA )
223
- set (SYCL_HAVE_PI_CUDA 1 )
224
- endif ()
225
-
226
222
set (CLANG_RESOURCE_DIR "" CACHE STRING
227
223
"Relative directory from the Clang binary to its resource files." )
228
224
Original file line number Diff line number Diff line change 80
80
#cmakedefine01 CLANG_ENABLE_OBJC_REWRITER
81
81
#cmakedefine01 CLANG_ENABLE_STATIC_ANALYZER
82
82
83
- /* Define if we have SYCL PI CUDA support */
84
- #cmakedefine01 SYCL_HAVE_PI_CUDA
85
-
86
83
/* Spawn a new process clang.exe for the CC1 tool invocation, when necessary */
87
84
#cmakedefine01 CLANG_SPAWN_CC1
88
85
Original file line number Diff line number Diff line change @@ -615,11 +615,9 @@ Driver::OpenMPRuntimeKind Driver::getOpenMPRuntime(const ArgList &Args) const {
615
615
}
616
616
617
617
static bool isValidSYCLTriple (llvm::Triple T) {
618
- #ifdef SYCL_HAVE_PI_CUDA
619
618
// NVPTX is valid for SYCL.
620
619
if (T.isNVPTX ())
621
620
return true ;
622
- #endif
623
621
// Check for invalid SYCL device triple values.
624
622
// Non-SPIR arch.
625
623
if (!T.isSPIR ())
Original file line number Diff line number Diff line change 1
1
// / Test that `-fsycl-libspirv-path=` produces a diagnostic when the library is not found.
2
- // REQUIRES: clang-driver, sycl-pi-cuda
2
+ // REQUIRES: clang-driver
3
3
// UNSUPPORTED: system-windows
4
4
5
5
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
Original file line number Diff line number Diff line change 1
1
// / Test that `-fsycl-libspirv-path=` adds `-mlink-builtin-bitcode` when the library is found.
2
- // REQUIRES: clang-driver, sycl-pi-cuda
2
+ // REQUIRES: clang-driver
3
3
// UNSUPPORTED: system-windows
4
4
5
5
// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
Original file line number Diff line number Diff line change 1
1
// / Tests specific to `-fsycl-targets=nvptx64-nvidia-nvcl-sycldevice`
2
- // REQUIRES: clang-driver, sycl-pi-cuda
2
+ // REQUIRES: clang-driver
3
3
4
4
// UNSUPPORTED: system-windows
5
5
Original file line number Diff line number Diff line change 77
77
if config .clang_staticanalyzer_z3 == '1' :
78
78
config .available_features .add ('z3' )
79
79
80
- if config .sycl_pi_cuda == '1' :
81
- config .available_features .add ('sycl-pi-cuda' )
82
-
83
80
llvm_config .add_tool_substitutions (tools , tool_dirs )
84
81
85
82
config .substitutions .append (
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ config.host_arch = "@HOST_ARCH@"
30
30
config.python_executable = "@PYTHON_EXECUTABLE@"
31
31
config.use_z3_solver = lit_config.params.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
32
32
config.has_plugins = @LLVM_ENABLE_PLUGINS@
33
- config.sycl_pi_cuda = "@SYCL_HAVE_PI_CUDA@"
34
33
35
34
# Support substitution of the tools and libs dirs with user parameters. This is
36
35
# used when we can't determine the tool dir at configuration time.
Original file line number Diff line number Diff line change @@ -462,10 +462,6 @@ if( LLVM_USE_PERF )
462
462
endif ( NOT CMAKE_SYSTEM_NAME MATCHES "Linux" )
463
463
endif ( LLVM_USE_PERF )
464
464
465
- option (SYCL_BUILD_PI_CUDA
466
- "Selects the PI API backend. When set to ON, the CUDA backend is selected. \
467
- When set to OFF, the OpenCL backend is selected." OFF )
468
-
469
465
set (LLVM_USE_SANITIZER "" CACHE STRING
470
466
"Define the sanitizer used to build binaries and tests." )
471
467
option (LLVM_OPTIMIZE_SANITIZED_BUILDS "Pass -O1 on debug sanitizer builds" ON )
Original file line number Diff line number Diff line change @@ -137,6 +137,10 @@ install(DIRECTORY ${OPENCL_INCLUDE}/CL
137
137
COMPONENT opencl-headers
138
138
)
139
139
140
+ option (SYCL_BUILD_PI_CUDA
141
+ "Selects the PI API backend. When set to ON, the CUDA backend is selected. \
142
+ When set to OFF, the OpenCL backend is selected." OFF )
143
+
140
144
# Configure SYCL version macro
141
145
set (sycl_inc_dir ${CMAKE_CURRENT_SOURCE_DIR} /include )
142
146
set (sycl_src_dir ${CMAKE_CURRENT_SOURCE_DIR} /source )
You can’t perform that action at this time.
0 commit comments