Where are the kernel arguments stored?


When a set of arguments are passed to a GPU kernel,

where are these stored? (In shared memory? constant memory?)

The section of CUDA C Best Practices Guide says,

But someone in another post says they are stored in the constant memory for compute capability 2.x.


Where are the kernel arguments stored?

In shared memory on compute capability 1.x, in constant memory on 2.x. See appendix B.1.4.1 of the Programming Guide.

(just noted that I am someone, and that my answer is redundant because it is already completely given in the cited thread…)

Thanks for the reply.

For those who would be looking for this in the documentation for 4.0,

it is explained in D.2.4.1 of the programming guide.