diff options
author | Thomas Dinges <blender@dingto.org> | 2014-10-12 20:16:46 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2014-10-12 20:17:00 +0400 |
commit | 858bf1adea03ddfffbb279a05afa4169e65a0f4f (patch) | |
tree | 91b5c0177af104a3c443118df0b66035659ae4cd /intern | |
parent | 9d078f2916053c71cd3b4d81228b741fca999019 (diff) |
Cycles: Add CUDA support for sm_32 (Tegra K1, Jetson TK1).
Fix T42174.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/kernel/kernel.cu | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/intern/cycles/kernel/kernel.cu b/intern/cycles/kernel/kernel.cu index 9ed4592f604..121544ca340 100644 --- a/intern/cycles/kernel/kernel.cu +++ b/intern/cycles/kernel/kernel.cu @@ -52,6 +52,18 @@ #define CUDA_KERNEL_MAX_REGISTERS 63 #define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63 +*/ 3.2 */ +#elif __CUDA_ARCH__ == 320 +#define CUDA_MULTIPRESSOR_MAX_REGISTERS 32768 +#define CUDA_MULTIPROCESSOR_MAX_BLOCKS 16 +#define CUDA_BLOCK_MAX_THREADS 1024 +#define CUDA_THREAD_MAX_REGISTERS 63 + +/* tunable parameters */ +#define CUDA_THREADS_BLOCK_WIDTH 16 +#define CUDA_KERNEL_MAX_REGISTERS 63 +#define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63 + /* 5.0 and 5.2 */ #elif __CUDA_ARCH__ == 500 || __CUDA_ARCH__ == 520 #define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536 |