PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

exit code from pgaccelinfo (9.0-4)
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
mkcolg



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

PostPosted: Mon Jan 11, 2010 10:24 am    Post subject: Reply with quote

Thanks, I added feature request as TPR#16438 and sent it to our engineers.

- Mat
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 04, 2010 1:02 pm    Post subject: Reply with quote

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
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
Goto page Previous  1, 2
Page 2 of 2

 
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