[Bf-blender-cvs] [b3c85c73474] cycles_oneapi: Cycles: use -options instead of -internal-options for sycl compilation

Xavier Hallade noreply at git.blender.org
Mon May 30 18:42:34 CEST 2022


Commit: b3c85c73474b10f8e15b7319ea7325ecabb688ea
Author: Xavier Hallade
Date:   Mon May 30 18:39:18 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rBb3c85c73474b10f8e15b7319ea7325ecabb688ea

Cycles: use -options instead of -internal-options for sycl compilation

-internal-options aren't used for recompilation in case of AoT binary
incompatiblity with current device, hence -options should be used
instead for oneAPI backend.

===================================================================

M	intern/cycles/kernel/CMakeLists.txt

===================================================================

diff --git a/intern/cycles/kernel/CMakeLists.txt b/intern/cycles/kernel/CMakeLists.txt
index 3df2574f1eb..21999459011 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -742,7 +742,7 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
 
   # Set defaults for spir64 and spir64_gen options
   if (NOT DEFINED CYCLES_ONEAPI_SYCL_OPTIONS_spir64)
-    set(CYCLES_ONEAPI_SYCL_OPTIONS_spir64 "--format zebin -internal_options '-ze-opt-large-register-file -ze-opt-regular-grf-kernel integrator_intersect'")
+    set(CYCLES_ONEAPI_SYCL_OPTIONS_spir64 "--format zebin -options '-ze-opt-large-register-file -ze-opt-regular-grf-kernel integrator_intersect'")
   endif()
   if (NOT DEFINED CYCLES_ONEAPI_SYCL_OPTIONS_spir64_gen)
     SET (CYCLES_ONEAPI_SYCL_OPTIONS_spir64_gen "-device ${CYCLES_ONEAPI_SPIR64_GEN_DEVICES} ${CYCLES_ONEAPI_SYCL_OPTIONS_spir64}" CACHE STRING "Extra build options for spir64_gen target")



More information about the Bf-blender-cvs mailing list