From 7fd494c82749286b8f20c7f5e3466c7c3460afc5 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Tue, 6 Aug 2024 14:57:09 -0700 Subject: [PATCH] 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. --- libsyclinterface/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsyclinterface/CMakeLists.txt b/libsyclinterface/CMakeLists.txt index 8a8b1eba7f..71c5c80656 100644 --- a/libsyclinterface/CMakeLists.txt +++ b/libsyclinterface/CMakeLists.txt @@ -61,7 +61,7 @@ if(DPCTL_ENABLE_L0_PROGRAM_CREATION) endif() if (UNIX) find_library(PI_LEVEL_ZERO_LIB - NAMES pi_level_zero + NAMES pi_level_zero ur_adapter_level_zero HINTS ${IntelSyclCompiler_LIBRARY_DIR} ) find_program(READELF_PROG readelf) @@ -81,7 +81,7 @@ endif() if (UNIX) find_library(PI_OPENCL_LIB - NAMES pi_opencl + NAMES pi_opencl ur_adapter_opencl HINTS ${IntelSyclCompiler_LIBRARY_DIR} ) find_program(READELF_PROG readelf)