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)
36
36
option (UR_ENABLE_TRACING "enable api tracing through xpti" OFF )
37
37
option (UMF_BUILD_SHARED_LIBRARY "Build UMF as shared library" OFF )
38
38
option (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 )
44
45
option (UR_BUILD_EXAMPLE_CODEGEN "Build the codegen example." OFF )
45
46
option (VAL_USE_LIBBACKTRACE_BACKTRACE "enable libbacktrace validation backtrace for linux" OFF )
46
47
set (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:
131
131
| UR_USE_MSAN | Enable MemorySanitizer (clang only) | ON/OFF | OFF |
132
132
| UR_ENABLE_TRACING | Enable XPTI-based tracing layer | ON/OFF | OFF |
133
133
| 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 |
140
141
| UR_ENABLE_COMGR | Enable comgr lib usage | AMD/NVIDIA | AMD |
141
142
| UR_DPCXX | Path of the DPC++ compiler executable to build CTS device binaries | File path | ` "" ` |
142
143
| 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)
32
32
33
33
set (INTEL_LLVM_TAG nightly-2023-09-20 )
34
34
35
- if (UR_BUILD_ADAPTER_L0 )
35
+ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_ALL )
36
36
add_subdirectory (level_zero )
37
37
endif ()
38
38
39
- if (UR_BUILD_ADAPTER_CUDA )
39
+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
40
40
add_subdirectory (cuda )
41
41
endif ()
42
42
43
- if (UR_BUILD_ADAPTER_HIP )
43
+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
44
44
add_subdirectory (hip )
45
45
endif ()
46
46
47
- if (UR_BUILD_ADAPTER_OPENCL )
47
+ if (UR_BUILD_ADAPTER_OPENCL OR UR_BUILD_ADAPTER_ALL )
48
48
add_subdirectory (opencl )
49
49
endif ()
50
- if (UR_BUILD_ADAPTER_NATIVE_CPU )
50
+ if (UR_BUILD_ADAPTER_NATIVE_CPU OR UR_BUILD_ADAPTER_ALL )
51
51
add_subdirectory (native_cpu )
52
52
endif ()
Original file line number Diff line number Diff line change @@ -37,10 +37,10 @@ function(add_adapter_test name)
37
37
ENVIRONMENT "${args_ENVIRONMENT} " )
38
38
endfunction ()
39
39
40
- if (UR_BUILD_ADAPTER_CUDA )
40
+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
41
41
add_subdirectory (cuda )
42
42
endif ()
43
43
44
- if (UR_BUILD_ADAPTER_HIP )
44
+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
45
45
add_subdirectory (hip )
46
46
endif ()
Original file line number Diff line number Diff line change @@ -39,25 +39,25 @@ function(add_conformance_test name)
39
39
${PROJECT_NAME} ::common
40
40
GTest::gtest_main )
41
41
42
- if (UR_BUILD_ADAPTER_CUDA )
42
+ if (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_ALL )
43
43
add_test_adapter (${name} adapter_cuda )
44
44
endif ()
45
- if (UR_BUILD_ADAPTER_HIP )
45
+ if (UR_BUILD_ADAPTER_HIP OR UR_BUILD_ADAPTER_ALL )
46
46
add_test_adapter (${name} adapter_hip )
47
47
endif ()
48
- if (UR_BUILD_ADAPTER_L0 )
48
+ if (UR_BUILD_ADAPTER_L0 OR UR_BUILD_ADAPTER_ALL )
49
49
add_test_adapter (${name} adapter_level_zero )
50
50
endif ()
51
- if (UR_BUILD_ADAPTER_OPENCL )
51
+ if (UR_BUILD_ADAPTER_OPENCL OR UR_BUILD_ADAPTER_ALL )
52
52
add_test_adapter (${name} adapter_opencl )
53
53
endif ()
54
- if (UR_BUILD_ADAPTER_NATIVE_CPU )
54
+ if (UR_BUILD_ADAPTER_NATIVE_CPU OR UR_BUILD_ADAPTER_ALL )
55
55
add_test_adapter (${name} adapter_native_cpu )
56
56
endif ()
57
57
58
58
if (NOT (UR_BUILD_ADAPTER_CUDA OR UR_BUILD_ADAPTER_HIP
59
59
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 ))
61
61
add_test_adapter (${name} adapter_null )
62
62
endif ()
63
63
endfunction ()
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ function(add_fuzz_test name label)
18
18
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} )
19
19
20
20
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 )
22
22
list (APPEND ENV_VARS
23
23
UR_ADAPTERS_FORCE_LOAD=\" $<TARGET_FILE:ur_adapter_level_zero>\"
24
24
NEOReadDebugKeys=1
You can’t perform that action at this time.
0 commit comments