PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

CUDA-x86.

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



Joined: 12 May 2009
Posts: 6

PostPosted: Thu Jan 07, 2010 11:40 am    Post subject: exit code from pgaccelinfo (9.0-4) Reply with quote

I wanted to put pgaccelinfo in a script and so checked its exit code as part of the sanity checking. The exit code was 192. Does this mean anything and/or how do you interpret it?

(2 C1060 cards in this machine, if that helps)
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Jan 07, 2010 2:24 pm    Post subject: Reply with quote

Hi tonycurtis,

Quote:
Does this mean anything
Nope, right now it's meaningless. I'll get our engineers to update it so that it returns "0" if it finds an accelerator or "1" if it encountered an error or no accelerators were found.

We've missed the 10.1 release, so look for it in 10.2 next month.

Thanks,
Mat
Back to top
View user's profile
tonycurtis



Joined: 12 May 2009
Posts: 6

PostPosted: Fri Jan 08, 2010 8:50 am    Post subject: Reply with quote

Quote:
Nope, right now it's meaningless.


I suspected that, but was being polite :-)

Also, a 1-line-per-card summary format would be nice for scripting purposes.
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Jan 08, 2010 10:56 am    Post subject: Reply with quote

Quote:
Also, a 1-line-per-card summary format would be nice for scripting purposes.

Sure I can put a request in. Just to clear, can you post a simple example of what format you'd like?

Thanks,
Mat
Back to top
View user's profile
tonycurtis



Joined: 12 May 2009
Posts: 6

PostPosted: Mon Jan 11, 2010 9:02 am    Post subject: Reply with quote

I was thinking just something like
Code:
0 Tesla C1060
1 Tesla C1060

although if you wanted to get all fancy and stuff, a % formatting string could be nice too, e.g.
Code:
pgaccelinfo --short "%n %d"

could mean the same as above (device number, description).
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 1, 2  Next
Page 1 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