Cycles CUDA: add support for sm_50 cards in kernel.cu, for testing.

This commit is contained in:
Brecht Van Lommel 2014-04-28 14:24:41 +02:00
parent 58e465c077
commit 6dec2b1a2b
1 changed files with 12 additions and 0 deletions

View File

@ -52,6 +52,18 @@
#define CUDA_KERNEL_MAX_REGISTERS 32
#define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 40
/* 5.0 */
#elif __CUDA_ARCH__ == 500
#define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536
#define CUDA_MULTIPROCESSOR_MAX_BLOCKS 32
#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 32
#define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 40
/* unknown architecture */
#else
#error "Unknown or unuspported CUDA architecture, can't determine launch bounds"