any directive in OpenACC equivalent to Sections in OpenMP?

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.

#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.

Hi annliu,

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

  • Mat