Changeset View
Changeset View
Standalone View
Standalone View
intern/cycles/kernel/kernels/cuda/kernel_config.h
| Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Lines | |||||
| * registers */ | * registers */ | ||||
| # if __CUDACC_VER_MAJOR__ >= 9 && __CUDA_ARCH__ >= 600 | # if __CUDACC_VER_MAJOR__ >= 9 && __CUDA_ARCH__ >= 600 | ||||
| # define CUDA_KERNEL_MAX_REGISTERS 64 | # define CUDA_KERNEL_MAX_REGISTERS 64 | ||||
| # else | # else | ||||
| # define CUDA_KERNEL_MAX_REGISTERS 48 | # define CUDA_KERNEL_MAX_REGISTERS 48 | ||||
| # endif | # endif | ||||
| # define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63 | # define CUDA_KERNEL_BRANCHED_MAX_REGISTERS 63 | ||||
| /* 7.x */ | /* 7.x / 8.x */ | ||||
| #elif __CUDA_ARCH__ <= 799 | #elif __CUDA_ARCH__ <= 899 | ||||
| # define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536 | # define CUDA_MULTIPRESSOR_MAX_REGISTERS 65536 | ||||
| # define CUDA_MULTIPROCESSOR_MAX_BLOCKS 32 | # define CUDA_MULTIPROCESSOR_MAX_BLOCKS 32 | ||||
| # define CUDA_BLOCK_MAX_THREADS 1024 | # define CUDA_BLOCK_MAX_THREADS 1024 | ||||
| # define CUDA_THREAD_MAX_REGISTERS 255 | # define CUDA_THREAD_MAX_REGISTERS 255 | ||||
| /* tunable parameters */ | /* tunable parameters */ | ||||
| # define CUDA_THREADS_BLOCK_WIDTH 16 | # define CUDA_THREADS_BLOCK_WIDTH 16 | ||||
| # define CUDA_KERNEL_MAX_REGISTERS 64 | # define CUDA_KERNEL_MAX_REGISTERS 64 | ||||
| Show All 39 Lines | |||||