[patch, fortran] Remove parallell annotation from DO CONCURRENT
Thomas Koenig
tkoenig@netcologne.de
Wed Apr 11 18:18:00 GMT 2018
Am 11.04.2018 um 17:44 schrieb Jakub Jelinek:
> On Tue, Apr 10, 2018 at 11:50:44PM +0200, Thomas Koenig wrote:
>> Hi Jakub,
>>
>>
>>> The new test FAILs everywhere, gfortran.dg doesn't have infrastructure to
>>> run -fopenmp, -fopenacc nor -ftree-parallelize-loops= tests.
>>> You need to put such tests into libgomp/testsuite/libgomp.fortran/
>>
>> I put the test case in the attached form into the libgomp.fortran
>> directory, but it failed execution, without error message.
>>
>> Anything I could have done differently?
>
> Avoid using that much stack?
Well, I don't think stack use is excessive :-)
$ gfortran -S -Ofast do_concurrent_5.f90
$ fgrep ', %rsp' do_concurrent_5.s
subq $136, %rsp
addq $136, %rsp
I do see your point about total memory consumption, though.
Computation time of the test case I committed is around 1 s, which was
also not too bad.
I have attached updated patch which moves the test case to
gfortran.dg/gomp (where it actually passes).
Also, the patch below implements the suggestion of using
annot_expr_ivdep_kind.
OK for trunk?
Regards
Thomas
2018-04-11 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/83064
PR testsuite/85346
* trans-stmt.c (gfc_trans_forall_loop): Use annot_expr_ivdep_kind
for annotation and remove dependence on -ftree-parallelize-loops.
2018-04-11 Thomas Koenig <tkoenig@gcc.gnu.org>
PR fortran/83064
PR testsuite/85346
* gfortran.dg/do_concurrent_5.f90: Reduce memory consumption and
move test to
* gfortran.dg/gomp/do_concurrent_5.f90: New location.
* gfortran.dg/do_concurrent_6.f90: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p5.diff
Type: text/x-patch
Size: 6382 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20180411/f9d1d204/attachment.bin>
More information about the Fortran
mailing list