| View previous topic :: View next topic |
| Author |
Message |
theOryx
Joined: 03 Nov 2011 Posts: 2
|
Posted: Sun Feb 24, 2013 8:45 pm Post subject: Selecting from Multiple GPUS |
|
|
| 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 |
|
 |
Alexey A. Romanenko
Joined: 17 Feb 2012 Posts: 31
|
Posted: Sun Feb 24, 2013 10:46 pm Post subject: |
|
|
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 |
|
 |
theOryx
Joined: 03 Nov 2011 Posts: 2
|
Posted: Mon Feb 25, 2013 10:26 am Post subject: |
|
|
| 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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Feb 25, 2013 12:38 pm Post subject: |
|
|
Run the command "pgaccelinfo" to see which is which and the detail of each.
- Mat |
|
| Back to top |
|
 |
|