[Bf-blender-cvs] [46ddea1c53e] cycles_oneapi: Refactor: Changes into oneAPI CMake variables
Nikita Sirgienko
noreply at git.blender.org
Fri Apr 1 01:07:34 CEST 2022
Commit: 46ddea1c53e0d866d75ef6240fb1808d881fdd81
Author: Nikita Sirgienko
Date: Fri Apr 1 00:16:31 2022 +0200
Branches: cycles_oneapi
https://developer.blender.org/rB46ddea1c53e0d866d75ef6240fb1808d881fdd81
Refactor: Changes into oneAPI CMake variables
Variables related to oneAPI compilation have been marked as cached
cmake variables and other ones have been marked as advanced.
===================================================================
M CMakeLists.txt
===================================================================
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 963e72339ab..3692d3c44dc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -462,13 +462,16 @@ if(NOT APPLE)
option(WITH_CYCLES_ONEAPI_BINARIES "Enable Ahead-Of-Time compilation for Cycles oneAPI device" OFF)
option(WITH_CYCLES_ONEAPI_SYCL_HOST_ENABLED "Enable use of SYCL host (CPU) device execution by oneAPI implementation. This option is for debugging purposes and impacts GPU execution." OFF)
- SET (CYCLES_ONEAPI_SYCL_TARGET GPUTarget STRING "oneAPI offload target to build binaries for")
+ SET (CYCLES_ONEAPI_SYCL_TARGET GPUTarget CACHE STRING "oneAPI offload target to build binaries for")
# List of available options can be found here:
# https://www.intel.com/content/www/us/en/develop/documentation/oneapi-dpcpp-cpp-compiler-dev-guide-and-reference/top/compilation/ahead-of-time-compilation.html
# Right now public Intel driver don't support this option, because corresponding HW haven't released yet
- SET (CYCLES_ONEAPI_AOT_TARGETS "dg2" STRING "oneAPI GPU architectures to build binaries for")
+ SET (CYCLES_ONEAPI_AOT_TARGETS "dg2" CACHE STRING "oneAPI GPU architectures to build binaries for")
mark_as_advanced(CYCLES_ONEAPI_SYCL_TARGET)
+ mark_as_advanced(WITH_CYCLES_ONEAPI_SYCL_HOST_ENABLED)
+ mark_as_advanced(CYCLES_ONEAPI_SYCL_TARGET)
+ mark_as_advanced(CYCLES_ONEAPI_AOT_TARGETS)
endif()
# Draw Manager
More information about the Bf-blender-cvs
mailing list