diff options
author | Nikita Sirgienko <nikita.sirgienko@intel.com> | 2022-04-01 01:16:31 +0300 |
---|---|---|
committer | Nikita Sirgienko <nikita.sirgienko@intel.com> | 2022-04-01 02:07:24 +0300 |
commit | 46ddea1c53e0d866d75ef6240fb1808d881fdd81 (patch) | |
tree | 972a7080a15f3f0a41655217144fd0d561fd9a6f /CMakeLists.txt | |
parent | 56f9fe36c3034efe02d51c0587518e3fdd105d36 (diff) |
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.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
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 |