@@ -18,9 +18,9 @@ set(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG
18
18
19
19
# Options to disable use of FetchContent to include Unified Runtime source code
20
20
# to improve developer workflow.
21
- option (SYCL_PI_UR_USE_FETCH_CONTENT
21
+ option (SYCL_UR_USE_FETCH_CONTENT
22
22
"Use FetchContent to acquire the Unified Runtime source code" ON )
23
- set (SYCL_PI_UR_SOURCE_DIR
23
+ set (SYCL_UR_SOURCE_DIR
24
24
"" CACHE PATH "Path to root of Unified Runtime repository" )
25
25
26
26
option (SYCL_UMF_DISABLE_HWLOC
@@ -33,24 +33,24 @@ set(UR_BUILD_XPTI_LIBS OFF)
33
33
set (UR_ENABLE_SYMBOLIZER ON CACHE BOOL "Enable symbolizer for sanitizer layer." )
34
34
set (UR_ENABLE_TRACING ON )
35
35
36
- if ("level_zero" IN_LIST SYCL_ENABLE_PLUGINS )
36
+ if ("level_zero" IN_LIST SYCL_ENABLE_BACKENDS )
37
37
set (UR_BUILD_ADAPTER_L0 ON )
38
38
endif ()
39
- if ("cuda" IN_LIST SYCL_ENABLE_PLUGINS )
39
+ if ("cuda" IN_LIST SYCL_ENABLE_BACKENDS )
40
40
set (UR_BUILD_ADAPTER_CUDA ON )
41
41
endif ()
42
- if ("hip" IN_LIST SYCL_ENABLE_PLUGINS )
42
+ if ("hip" IN_LIST SYCL_ENABLE_BACKENDS )
43
43
set (UR_BUILD_ADAPTER_HIP ON )
44
44
if (SYCL_ENABLE_EXTENSION_JIT)
45
45
set (UR_ENABLE_COMGR ON )
46
46
endif ()
47
47
endif ()
48
- if ("opencl" IN_LIST SYCL_ENABLE_PLUGINS )
48
+ if ("opencl" IN_LIST SYCL_ENABLE_BACKENDS )
49
49
set (UR_BUILD_ADAPTER_OPENCL ON )
50
50
set (UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD CACHE FILEPATH
51
51
"Path of the OpenCL ICD Loader library" FORCE)
52
52
endif ()
53
- if ("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS )
53
+ if ("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS )
54
54
set (UR_BUILD_ADAPTER_NATIVE_CPU ON )
55
55
endif ()
56
56
@@ -70,15 +70,15 @@ else()
70
70
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error" )
71
71
endif ()
72
72
73
- if (SYCL_PI_UR_USE_FETCH_CONTENT )
73
+ if (SYCL_UR_USE_FETCH_CONTENT )
74
74
include (FetchContent)
75
75
76
76
# The fetch_adapter_source function can be used to perform a separate content
77
- # fetch for a UR adapter, this allows development of adapters to be decoupled
77
+ # fetch for a UR adapter (backend) , this allows development of adapters to be decoupled
78
78
# from each other.
79
79
#
80
80
# A separate content fetch will not be performed if:
81
- # * The adapter name is not present in the SYCL_ENABLE_PLUGINS variable.
81
+ # * The adapter name is not present in the SYCL_ENABLE_BACKENDS variable.
82
82
# * The repo and tag provided match the values of the
83
83
# UNIFIED_RUNTIME_REPO/UNIFIED_RUNTIME_TAG variables
84
84
#
@@ -87,7 +87,7 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
87
87
# * repo - A valid Git URL of a Unified Runtime repo
88
88
# * tag - A valid Git branch/tag/commit in the Unified Runtime repo
89
89
function (fetch_adapter_source name repo tag)
90
- if (NOT ${name} IN_LIST SYCL_ENABLE_PLUGINS )
90
+ if (NOT ${name} IN_LIST SYCL_ENABLE_BACKENDS )
91
91
return ()
92
92
endif ()
93
93
if (repo STREQUAL UNIFIED_RUNTIME_REPO AND
@@ -179,24 +179,24 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
179
179
set (UNIFIED_RUNTIME_SOURCE_DIR
180
180
"${unified-runtime_SOURCE_DIR}" CACHE PATH
181
181
"Path to Unified Runtime Headers" FORCE)
182
- elseif (SYCL_PI_UR_SOURCE_DIR )
183
- # SYCL_PI_UR_USE_FETCH_CONTENT is OFF and SYCL_PI_UR_SOURCE_DIR has been set,
182
+ elseif (SYCL_UR_SOURCE_DIR )
183
+ # SYCL_UR_USE_FETCH_CONTENT is OFF and SYCL_UR_SOURCE_DIR has been set,
184
184
# use the external Unified Runtime source directory.
185
185
set (UNIFIED_RUNTIME_SOURCE_DIR
186
- "${SYCL_PI_UR_SOURCE_DIR } " CACHE PATH
186
+ "${SYCL_UR_SOURCE_DIR } " CACHE PATH
187
187
"Path to Unified Runtime Headers" FORCE)
188
188
add_subdirectory (
189
189
${UNIFIED_RUNTIME_SOURCE_DIR}
190
190
${CMAKE_CURRENT_BINARY_DIR} /unified-runtime)
191
191
else ()
192
- # SYCL_PI_UR_USE_FETCH_CONTENT is OFF and SYCL_PI_UR_SOURCE_DIR has not been
192
+ # SYCL_UR_USE_FETCH_CONTENT is OFF and SYCL_UR_SOURCE_DIR has not been
193
193
# set, check if the fallback local directory exists.
194
194
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /unified-runtime)
195
195
message (FATAL_ERROR
196
- "SYCL_PI_UR_USE_FETCH_CONTENT is disabled but no alternative Unified \
196
+ "SYCL_UR_USE_FETCH_CONTENT is disabled but no alternative Unified \
197
197
Runtime source directory has been provided, either:
198
198
199
- * Set -DSYCL_PI_UR_SOURCE_DIR =/path/to/unified-runtime
199
+ * Set -DSYCL_UR_SOURCE_DIR =/path/to/unified-runtime
200
200
* Clone the UR repo in ${CMAKE_CURRENT_SOURCE_DIR} /unified-runtime" )
201
201
endif ()
202
202
# The fallback local directory for the Unified Runtime repository has been
@@ -269,26 +269,26 @@ function(add_sycl_ur_adapter NAME)
269
269
SYCL_TOOLCHAIN_INSTALL_COMPONENTS ur_adapter_${NAME} )
270
270
endfunction ()
271
271
272
- if ("level_zero" IN_LIST SYCL_ENABLE_PLUGINS )
272
+ if ("level_zero" IN_LIST SYCL_ENABLE_BACKENDS )
273
273
add_sycl_ur_adapter(level_zero)
274
274
275
275
# TODO: L0 adapter does other... things in its cmake - make sure they get
276
276
# added to the new build system
277
277
endif ()
278
278
279
- if ("cuda" IN_LIST SYCL_ENABLE_PLUGINS )
279
+ if ("cuda" IN_LIST SYCL_ENABLE_BACKENDS )
280
280
add_sycl_ur_adapter(cuda)
281
281
endif ()
282
282
283
- if ("hip" IN_LIST SYCL_ENABLE_PLUGINS )
283
+ if ("hip" IN_LIST SYCL_ENABLE_BACKENDS )
284
284
add_sycl_ur_adapter(hip)
285
285
endif ()
286
286
287
- if ("opencl" IN_LIST SYCL_ENABLE_PLUGINS )
287
+ if ("opencl" IN_LIST SYCL_ENABLE_BACKENDS )
288
288
add_sycl_ur_adapter(opencl)
289
289
endif ()
290
290
291
- if ("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS )
291
+ if ("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS )
292
292
add_sycl_ur_adapter(native_cpu)
293
293
294
294
# Deal with OCK option
0 commit comments