Commit: 50294b24b078e994d6c9a5f91c07d6b0b203a96a Author: Brecht Van Lommel Date: Wed Sep 30 18:26:41 2020 +0200 Branches: tmp-2.83-cycles-rtx3-kernels https://developer.blender.org/rB50294b24b078e994d6c9a5f91c07d6b0b203a96a
Fix Cycles CUDA kernels for Ampere not building with CUDA 11 Running Blender on Ampere cards was already possible with ptx, this fix is needed to support building CUDA binaries. Note the CUDA version used for official Blender builds is still 10, this is merely the change to make it possible for those using CUDA 11 and specifying the sm_8x kernels to be compiled. Found by Milan Jaros. =================================================================== M intern/cycles/kernel/kernels/cuda/kernel_config.h =================================================================== diff --git a/intern/cycles/kernel/kernels/cuda/kernel_config.h b/intern/cycles/kernel/kernels/cuda/kernel_config.h index 3ec00762e72..2e47ce2de6c 100644 --- a/intern/cycles/kernel/kernels/cuda/kernel_config.h +++ b/intern/cycles/kernel/kernels/cuda/kernel_config.h @@ -70,8 +70,8 @@ # endif # define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63 -/* 7.x */ -#elif __CUDA_ARCH__ <= 799 +/* 7.x, 8.x */ +#elif __CUDA_ARCH__ <= 899 # define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536 # define CUDA_MULTIPROCESSOR_MAX_BLOCKS 32 # define CUDA_BLOCK_MAX_THREADS 1024 _______________________________________________ Bf-blender-cvs mailing list [email protected] https://lists.blender.org/mailman/listinfo/bf-blender-cvs
