diff options
author | Patrick Mours <pmours@nvidia.com> | 2020-10-13 13:33:34 +0300 |
---|---|---|
committer | Patrick Mours <pmours@nvidia.com> | 2020-10-13 16:15:44 +0300 |
commit | 3bb3b26c8fdf44bf317a1dd16653f77ebe7757d8 (patch) | |
tree | 8442c206129ef78c4af68f85b6f2b3e562e729b4 /build_files/cmake/config/blender_release.cmake | |
parent | ae609346ee98e53d9038878b8d83205cc9b555ff (diff) |
Cycles: Add CUDA 11 build support
With this patch the build system checks whether the "CUDA10_NVCC_EXECUTABLE" CMake
variable is set and if so will use that to build sm_30 kernels. Similarily for sm_8x kernels it
checks "CUDA11_NVCC_EXECUTABLE". All other kernels are built using the default CUDA
toolkit. This makes it possible to use either the CUDA 10 or CUDA 11 toolkit by default and
only selectively use the other for the kernels where its a hard requirement.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D9179
Diffstat (limited to 'build_files/cmake/config/blender_release.cmake')
-rw-r--r-- | build_files/cmake/config/blender_release.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/build_files/cmake/config/blender_release.cmake b/build_files/cmake/config/blender_release.cmake index e7e64678b40..f8f7b730efe 100644 --- a/build_files/cmake/config/blender_release.cmake +++ b/build_files/cmake/config/blender_release.cmake @@ -55,7 +55,7 @@ set(WITH_USD ON CACHE BOOL "" FORCE) set(WITH_MEM_JEMALLOC ON CACHE BOOL "" FORCE) set(WITH_CYCLES_CUDA_BINARIES ON CACHE BOOL "" FORCE) set(WITH_CYCLES_CUBIN_COMPILER OFF CACHE BOOL "" FORCE) -set(CYCLES_CUDA_BINARIES_ARCH sm_30;sm_35;sm_37;sm_50;sm_52;sm_60;sm_61;sm_70;sm_75;compute_75 CACHE STRING "" FORCE) +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 "" FORCE) set(WITH_CYCLES_DEVICE_OPTIX ON CACHE BOOL "" FORCE) # platform dependent options |