COPYIN with allocatable arrays

Discussion of the OpenMP 3.1 draft specifications closed May 1, 2011. (Read only)
Posts: 74
Joined: Fri Oct 26, 2007 3:19 am

COPYIN with allocatable arrays

Post by jakub »

For COPYIN, the requirement that allocatable is allocated has been dropped, but it is unclear what should be performed in that case. If the threadprivate allocatable in the master thread is not currently allocated, does it mean that no restrictions on if the threadprivate is or is not allocated before in other threads? What should COPYIN do in that case? I think Fortran 90/95 doesn't allow intrinsic assignment if it is not currently allocated.

I assume resolution of ... rt=10#p292
is waiting for OpenMP 4.0 if it takes Fortran 2003/2008 into account, right?

Posts: 1025
Joined: Wed Jan 16, 2008 7:21 am

Re: COPYIN with allocatable arrays

Post by ejd »

Jakub -

Thank you for your comment. You have found a problem where the draft doesn't correctly state what the action should be. I have forwarded it to the language committee and it will be addressed shortly.