tags:

views:

239

answers:

2

hello

how can I find out the number of registers cuda kernel is using during run time? I know how to find out information during the compilation, but I do not want to hardcode numbers in

thanks

+2  A: 

I don't think it's possible with CUDA 2.x to get the information at run time. Looking at the documentation for the new 3.0 beta, it seems that cudaFuncGetAttributes will do what you want.

Eric
+1  A: 

I think, the one you see in the compilations are the one that are going to be used at runtime, or at least the maximum number of registers used at runtime.

fabrizioM