[Bf-blender-cvs] [a176118b287] cycles-x: Cycles X: tune kernel parameters for RTX cards

Brecht Van Lommel noreply at git.blender.org
Wed May 5 14:27:27 CEST 2021


Commit: a176118b287faba6c62ae2485b78e5b595a33fbb
Author: Brecht Van Lommel
Date:   Tue May 4 15:40:37 2021 +0200
Branches: cycles-x
https://developer.blender.org/rBa176118b287faba6c62ae2485b78e5b595a33fbb

Cycles X: tune kernel parameters for RTX cards

As the kernel keeps changing the optimal values will change as well, so this
will need to be revisited when more work is done. And every kernel probably
has a different optimal value. But this is an easy step in the right direction.

Differential Revision: https://developer.blender.org/D11160

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

M	intern/cycles/kernel/device/cuda/config.h

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

diff --git a/intern/cycles/kernel/device/cuda/config.h b/intern/cycles/kernel/device/cuda/config.h
index 6fd2a329550..4e6268b37ce 100644
--- a/intern/cycles/kernel/device/cuda/config.h
+++ b/intern/cycles/kernel/device/cuda/config.h
@@ -82,8 +82,8 @@
 #  define CUDA_THREAD_MAX_REGISTERS 255
 
 /* tunable parameters */
-#  define CUDA_KERNEL_BLOCK_NUM_THREADS 256
-#  define CUDA_KERNEL_MAX_REGISTERS 64
+#  define CUDA_KERNEL_BLOCK_NUM_THREADS 512
+#  define CUDA_KERNEL_MAX_REGISTERS 96
 
 /* unknown architecture */
 #else



More information about the Bf-blender-cvs mailing list