Changeset View
Changeset View
Standalone View
Standalone View
CMakeLists.txt
| Show First 20 Lines • Show All 460 Lines • ▼ Show 20 Lines | |||||
| # NVIDIA CUDA & OptiX | # NVIDIA CUDA & OptiX | ||||
| if(NOT APPLE) | if(NOT APPLE) | ||||
| option(WITH_CYCLES_DEVICE_CUDA "Enable Cycles NVIDIA CUDA compute support" ON) | option(WITH_CYCLES_DEVICE_CUDA "Enable Cycles NVIDIA CUDA compute support" ON) | ||||
| option(WITH_CYCLES_DEVICE_OPTIX "Enable Cycles NVIDIA OptiX support" ON) | option(WITH_CYCLES_DEVICE_OPTIX "Enable Cycles NVIDIA OptiX support" ON) | ||||
| mark_as_advanced(WITH_CYCLES_DEVICE_CUDA) | mark_as_advanced(WITH_CYCLES_DEVICE_CUDA) | ||||
| option(WITH_CYCLES_CUDA_BINARIES "Build Cycles NVIDIA CUDA binaries" OFF) | option(WITH_CYCLES_CUDA_BINARIES "Build Cycles NVIDIA CUDA binaries" OFF) | ||||
| set(CYCLES_CUDA_BINARIES_ARCH sm_30 sm_35 sm_37 sm_50 sm_52 sm_60 sm_61 sm_70 sm_75 sm_86 compute_75 CACHE STRING "CUDA architectures to build binaries for") | set(CYCLES_CUDA_BINARIES_ARCH CACHE STRING "CUDA architectures to build binaries for") | ||||
| option(WITH_CYCLES_CUDA_BUILD_SERIAL "Build cubins one after another (useful on machines with limited RAM)" OFF) | option(WITH_CYCLES_CUDA_BUILD_SERIAL "Build cubins one after another (useful on machines with limited RAM)" OFF) | ||||
| option(WITH_CUDA_DYNLOAD "Dynamically load CUDA libraries at runtime (for developers, makes cuda-gdb work)" ON) | option(WITH_CUDA_DYNLOAD "Dynamically load CUDA libraries at runtime (for developers, makes cuda-gdb work)" ON) | ||||
| set(OPTIX_ROOT_DIR "" CACHE PATH "Path to the OptiX SDK root directory, for building Cycles OptiX kernels.") | set(OPTIX_ROOT_DIR "" CACHE PATH "Path to the OptiX SDK root directory, for building Cycles OptiX kernels.") | ||||
| set(CYCLES_RUNTIME_OPTIX_ROOT_DIR "" CACHE PATH "Path to the OptiX SDK root directory. When set, this path will be used at runtime to compile OptiX kernels.") | set(CYCLES_RUNTIME_OPTIX_ROOT_DIR "" CACHE PATH "Path to the OptiX SDK root directory. When set, this path will be used at runtime to compile OptiX kernels.") | ||||
| mark_as_advanced(CYCLES_CUDA_BINARIES_ARCH) | mark_as_advanced(CYCLES_CUDA_BINARIES_ARCH) | ||||
| mark_as_advanced(WITH_CYCLES_CUDA_BUILD_SERIAL) | mark_as_advanced(WITH_CYCLES_CUDA_BUILD_SERIAL) | ||||
| Show All 19 Lines | |||||
| # oneAPI | # oneAPI | ||||
| if(NOT APPLE) | if(NOT APPLE) | ||||
| option(WITH_CYCLES_DEVICE_ONEAPI "Enable Cycles oneAPI compute support" OFF) | option(WITH_CYCLES_DEVICE_ONEAPI "Enable Cycles oneAPI compute support" OFF) | ||||
| option(WITH_CYCLES_ONEAPI_BINARIES "Enable Ahead-Of-Time compilation for Cycles oneAPI device" OFF) | option(WITH_CYCLES_ONEAPI_BINARIES "Enable Ahead-Of-Time compilation for Cycles oneAPI device" OFF) | ||||
| # 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 | # 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 | ||||
| # acm-g10 is the target for the first Intel Arc Alchemist GPUs. | # acm-g10 is the target for the first Intel Arc Alchemist GPUs. | ||||
| set(CYCLES_ONEAPI_SPIR64_GEN_DEVICES "acm-g10" CACHE STRING "oneAPI Intel GPU architectures to build binaries for") | set(CYCLES_ONEAPI_SPIR64_GEN_DEVICES "acm-g10" CACHE STRING "oneAPI Intel GPU architectures to build binaries for") | ||||
| set(CYCLES_ONEAPI_SYCL_TARGETS spir64 spir64_gen CACHE STRING "oneAPI targets to build AOT binaries for") | set(CYCLES_ONEAPI_SYCL_TARGETS CACHE STRING "oneAPI targets to build AOT binaries for") | ||||
| mark_as_advanced(CYCLES_ONEAPI_SPIR64_GEN_DEVICES) | mark_as_advanced(CYCLES_ONEAPI_SPIR64_GEN_DEVICES) | ||||
| mark_as_advanced(CYCLES_ONEAPI_SYCL_TARGETS) | mark_as_advanced(CYCLES_ONEAPI_SYCL_TARGETS) | ||||
| endif() | endif() | ||||
| # Draw Manager | # Draw Manager | ||||
| option(WITH_DRAW_DEBUG "Add extra debug capabilities to Draw Manager" OFF) | option(WITH_DRAW_DEBUG "Add extra debug capabilities to Draw Manager" OFF) | ||||
| mark_as_advanced(WITH_DRAW_DEBUG) | mark_as_advanced(WITH_DRAW_DEBUG) | ||||
| ▲ Show 20 Lines • Show All 1,507 Lines • Show Last 20 Lines | |||||