[nvptx, committed] Unify C/Fortran routine handling in nvptx_goacc_validate_dims
Thomas Schwinge
thomas@codesourcery.com
Fri Feb 22 11:02:00 GMT 2019
Hi!
On Mon, 17 Dec 2018 22:46:50 +0100, Tom de Vries <tdevries@suse.de> wrote:
> [ was: Re: [nvptx] vector length patch series ]
>
> On 14-12-18 20:58, Tom de Vries wrote:
> >> 0004-openacc-Make-GFC-default-to-1-for-OpenACC-routine-di.patch
> > If I remove this, I run into ICEs in the compiler, but I think that
> > means we need to understand and fix that ICE, instead of concluding that
> > we need this patch. It looks completely unrelated.
>
> Indeed this
> (0004-openacc-Make-GFC-default-to-1-for-OpenACC-routine-di.patch) patch
> is unrelated to the vector length functionality.
>
> However, it fixes a problem in the Fortran front-end which has as
> consequence that C and Fortran routines look the same in
> nvptx_goacc_validate_dims, which is a good thing to have.
>
> However, the upstreaming of the patch seems to be stuck, so I've
> committed an nvptx workaround patch that has the same effect, allowing
> us to drop it
> (0004-openacc-Make-GFC-default-to-1-for-OpenACC-routine-di.patch) from
> the patch series.
ACK, thanks.
> [nvptx] Unify C/Fortran routine handling in nvptx_goacc_validate_dims
>
> The Fortran front-end has a bug (PR72741) that means what when
> nvptx_goacc_validate_dims is called for a Fortran routine, the dims parameter
> is not the same as it would have been if the function would have been called for
> an equivalent C routine.
>
> Work around this bug by overriding the dims parameter for routines, allowing the
> function to handle routines in Fortran and C the same.
I have now finally identified the relevant changes (scattered over
several commits on the OpenACC development branch, each of these trying
to do too many things at once, but also incompletely...), and then have
rewritten most of it anyway, into a more pleasant form, and now committed
to trunk in r269105 "[PR72741] Use 'oacc_build_routine_dims' for Fortran
OpenACC 'routine' directives, too", as attached.
Grüße
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-PR72741-Use-oacc_build_routine_dims-for-Fortran-Open.patch
Type: text/x-diff
Size: 13033 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190222/ad9a2071/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 658 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20190222/ad9a2071/attachment.sig>
More information about the Fortran
mailing list