[PATCH, Fortran, pr78505, v1] [F08] Coarray source allocation not synchronizing on oversubscribed cores

Andre Vehreschild vehre@gmx.de
Fri Dec 2 15:46:00 GMT 2016


Hi all,

attached patch adds a call to sync_all after an ALLOCATE allocating a coarray.
This is to adhere to standard wanting:

..., execution of the segment (11.6.2) following the statement is delayed until
all other active images in the current team have executed the same statement the
same number of times in this team.

This, esp. the "statement", means that assigning the SOURCE= is to come before
the sync all, which means we have to do it explicitly after that assignment. Or
the other way around the sync all can be done in library caf_register().

Bootstraps and regtests ok on x86_64-linux/F23. Ok for trunk?

Regards,
	Andre
-- 
Andre Vehreschild * Email: vehre ad gmx dot de 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pr78505_v1.clog
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161202/035bf4bc/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr78505_v1.patch
Type: text/x-patch
Size: 3101 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20161202/035bf4bc/attachment.bin>


More information about the Fortran mailing list