[Patch] OpenMP/Fortran: Permit impure ELEMENTAL in omp directives
Tobias Burnus
tobias@codesourcery.com
Tue Jun 16 11:27:43 GMT 2020
Hi all,
when looking into a PURE/ELEMENTAL issue with OpenACC, Thomas and
I came across the analogous OpenMP code – and stumbled over
ELEMENTAL.
In Fortran, ELEMENTAL implies PURE but one can also have an IMPURE
ELEMENTAL procedure.
As PR 79154 quotes, OpenMP 4 had:
"OpenMP directives may not appear in PURE or ELEMENTAL procedures."
While OpenMP 4.5 (and later) have:
"OpenMP directives, except SIMD and declare target directives,
may not appear in pure procedures."
ELEMENTAL is still mentioned – but only for:
"OpenMP runtime library routines may not be called
from PURE or ELEMENTAL procedures."
OK for the trunk?
Tobias
-----------------
Mentor Graphics (Deutschland) GmbH, Arnulfstraße 201, 80634 München / Germany
Registergericht München HRB 106955, Geschäftsführer: Thomas Heurung, Alexander Walter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: omp-elemental.diff
Type: text/x-patch
Size: 6182 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20200616/6c45cfce/attachment.bin>
More information about the Fortran
mailing list