PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

how to see number of registers used

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
bguler



Joined: 28 May 2010
Posts: 17

PostPosted: Thu Sep 09, 2010 11:37 am    Post subject: how to see number of registers used Reply with quote

Hi,

I am using PVF V10.8 and I need to know how I can learn detailed statistics about the usage of the GPU during a kernel launch, like the number of registers used, the time for data transfers etc. Is there a certain flag to do that? I tried -ta=nvidia,time but it doesn't show anything on the screen, or I don't know where to look?

Thanks
Bulent
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 5952
Location: The Portland Group Inc.

PostPosted: Thu Sep 09, 2010 4:28 pm    Post subject: Reply with quote

Hi Bulent,

"-ta=nvidia,time" is for the PGI Accelerator Model and from you're previous posts I believe you're using CUDA Fortran. In this case, the flag "-Mcuda=ptxinfo" will display register usage. The flag does not appear in the PVF properties pages so you will need to add it manually to the 'Properties->Fortran->Command Line'.

For example:

Code:
ptxas info    : Compiling entry function 'mmul_kernel'
ptxas info    : Used 14 registers, 2072+16 bytes smem, 12 bytes cmem[1]
ptxas info    : Compiling entry function 'mmul_kernel'
ptxas info    : Used 14 registers, 2072+16 bytes smem, 12 bytes cmem[1]
matmul build succeeded.


Profiling is not integrated into PVF. Hence, to generate profiling information, from a PGI DOS Command Window, run your program using the 'pgcollect' utility. You can then use the PGI Profiler, pgprof, to view the results. Full details can be found in the PGI Tool's Guide.

Alternatively, you can insert your own timing calls using CUDA events. I show the basics on how to do this in the following post. http://www.pgroup.com/userforum/viewtopic.php?t=2059

Hope this helps,
Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group