[Bf-blender-cvs] [ff0dcc5] master: Cycles: Make kernel compilable for 3.7 compute capability

Sergey Sharybin noreply at git.blender.org
Thu Jan 28 12:28:59 CET 2016


Commit: ff0dcc5d70d0fcd13afcb7d4280d3acb77d6871d
Author: Sergey Sharybin
Date:   Thu Jan 28 11:56:09 2016 +0100
Branches: master
https://developer.blender.org/rBff0dcc5d70d0fcd13afcb7d4280d3acb77d6871d

Cycles: Make kernel compilable for 3.7 compute capability

It is used by GK210 GPUs which could be found in, i.e. Tesla K80.

===================================================================

M	intern/cycles/kernel/kernels/cuda/kernel.cu

===================================================================

diff --git a/intern/cycles/kernel/kernels/cuda/kernel.cu b/intern/cycles/kernel/kernels/cuda/kernel.cu
index c8940b9..29067a6 100644
--- a/intern/cycles/kernel/kernels/cuda/kernel.cu
+++ b/intern/cycles/kernel/kernels/cuda/kernel.cu
@@ -65,6 +65,18 @@
 #define CUDA_KERNEL_MAX_REGISTERS 63
 #define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63
 
+/* 3.7 */
+#elif __CUDA_ARCH__ == 370
+#define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536
+#define CUDA_MULTIPROCESSOR_MAX_BLOCKS 16
+#define CUDA_BLOCK_MAX_THREADS 1024
+#define CUDA_THREAD_MAX_REGISTERS 255
+
+/* tunable parameters */
+#define CUDA_THREADS_BLOCK_WIDTH 16
+#define CUDA_KERNEL_MAX_REGISTERS 63
+#define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63
+
 /* 5.0, 5.2 and 5.3 */
 #elif __CUDA_ARCH__ == 500 || __CUDA_ARCH__ == 520 || __CUDA_ARCH__ == 530
 #define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536




More information about the Bf-blender-cvs mailing list