|
| View previous topic :: View next topic |
| Author |
Message |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Mon Jan 11, 2010 10:24 am Post subject: |
|
|
Thanks, I added feature request as TPR#16438 and sent it to our engineers.
- Mat |
|
| Back to top |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Feb 04, 2010 1:02 pm Post subject: |
|
|
Hi Tonycurtis,
As of 10.2, pgaccelinfo will return "0" if it was able successfully detect that the system has a functioning accelerator. It returns non-zero for errors and if no accelerator was found.
We've also add the "-short" ("-s") and "-quiet" ("-q") flags:
System with accelerator with 4 Tesla cards:
| Code: | % pgaccelinfo -help
pgaccelinfo [options]
Options include:
-all - show accelerators of all types (default)
-amd - show AMD/ATI accelerators
-ati - same as -amd
-help - show this help information
-nv - same as -nvidia
-nvidia - show NVIDIA accelerators
-quiet - no output, just return code
-short - brief output, one line
-v - show additional information for accelerators not found
% pgaccelinfo -short
0 Tesla T10 Processor
1 Tesla T10 Processor
2 Tesla T10 Processor
3 Tesla T10 Processor
% pgaccelinfo -quiet
% echo $?
0
|
System without an accelerator:
| Code: |
% pgaccelinfo
No accelerators found.
Try pgaccelinfo -v for more information
% echo $?
1 |
Also, in the "etc/samples" directory, the "cufinfo.cuf" sample code contains the simplified CUDA Fortran version of pgaccelinfo.
Thanks for the suggestion,
Mat |
|
| Back to top |
|
 |
|
|
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 © 2001, 2002 phpBB Group
|