Specifying which GPU Card Fortran Program Should Use

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)

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