Add the sm_89 arch to the default CUDA binaries #107585
|
@ -503,7 +503,7 @@ if(NOT APPLE)
|
||||||
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 sm_30 sm_35 sm_37 sm_50 sm_52 sm_60 sm_61 sm_70 sm_75 sm_86 sm_89 compute_75 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)
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ buildbot:
|
||||||
version: '10.1.243'
|
version: '10.1.243'
|
||||||
cuda11:
|
cuda11:
|
||||||
version: '11.4.1'
|
version: '11.4.1'
|
||||||
|
cuda12:
|
||||||
|
version: '12.1.1'
|
||||||
hip:
|
hip:
|
||||||
version: '5.5.30571'
|
version: '5.5.30571'
|
||||||
hiprt:
|
hiprt:
|
||||||
|
|
|
@ -540,12 +540,12 @@ if(WITH_CYCLES_CUDA_BINARIES)
|
||||||
elseif(${arch} MATCHES ".*_7." AND "${CUDA_VERSION}" LESS 100)
|
elseif(${arch} MATCHES ".*_7." AND "${CUDA_VERSION}" LESS 100)
|
||||||
message(STATUS "CUDA binaries for ${arch} require CUDA 10.0+, skipped.")
|
message(STATUS "CUDA binaries for ${arch} require CUDA 10.0+, skipped.")
|
||||||
elseif(${arch} MATCHES ".*_8.")
|
elseif(${arch} MATCHES ".*_8.")
|
||||||
if(DEFINED CUDA11_NVCC_EXECUTABLE)
|
if("${CUDA_VERSION}" GREATER_EQUAL 111) # Support for sm_86 was introduced in CUDA 11
|
||||||
set(cuda_nvcc_executable ${CUDA11_NVCC_EXECUTABLE})
|
|
||||||
set(cuda_toolkit_root_dir ${CUDA11_TOOLKIT_ROOT_DIR})
|
|
||||||
elseif("${CUDA_VERSION}" GREATER_EQUAL 111) # Support for sm_86 was introduced in CUDA 11
|
|
||||||
set(cuda_nvcc_executable ${CUDA_NVCC_EXECUTABLE})
|
set(cuda_nvcc_executable ${CUDA_NVCC_EXECUTABLE})
|
||||||
set(cuda_toolkit_root_dir ${CUDA_TOOLKIT_ROOT_DIR})
|
set(cuda_toolkit_root_dir ${CUDA_TOOLKIT_ROOT_DIR})
|
||||||
|
elseif(DEFINED CUDA11_NVCC_EXECUTABLE)
|
||||||
|
set(cuda_nvcc_executable ${CUDA11_NVCC_EXECUTABLE})
|
||||||
|
set(cuda_toolkit_root_dir ${CUDA11_TOOLKIT_ROOT_DIR})
|
||||||
else()
|
else()
|
||||||
message(STATUS "CUDA binaries for ${arch} require CUDA 11.1+, skipped.")
|
message(STATUS "CUDA binaries for ${arch} require CUDA 11.1+, skipped.")
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue