PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

Selecting from Multiple GPUS

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



Joined: 03 Nov 2011
Posts: 2

PostPosted: Sun Feb 24, 2013 8:45 pm    Post subject: Selecting from Multiple GPUS Reply with quote

I have multiple GPU's and I don't understand how I can tell the compiler which GPU to use when using OPENACC.
Back to top
View user's profile
Alexey A. Romanenko



Joined: 17 Feb 2012
Posts: 31

PostPosted: Sun Feb 24, 2013 10:46 pm    Post subject: Reply with quote

Compiler is not responsible for selecting GPU.

By default the first GPU is selected.
You can select required GPU by hands:
acc_set_device_num(GPU_number)
or
export ACC_DEVICE_NUM=GPU_number
Back to top
View user's profile
theOryx



Joined: 03 Nov 2011
Posts: 2

PostPosted: Mon Feb 25, 2013 10:26 am    Post subject: Reply with quote

How do I know which one is which. I have a Tesla 2075 and Quadro 5000, and would like to use the Tesla for computations. Is there a way to set which one is the first one and see details...
Back to top
View user's profile
mkcolg



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

PostPosted: Mon Feb 25, 2013 12:38 pm    Post subject: Reply with quote

Run the command "pgaccelinfo" to see which is which and the detail of each.

- 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