diff options
author | Sergey Sharybin <sergey@blender.org> | 2022-06-08 12:13:22 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey@blender.org> | 2022-06-08 12:13:22 +0300 |
commit | 12458daa7666d352b40cac4f307db7cca966f77c (patch) | |
tree | 02fbc7726e28122ca930efd72793206fcacabdbd /intern/cycles | |
parent | f31cef6248fd12039a4d2dfb76b26f3426477a70 (diff) |
Cycles oneAPI: Tweaks to support pre-compiled DPC++
Compilation of Blender and kernel now works on Linux (did not test Windows).
Ahead-of-time compilation of kernels does not work because the compiled OCLOC
uses shared linking to its components and it seems to need special handling.
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/cmake/external_libs.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/intern/cycles/cmake/external_libs.cmake b/intern/cycles/cmake/external_libs.cmake index 6bcd8152874..51830250f2e 100644 --- a/intern/cycles/cmake/external_libs.cmake +++ b/intern/cycles/cmake/external_libs.cmake @@ -92,6 +92,7 @@ if(CYCLES_STANDALONE_REPOSITORY) _set_default(WEBP_ROOT_DIR "${_cycles_lib_dir}/webp") _set_default(ZLIB_ROOT "${_cycles_lib_dir}/zlib") _set_default(LEVEL_ZERO_ROOT_DIR "${_cycles_lib_dir}/level-zero") + _set_default(SYCL_ROOT_DIR "${_cycles_lib_dir}/dpcpp") # Ignore system libraries set(CMAKE_IGNORE_PATH "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES};${CMAKE_SYSTEM_INCLUDE_PATH};${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES};${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}") @@ -652,6 +653,7 @@ endif() ########################################################################### # oneAPI ########################################################################### + if (WITH_CYCLES_DEVICE_ONEAPI) find_package(SYCL) find_package(LevelZero) |