Cycles: mark CUDA 10.2 as officially supported

It appears to work fine after a recent bugfix and testing for the past few
weeks.
This commit is contained in:
Brecht Van Lommel
2020-05-05 12:59:25 +02:00
parent da48defcfa
commit d97c83712c
2 changed files with 4 additions and 4 deletions

View File

@@ -421,10 +421,10 @@ string CUDADevice::compile_kernel(const DeviceRequestedFeatures &requested_featu
nvcc_cuda_version % 10); nvcc_cuda_version % 10);
return string(); return string();
} }
else if (nvcc_cuda_version != 101) { else if (!(nvcc_cuda_version == 101 || nvcc_cuda_version == 102)) {
printf( printf(
"CUDA version %d.%d detected, build may succeed but only " "CUDA version %d.%d detected, build may succeed but only "
"CUDA 10.1 is officially supported.\n", "CUDA 10.1 and 10.2 are officially supported.\n",
nvcc_cuda_version / 10, nvcc_cuda_version / 10,
nvcc_cuda_version % 10); nvcc_cuda_version % 10);
} }

View File

@@ -375,11 +375,11 @@ if(WITH_CYCLES_CUDA_BINARIES)
set(CUDA_VERSION "${CUDA_VERSION_MAJOR}${CUDA_VERSION_MINOR}") set(CUDA_VERSION "${CUDA_VERSION_MAJOR}${CUDA_VERSION_MINOR}")
# warn for other versions # warn for other versions
if(CUDA_VERSION MATCHES "101") if((CUDA_VERSION MATCHES "101") OR (CUDA_VERSION MATCHES "102"))
else() else()
message(WARNING message(WARNING
"CUDA version ${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} detected, " "CUDA version ${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR} detected, "
"build may succeed but only CUDA 10.1 is officially supported") "build may succeed but only CUDA 10.1 and 10.2 are officially supported")
endif() endif()
# build for each arch # build for each arch