diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-09-30 19:26:41 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-09-30 19:29:42 +0300 |
commit | 60e5ebdd62cff75267b6da5911a86e5bb15930b8 (patch) | |
tree | d3088eb7f3e3f48f6f6b211c3dc49d04b6795a4e /intern | |
parent | 443e42d47cb2107eb81de7c330b1cef928d6cb74 (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernels/cuda/kernel_config.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |