This project is read-only.

Restriction in number or size of kernel arguments?

Nov 14, 2012 at 3:11 PM


Is there a restriction in the number or size of kernel arguments?




Nov 14, 2012 at 5:29 PM

Hi Chris,

There is a limit imposed by CUDA.  I believe it is 256 bytes.


Nov 14, 2012 at 8:22 PM

Hi NIck,


Thanks for the quick reply. Is there a way to determine the size of the arguments? Rules of thumb?





Nov 14, 2012 at 10:57 PM

I think I saw that for newer GPU's it is just included with the register limit.

Ints and floats are 4 bytes, longs & doubles 8 bytes, pointers and references usually 4 bytes but can be architecture dependent.

Nov 14, 2012 at 11:36 PM

Have you seen this?

C:\ProgramData\NVIDIA Corporation\CUDA Samples\v5.0\tools\Cuda_Occupancy_Calculator.XLS