[Bf-blender-cvs] [49c4e332b13] cycles_oneapi: CMake: Fixed oneAPI build on Linux
Werner, Stefan
noreply at git.blender.org
Mon Apr 4 10:21:42 CEST 2022
Commit: 49c4e332b1334a3f4ad6158f0968cc11bbcb99bf
Author: Werner, Stefan
Date: Mon Apr 4 10:15:30 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rB49c4e332b1334a3f4ad6158f0968cc11bbcb99bf
CMake: Fixed oneAPI build on Linux
Forgot to set a path correcly in my last commit.
===================================================================
M intern/cycles/kernel/CMakeLists.txt
===================================================================
diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index 5a3e701eb80..384f3074b34 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -734,6 +734,9 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
-DWITH_NANOVDB
-I"${NANOVDB_INCLUDE_DIR}")
endif()
+
+ get_filename_component(dpcpp_root ${SYCL_DPCPP_COMPILER} DIRECTORY)
+
if(WIN32)
list(APPEND dpcpp_flags
/EHsc
@@ -745,8 +748,6 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
-D_WINDOWS
-DONEAPI_EXPORT)
- get_filename_component(dpcpp_root ${SYCL_DPCPP_COMPILER} DIRECTORY)
-
add_custom_command(
OUTPUT ${cycles_kernel_oneapi_lib}
COMMAND "${dpcpp_root}/../../env/vars.bat"
More information about the Bf-blender-cvs
mailing list