Page 1 of 1

parallel task directive syntax

PostPosted: Wed Jan 23, 2008 12:00 pm
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

Re: parallel task directive syntax

PostPosted: Tue Jan 29, 2008 2:57 pm
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.