| View previous topic :: View next topic |
| Author |
Message |
annliu
Joined: 06 Feb 2013 Posts: 1
|
Posted: Wed Feb 06, 2013 7:34 pm Post subject: 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.
| 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 |
|
 |
mkcolg
Joined: 30 Jun 2004 Posts: 4996 Location: The Portland Group Inc.
|
Posted: Thu Feb 07, 2013 9:06 am Post subject: |
|
|
Hi annliu,
No, sorry. Sections are not well suited for use on an Accelerator given the execution model.
- Mat |
|
| Back to top |
|
 |
|