parallel task directive syntax

The public comment period closed January 31, 2008. This forum is now locked (read only).

parallel task directive syntax

Postby dmikh » Wed Jan 23, 2008 12:00 pm

Is a construct like the following allowed?

Code: Select all
void foo(void)
{
  #pragma omp parallel task
  {
  }
}


It looks like not. 2.7 (p56, l21)
Code: Select all
#pragma omp task [clause[[,] clause] ...] new-line
dmikh
 
Posts: 5
Joined: Wed Jan 23, 2008 8:44 am

Re: parallel task directive syntax

Postby lfm » Tue Jan 29, 2008 2:57 pm

No, #pragma parallel task is not allowed. It doesn't really make sense, you need to generate multiple tasks to get parallel work done.
lfm
 
Posts: 135
Joined: Sun Oct 21, 2007 4:58 pm
Location: OpenMP ARB


Return to Draft 3.0 Public Comment

Who is online

Users browsing this forum: No registered users and 2 guests