So I have a doubt in my kernel function.
I have a constant variable in my C program like:
#define size 1000
In my kernel function I often use this constant ( to read ).
I want to know, which is more efficient to my kernel.
A) Leave the kernel read the constant variable (#define size 1000)
B) Declare a CUDA constant variable with this value? ( constant int size = 1000; )
C) Into the kernel load this value to a cache variable?
D) Or none of the alternatives ?
Thanks for read.