[Omp] A question for OpenMP standard
Jiangzhou He
hejiangzhou at gmail.com
Mon Mar 26 02:06:41 PDT 2007
For the following program:
#pragma omp parallel
{
int i;
#pragma omp single private(i)
{
......
}
}
The *private(i)* here is useless, but what I'm concerned about is whether
it's legal or illegal. I tried it with Intel C Compiler and no error or
warning emerges, but compiling it with PathScale C Compiler causes compiling
error(*Error: Privatized variable i not SHARED in enclosing parallel region*).
I wonder which disposal accords with the the standard. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openmp.org/pipermail/omp/attachments/20070326/73ee3ab7/attachment.html
More information about the Omp
mailing list