PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

How to work with deviceProperties in CUDA Fortran

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



Joined: 23 May 2011
Posts: 28

PostPosted: Mon Aug 20, 2012 8:26 am    Post subject: How to work with deviceProperties in CUDA Fortran Reply with quote

Hi,

I would like to extract information from the properties of the device..(the getDeviceProperties), but I find difficult to understand all the data that comes along.
Specifically I want the number of SMs, the WARP_SIZE (in case changes in the future), compute capability and so on...

Thanks a lot,
Back to top
View user's profile
DAVID-SPH



Joined: 23 May 2011
Posts: 28

PostPosted: Mon Aug 20, 2012 9:50 am    Post subject: Reply with quote

Never mind...found it!
Sorry for the incoviniece...
For those looking for the info:
number of sms = prop%multiProcessorCount
compute capability = prop%major and prop%minor
etc etc...
Back to top
View user's profile
TheMatt



Joined: 06 Jul 2009
Posts: 317
Location: Greenbelt, MD

PostPosted: Mon Aug 20, 2012 9:54 am    Post subject: Reply with quote

If you look in the cuda/CUDA-Fortran-SDK/ directory installed with your compiler, you should see deviceQuery.cuf. That is the file I look at when I need to figure out how to get something from cudaGetDeviceProperties. I'm not sure if it's absolutely current for Kepler era cards (CC 3.x), but it's probably pretty simple to fix--nCoresPerMP, for example--for your own cases.

I'm fairly certain it's code like this that gets the output for pgaccelinfo.

Matt
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