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()
219219include (CheckIncludeFile)
220220check_include_file(sys/resource .h CLANG_HAVE_RLIMITS)
221221
222- if (SYCL_BUILD_PI_CUDA)
223- set (SYCL_HAVE_PI_CUDA 1)
224- endif ()
225-
226222set (CLANG_RESOURCE_DIR "" CACHE STRING
227223 "Relative directory from the Clang binary to its resource files." )
228224
Original file line number Diff line number Diff line change 8080#cmakedefine01 CLANG_ENABLE_OBJC_REWRITER
8181#cmakedefine01 CLANG_ENABLE_STATIC_ANALYZER
8282
83- /* Define if we have SYCL PI CUDA support */
84- #cmakedefine01 SYCL_HAVE_PI_CUDA
85-
8683/* Spawn a new process clang.exe for the CC1 tool invocation, when necessary */
8784#cmakedefine01 CLANG_SPAWN_CC1
8885
Original file line number Diff line number Diff line change @@ -615,11 +615,9 @@ Driver::OpenMPRuntimeKind Driver::getOpenMPRuntime(const ArgList &Args) const {
615615}
616616
617617static bool isValidSYCLTriple (llvm::Triple T) {
618- #ifdef SYCL_HAVE_PI_CUDA
619618 // NVPTX is valid for SYCL.
620619 if (T.isNVPTX ())
621620 return true ;
622- #endif
623621 // Check for invalid SYCL device triple values.
624622 // Non-SPIR arch.
625623 if (!T.isSPIR ())
Original file line number Diff line number Diff line change 11// / 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
33// UNSUPPORTED: system-windows
44
55// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
Original file line number Diff line number Diff line change 11// / 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
33// UNSUPPORTED: system-windows
44
55// RUN: %clangxx -### -std=c++11 -target x86_64-unknown-linux-gnu -fsycl \
Original file line number Diff line number Diff line change 11// / Tests specific to `-fsycl-targets=nvptx64-nvidia-nvcl-sycldevice`
2- // REQUIRES: clang-driver, sycl-pi-cuda
2+ // REQUIRES: clang-driver
33
44// UNSUPPORTED: system-windows
55
Original file line number Diff line number Diff line change 7777 if config .clang_staticanalyzer_z3 == '1' :
7878 config .available_features .add ('z3' )
7979
80- if config .sycl_pi_cuda == '1' :
81- config .available_features .add ('sycl-pi-cuda' )
82-
8380llvm_config .add_tool_substitutions (tools , tool_dirs )
8481
8582config .substitutions .append (
Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ config.host_arch = "@HOST_ARCH@"
3030config.python_executable = "@PYTHON_EXECUTABLE@"
3131config.use_z3_solver = lit_config.params.get('USE_Z3_SOLVER', "@USE_Z3_SOLVER@")
3232config.has_plugins = @LLVM_ENABLE_PLUGINS@
33- config.sycl_pi_cuda = "@SYCL_HAVE_PI_CUDA@"
3433
3534# Support substitution of the tools and libs dirs with user parameters. This is
3635# 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 )
462462 endif ( NOT CMAKE_SYSTEM_NAME MATCHES "Linux" )
463463endif ( LLVM_USE_PERF )
464464
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-
469465set (LLVM_USE_SANITIZER "" CACHE STRING
470466 "Define the sanitizer used to build binaries and tests." )
471467option (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
137137 COMPONENT opencl-headers
138138)
139139
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+
140144# Configure SYCL version macro
141145set (sycl_inc_dir ${CMAKE_CURRENT_SOURCE_DIR} /include )
142146set (sycl_src_dir ${CMAKE_CURRENT_SOURCE_DIR} /source )
You can’t perform that action at this time.
0 commit comments