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
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.