File tree Expand file tree Collapse file tree 6 files changed +27
-25
lines changed Expand file tree Collapse file tree 6 files changed +27
-25
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,12 @@ option(UR_USE_TSAN "enable ThreadSanitizer" OFF)
3636option (UR_ENABLE_TRACING "enable api tracing through xpti" OFF )
3737option (UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" OFF )
3838option (UMF_ENABLE_POOL_TRACKING "Build UMF with pool tracking" OFF )
39- option (UR_BUILD_ADAPTER_L0 "build level 0 adapter from SYCL" OFF )
40- option (UR_BUILD_ADAPTER_OPENCL "build opencl adapter from SYCL" OFF )
41- option (UR_BUILD_ADAPTER_CUDA "build cuda adapter from SYCL" OFF )
42- option (UR_BUILD_ADAPTER_HIP "build hip adapter from SYCL" OFF )
43- option (UR_BUILD_ADAPTER_NATIVE_CPU "build native_cpu adapter from SYCL" OFF )
39+ option (UR_BUILD_ADAPTER_L0 "Build the Level-Zero adapter" OFF )
40+ option (UR_BUILD_ADAPTER_OPENCL "Build the OpenCL adapter" OFF )
41+ option (UR_BUILD_ADAPTER_CUDA "Build the CUDA adapter" OFF )
42+ option (UR_BUILD_ADAPTER_HIP "Build the HIP adapter" OFF )
43+ option (UR_BUILD_ADAPTER_NATIVE_CPU "Build the Native-CPU adapter" OFF )
44+ option (UR_BUILD_ADAPTER_ALL "Build all currently supported adapters" OFF )
4445option (UR_BUILD_EXAMPLE_CODEGEN "Build the codegen example." OFF )
4546option (VAL_USE_LIBBACKTRACE_BACKTRACE "enable libbacktrace validation backtrace for linux" OFF )
4647set (UR_DPCXX "" CACHE FILEPATH "Path of the DPC++ compiler executable" )
Original file line number Diff line number Diff line change @@ -131,12 +131,13 @@ List of options provided by CMake:
131131| UR_USE_MSAN | Enable MemorySanitizer (clang only) | ON/OFF | OFF |
132132| UR_ENABLE_TRACING | Enable XPTI-based tracing layer | ON/OFF | OFF |
133133| UR_CONFORMANCE_TARGET_TRIPLES | SYCL triples to build CTS device binaries for | Comma-separated list | spir64 |
134- | UR_BUILD_ADAPTER_L0 | Fetch and use level-zero adapter from SYCL | ON/OFF | OFF |
135- | UR_BUILD_ADAPTER_OPENCL | Fetch and use opencl adapter from SYCL | ON/OFF | OFF |
136- | UR_BUILD_ADAPTER_CUDA | Fetch and use cuda adapter from SYCL | ON/OFF | OFF |
137- | UR_BUILD_ADAPTER_HIP | Fetch and use hip adapter from SYCL | ON/OFF | OFF |
138- | UR_BUILD_ADAPTER_NATIVE_CPU | Fetch and use native-cpu adapter from SYCL | ON/OFF | OFF |
139- | UR_HIP_PLATFORM | Build hip adapter for AMD or NVIDIA platform | AMD/NVIDIA | AMD |
134+ | UR_BUILD_ADAPTER_L0 | Build the Level-Zero adapter | ON/OFF | OFF |
135+ | UR_BUILD_ADAPTER_OPENCL | Build the OpenCL adapter | ON/OFF | OFF |
136+ | UR_BUILD_ADAPTER_CUDA | Build the CUDA adapter | ON/OFF | OFF |
137+ | UR_BUILD_ADAPTER_HIP | Build the HIP adapter | ON/OFF | OFF |
138+ | UR_BUILD_ADAPTER_NATIVE_CPU | Build the Native-CPU adapter | ON/OFF | OFF |
139+ | UR_BUILD_ADAPTER_ALL | Build all currently supported adapters | ON/OFF | OFF |
140+ | UR_HIP_PLATFORM | Build HIP adapter for AMD or NVIDIA platform | AMD/NVIDIA | AMD |
140141| UR_ENABLE_COMGR | Enable comgr lib usage | AMD/NVIDIA | AMD |
141142| UR_DPCXX | Path of the DPC++ compiler executable to build CTS device binaries | File path | ` "" ` |
142143| UR_SYCL_LIBRARY_DIR | Path of the SYCL runtime library directory to build CTS device binaries | Directory path | ` "" ` |
Original file line number Diff line number Diff line change @@ -32,21 +32,21 @@ add_subdirectory(null)
3232
3333set (INTEL_LLVM_TAG nightly-2023-09-20)
3434
35- if (UR_BUILD_ADAPTER_L0)
35+ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_ALL )
3636 add_subdirectory (level_zero)
3737endif ()
3838
39- if (UR_BUILD_ADAPTER_CUDA)
39+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
4040 add_subdirectory (cuda)
4141endif ()
4242
43- if (UR_BUILD_ADAPTER_HIP)
43+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
4444 add_subdirectory (hip)
4545endif ()
4646
47- if (UR_BUILD_ADAPTER_OPENCL)
47+ if (UR_BUILD_ADAPTER_OPENCL OR UR_BUILD_ADAPTER_ALL )
4848 add_subdirectory (opencl)
4949endif ()
50- if (UR_BUILD_ADAPTER_NATIVE_CPU)
50+ if (UR_BUILD_ADAPTER_NATIVE_CPU OR UR_BUILD_ADAPTER_ALL )
5151 add_subdirectory (native_cpu)
5252endif ()
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ function(add_adapter_test name)
3737 ENVIRONMENT "${args_ENVIRONMENT} " )
3838endfunction ()
3939
40- if (UR_BUILD_ADAPTER_CUDA)
40+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
4141 add_subdirectory (cuda)
4242endif ()
4343
44- if (UR_BUILD_ADAPTER_HIP)
44+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
4545 add_subdirectory (hip)
4646endif ()
Original file line number Diff line number Diff line change @@ -39,25 +39,25 @@ function(add_conformance_test name)
3939 ${PROJECT_NAME} ::common
4040 GTest::gtest_main)
4141
42- if (UR_BUILD_ADAPTER_CUDA)
42+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
4343 add_test_adapter(${name} adapter_cuda)
4444 endif ()
45- if (UR_BUILD_ADAPTER_HIP)
45+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
4646 add_test_adapter(${name} adapter_hip)
4747 endif ()
48- if (UR_BUILD_ADAPTER_L0)
48+ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_ALL )
4949 add_test_adapter(${name} adapter_level_zero)
5050 endif ()
51- if (UR_BUILD_ADAPTER_OPENCL)
51+ if (UR_BUILD_ADAPTER_OPENCL OR UR_BUILD_ADAPTER_ALL )
5252 add_test_adapter(${name} adapter_opencl)
5353 endif ()
54- if (UR_BUILD_ADAPTER_NATIVE_CPU)
54+ if (UR_BUILD_ADAPTER_NATIVE_CPU OR UR_BUILD_ADAPTER_ALL )
5555 add_test_adapter(${name} adapter_native_cpu)
5656 endif ()
5757
5858 if (NOT (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_HIP
5959 OR UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_OPENCL
60- OR UR_BUILD_ADAPTER_NATIVE_CPU))
60+ OR UR_BUILD_ADAPTER_NATIVE_CPU OR UR_BUILD_ADAPTER_ALL ))
6161 add_test_adapter(${name} adapter_null)
6262 endif ()
6363endfunction ()
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function(add_fuzz_test name label)
1818 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
1919
2020 set (ENV_VARS UR_ENABLE_LAYERS=UR_LAYER_FULL_VALIDATION)
21- if (UR_BUILD_ADAPTER_L0)
21+ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_ALL )
2222 list (APPEND ENV_VARS
2323 UR_ADAPTERS_FORCE_LOAD=\"$<TARGET_FILE:ur_adapter_level_zero>\"
2424 NEOReadDebugKeys=1
You can’t perform that action at this time.
0 commit comments