Skip to content

Commit 2b9edaf

Browse files
kbenziecallumfare
authored andcommitted
[UR] Update how UR_OPENCL_ICD_LOADER_LIBRARY is set (intel#11997)
In oneapi-src/unified-runtime#993 the type of the `UR_OPENCL_ICD_LOADER_LIBRARY` CMake variable will change to a cache variable, as such the usage of this variable also needs to up updated.
1 parent 6759d4c commit 2b9edaf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/plugins/unified_runtime/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ if("hip" IN_LIST SYCL_ENABLE_PLUGINS)
3030
endif()
3131
if("opencl" IN_LIST SYCL_ENABLE_PLUGINS)
3232
set(UR_BUILD_ADAPTER_OPENCL ON)
33-
set(UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD)
33+
set(UR_OPENCL_ICD_LOADER_LIBRARY OpenCL-ICD CACHE FILEPATH
34+
"Path of the OpenCL ICD Loader library" FORCE)
3435
endif()
3536
if("native_cpu" IN_LIST SYCL_ENABLE_PLUGINS)
3637
set(UR_BUILD_ADAPTER_NATIVE_CPU ON)

0 commit comments

Comments
 (0)