PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

about gang and worker 's privation

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Accelerator Programming
View previous topic :: View next topic  
Author Message
Teslalady



Joined: 16 Mar 2012
Posts: 75

PostPosted: Sun Nov 11, 2012 7:52 am    Post subject: about gang and worker 's privation Reply with quote

I would like to ask about OpenACC parallel construct ,in the private clause ,if the variable is privated in the gang, is each worker in the gang privated as well?
Back to top
View user's profile
mkcolg



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

PostPosted: Fri Nov 16, 2012 12:04 pm    Post subject: Reply with quote

Hi Telsalady,

If you use the "private" clause on a parallel directive, then the variable will be private for each "gang" but shared amongst the workers and vectors.

Hope this helps,
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
Page 1 of 1

 
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