CUDA, find out the number of registers in the kernel at runtime

How can I find out the number of registers that the cuda kernel uses at runtime? I know how to find out information at compile time, but I don’t want to specify numbers in

thanks

+3
source share
2 answers

I do not think CUDA 2.x cannot get information at runtime. Looking at the documentation for the new version 3.0, it seems that cudaFuncGetAttributes will do what you want.

+4
source

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

+1

Source: https://habr.com/ru/post/1722890/


All Articles