Commit: e9f37e7c1c2a01e7e4ad1878b41102b0d5ad3aa1
Author: Xavier Hallade
Date: Tue May 31 20:44:17 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBe9f37e7c1c2a01e7e4ad1878b41102b0d5ad3aa1
Cycles: install shared libraries needed by oneAPI backend
expected locations to let dlopen find libraries are next to main
executable on Windows, next to kernel library on Linux.
===================================================================
M intern/cycles/kernel/CMakeLists.txt
===================================================================
diff --git a/intern/cycles/kernel/CMakeLists.txt
b/intern/cycles/kernel/CMakeLists.txt
index a9adc3583dd..1065155f578 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -867,6 +867,23 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
endif()
endif()
+ # install dynamic libraries required at runtime
+ if(WIN32)
+ set(SYCL_RUNTIME_DEPENDENCIES
+ sycl.dll
+ pi_level_zero.dll
+ )
+ delayed_install("${sycl_compiler_root}" "${SYCL_RUNTIME_DEPENDENCIES}"
${CMAKE_INSTALL_PREFIX})
+ elseif(UNIX AND NOT APPLE)
+ file(GLOB SYCL_RUNTIME_DEPENDENCIES
+ ${sycl_compiler_root}/../lib/libsycl.so
+ ${sycl_compiler_root}/../lib/libsycl.so.[0-9]
+ ${sycl_compiler_root}/../lib/libsycl.so.[0-9].[0-9].[0-9]-[0-9]
+ )
+ list(APPEND SYCL_RUNTIME_DEPENDENCIES
${sycl_compiler_root}/../lib/libpi_level_zero.so)
+ delayed_install("" "${SYCL_RUNTIME_DEPENDENCIES}"
${CYCLES_INSTALL_PATH}/lib)
+ endif()
+
delayed_install("${CMAKE_CURRENT_BINARY_DIR}" "${cycles_kernel_oneapi_lib}"
${CYCLES_INSTALL_PATH}/lib)
add_custom_target(cycles_kernel_oneapi ALL DEPENDS
${cycles_kernel_oneapi_lib})
endif()
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs