parallel task directive syntax

The public comment period closed January 31, 2008. This forum is now locked (read only).
Forum rules
The OpenMP Forums are now closed to new posts. Please visit Stack Overflow if you are in need of help: https://stackoverflow.com/questions/tagged/openmp
Locked
dmikh

parallel task directive syntax

Post by dmikh »

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

lfm
Posts: 135
Joined: Sun Oct 21, 2007 4:58 pm
Location: OpenMP ARB

Re: parallel task directive syntax

Post by lfm »

No, #pragma parallel task is not allowed. It doesn't really make sense, you need to generate multiple tasks to get parallel work done.

Locked