PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Course

any directive in OpenACC equivalent to Sections in OpenMP?

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



Joined: 06 Feb 2013
Posts: 1

PostPosted: Wed Feb 06, 2013 7:34 pm    Post subject: any directive in OpenACC equivalent to Sections in OpenMP? Reply with quote

Hello, everybody:

I am looking for the construct in OpenACC that is equivalent to the directive #pragma omp sections in OpenMP.

for example: in OpenMP, #pragma omp sections is used to get different threads to carry out different works.

Code:
#pragma omp parallel
{
#pragma omp sections
  {
   #pragma omp section

    (void) funcA();
 
  #pragma omp section
 
   (void) funcB();
  }
}


Anybody knows if there is any equivalent OpenACC directive?

Best Regard
A.
Back to top
View user's profile
mkcolg



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

PostPosted: Thu Feb 07, 2013 9:06 am    Post subject: Reply with quote

Hi annliu,

No, sorry. Sections are not well suited for use on an Accelerator given the execution model.

- 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