PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

Specifying which GPU Card Fortran Program Should Use

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



Joined: 12 May 2009
Posts: 1

PostPosted: Fri Jul 17, 2009 3:08 pm    Post subject: Specifying which GPU Card Fortran Program Should Use Reply with quote

I am running the example codes provided on http://www.pgroup.com/lit/articles/insider/v1n1a1.htm and am getting the code to run but not with GPU speeds that are any faster than the CPU calculations.

My computer has a Nvidia Tesla C870 card and a Nvidia Quadro FX 1700 card. How can I make sure the program is using the Tesla card for computations. (I don't know if this is the problem)
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Jul 17, 2009 4:07 pm    Post subject: Reply with quote

Hi mfczajkowski,

Use the environment flag "ACC_DEVICE_NUM" or call the subroutine "acc_set_device_num" to set the device. You can also use the utility 'pgaccelinfo' to see details about each device. By default, device 0 is used.

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