Commit: 77e66a23a41fa9640f0ad99814199ac3165b2275
Author: Xavier Hallade
Date:   Tue May 10 17:43:57 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rB77e66a23a41fa9640f0ad99814199ac3165b2275

Cycles: enable use of zebin for Intel GPU binaries

zebin format greatly improves backward and forward compatibility of GPU 
binaries across driver versions.
--format zebin is passed to ocloc that needs to support it, ie. includes
this commit: 
https://github.com/intel/compute-runtime/commit/dd393d11a28bf749dcdf1f952271784ba9bd1404

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

M       intern/cycles/kernel/CMakeLists.txt

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

diff --git a/intern/cycles/kernel/CMakeLists.txt 
b/intern/cycles/kernel/CMakeLists.txt
index 15b09bbfb17..1af852ceb48 100644
--- a/intern/cycles/kernel/CMakeLists.txt
+++ b/intern/cycles/kernel/CMakeLists.txt
@@ -743,7 +743,7 @@ if(WITH_CYCLES_DEVICE_ONEAPI)
     list(APPEND sycl_compiler_flags
       -fsycl-targets=spir64,spir64_gen
       -Xsycl-target-backend=spir64 "${CYCLES_ONEAPI_GPU_COMPILATION_OPTIONS}"
-      -Xsycl-target-backend=spir64_gen "-device ${CYCLES_ONEAPI_AOT_TARGETS} 
${CYCLES_ONEAPI_GPU_COMPILATION_OPTIONS}")
+      -Xsycl-target-backend=spir64_gen "-device ${CYCLES_ONEAPI_AOT_TARGETS} 
--format zebin ${CYCLES_ONEAPI_GPU_COMPILATION_OPTIONS}")
   else()
     list(APPEND sycl_compiler_flags
       -fsycl-targets=spir64

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to