Restriction in number or size of kernel arguments?

Nov 14, 2012 at 3:11 PM

Hi,

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

Best,

 

Chris

Coordinator
Nov 14, 2012 at 5:29 PM

Hi Chris,

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

Nick

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?

 

best,

 

Christian

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