Skip to content

Commit 7fd494c

Browse files
Search for ur_adapater_opencl alongside pi_opencl
intel/llvm DPC++ has made switch to using unified runtimes, and the compiler nightly build artifacts no longer contain pi_level_zero.so and pi_opencl.so libraries that we used to infer the SO-versioned name of ze_loader and OpenCL loader libraries from. This change adds ur_adapter_* names to find_library CMake commands.
1 parent b9242f4 commit 7fd494c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsyclinterface/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if(DPCTL_ENABLE_L0_PROGRAM_CREATION)
6161
endif()
6262
if (UNIX)
6363
find_library(PI_LEVEL_ZERO_LIB
64-
NAMES pi_level_zero
64+
NAMES pi_level_zero ur_adapter_level_zero
6565
HINTS ${IntelSyclCompiler_LIBRARY_DIR}
6666
)
6767
find_program(READELF_PROG readelf)
@@ -81,7 +81,7 @@ endif()
8181

8282
if (UNIX)
8383
find_library(PI_OPENCL_LIB
84-
NAMES pi_opencl
84+
NAMES pi_opencl ur_adapter_opencl
8585
HINTS ${IntelSyclCompiler_LIBRARY_DIR}
8686
)
8787
find_program(READELF_PROG readelf)

0 commit comments

Comments
 (0)