Overall number of threads which are running

Hello,

I wonder if there is a way to retrieve overall number of threads which are running, when I call kernel then I set two parameters, number of blocka and number of threads in each block. <<< number_of_blocks, number_of_threads>>> kernel();

Is it possible to get these two values inside kernel without passing them explicitly to the kernel ?

[font=“Courier New”]gridDim[/font] and [font=“Courier New”]blockDim[/font] built-in variables. Check appendix B.4 of the Programming Guide.