Hi! On Mon, 17 Dec 2018 22:46:50 +0100, Tom de Vries 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