@@ -18,9 +18,9 @@ set(SYCL_PI_UR_OVERRIDE_FETCH_CONTENT_TAG
1818
1919# Options to disable use of FetchContent to include Unified Runtime source code
2020# to improve developer workflow.
21- option (SYCL_PI_UR_USE_FETCH_CONTENT
21+ option (SYCL_UR_USE_FETCH_CONTENT
2222 "Use FetchContent to acquire the Unified Runtime source code" ON )
23- set (SYCL_PI_UR_SOURCE_DIR
23+ set (SYCL_UR_SOURCE_DIR
2424 "" CACHE PATH "Path to root of Unified Runtime repository" )
2525
2626option (SYCL_UMF_DISABLE_HWLOC
@@ -33,24 +33,24 @@ set(UR_BUILD_XPTI_LIBS OFF)
3333set (UR_ENABLE_SYMBOLIZER ON CACHE BOOL "Enable symbolizer for sanitizer layer." )
3434set (UR_ENABLE_TRACING ON )
3535
36- if ("level_zero" IN_LIST SYCL_ENABLE_PLUGINS )
36+ if ("level_zero" IN_LIST SYCL_ENABLE_BACKENDS )
3737 set (UR_BUILD_ADAPTER_L0 ON )
3838endif ()
39- if ("cuda" IN_LIST SYCL_ENABLE_PLUGINS )
39+ if ("cuda" IN_LIST SYCL_ENABLE_BACKENDS )
4040 set (UR_BUILD_ADAPTER_CUDA ON )
4141endif ()
42- if ("hip" IN_LIST SYCL_ENABLE_PLUGINS )
42+ if ("hip" IN_LIST SYCL_ENABLE_BACKENDS )
4343 set (UR_BUILD_ADAPTER_HIP ON )
4444 if (SYCL_ENABLE_EXTENSION_JIT)
4545 set (UR_ENABLE_COMGR ON )
4646 endif ()
4747endif ()
48- if ("opencl" IN_LIST SYCL_ENABLE_PLUGINS )
48+ if ("opencl" IN_LIST SYCL_ENABLE_BACKENDS )
4949 set (UR_BUILD_ADAPTER_OPENCL ON )
5050 set (UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD CACHE FILEPATH
5151 "Path of the OpenCL ICD Loader library" FORCE)
5252endif ()
53- if ("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS )
53+ if ("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS )
5454 set (UR_BUILD_ADAPTER_NATIVE_CPU ON )
5555endif ()
5656
@@ -70,15 +70,15 @@ else()
7070 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-error" )
7171endif ()
7272
73- if (SYCL_PI_UR_USE_FETCH_CONTENT )
73+ if (SYCL_UR_USE_FETCH_CONTENT )
7474 include (FetchContent)
7575
7676 # 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
7878 # from each other.
7979 #
8080 # 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.
8282 # * The repo and tag provided match the values of the
8383 # UNIFIED_RUNTIME_REPO/UNIFIED_RUNTIME_TAG variables
8484 #
@@ -87,7 +87,7 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
8787 # * repo - A valid Git URL of a Unified Runtime repo
8888 # * tag - A valid Git branch/tag/commit in the Unified Runtime repo
8989 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 )
9191 return ()
9292 endif ()
9393 if (repo STREQUAL UNIFIED_RUNTIME_REPO AND
@@ -179,24 +179,24 @@ if(SYCL_PI_UR_USE_FETCH_CONTENT)
179179 set (UNIFIED_RUNTIME_SOURCE_DIR
180180 "${unified-runtime_SOURCE_DIR}" CACHE PATH
181181 "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,
184184 # use the external Unified Runtime source directory.
185185 set (UNIFIED_RUNTIME_SOURCE_DIR
186- "${SYCL_PI_UR_SOURCE_DIR } " CACHE PATH
186+ "${SYCL_UR_SOURCE_DIR } " CACHE PATH
187187 "Path to Unified Runtime Headers" FORCE)
188188 add_subdirectory (
189189 ${UNIFIED_RUNTIME_SOURCE_DIR}
190190 ${CMAKE_CURRENT_BINARY_DIR} /unified-runtime)
191191else ()
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
193193 # set, check if the fallback local directory exists.
194194 if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR} /unified-runtime)
195195 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 \
197197 Runtime source directory has been provided, either:
198198
199- * Set -DSYCL_PI_UR_SOURCE_DIR =/path/to/unified-runtime
199+ * Set -DSYCL_UR_SOURCE_DIR =/path/to/unified-runtime
200200 * Clone the UR repo in ${CMAKE_CURRENT_SOURCE_DIR} /unified-runtime" )
201201 endif ()
202202 # The fallback local directory for the Unified Runtime repository has been
@@ -269,26 +269,26 @@ function(add_sycl_ur_adapter NAME)
269269 SYCL_TOOLCHAIN_INSTALL_COMPONENTS ur_adapter_${NAME} )
270270endfunction ()
271271
272- if ("level_zero" IN_LIST SYCL_ENABLE_PLUGINS )
272+ if ("level_zero" IN_LIST SYCL_ENABLE_BACKENDS )
273273 add_sycl_ur_adapter(level_zero)
274274
275275 # TODO: L0 adapter does other... things in its cmake - make sure they get
276276 # added to the new build system
277277endif ()
278278
279- if ("cuda" IN_LIST SYCL_ENABLE_PLUGINS )
279+ if ("cuda" IN_LIST SYCL_ENABLE_BACKENDS )
280280 add_sycl_ur_adapter(cuda)
281281endif ()
282282
283- if ("hip" IN_LIST SYCL_ENABLE_PLUGINS )
283+ if ("hip" IN_LIST SYCL_ENABLE_BACKENDS )
284284 add_sycl_ur_adapter(hip)
285285endif ()
286286
287- if ("opencl" IN_LIST SYCL_ENABLE_PLUGINS )
287+ if ("opencl" IN_LIST SYCL_ENABLE_BACKENDS )
288288 add_sycl_ur_adapter(opencl)
289289endif ()
290290
291- if ("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS )
291+ if ("native_cpu" IN_LIST SYCL_ENABLE_BACKENDS )
292292 add_sycl_ur_adapter(native_cpu)
293293
294294 # Deal with OCK option
0 commit comments