OMP WORKSHARE with blocks / PR 50690

N.M. Maclaren nmm1@cam.ac.uk
Sat Dec 3 15:06:00 GMT 2011


On Dec 3 2011, Thomas Koenig wrote:
>
>(I'll fix the bug by making all temporary variables PRIVATE - this
>seems to be the clearest solution in this case).

Oh, yuck.  Yuck, yuck, yuckity YUCK!  While attempting to fix my course,
I discover that OpenMP states that assigning to private variables is
unspecified.  I can't see any way through its mess of a specification
that unequivocally allows you to have one statement in a workshare
construct use a variable set in another.

Oh, yes, it SAYS that an implementation must get it right, but doesn't
negate the statement that assigning to a shared variable is undefined.
And then it goes and makes assigning to private one unspecified!


Regards,
Nick Maclaren.



More information about the Fortran mailing list