This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/81350] gfortran OpenMP taskloop segfaults or incorrect
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 07 Jul 2017 12:00:41 +0000
- Subject: [Bug fortran/81350] gfortran OpenMP taskloop segfaults or incorrect
- Auto-submitted: auto-generated
- References: <bug-81350-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81350
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
That said, I believe it is just a buggy testcase.
In the 4 taskloop directives in apply_stencil I believe the rule for implicit
data-sharing of W, A and B variables is:
"In an orphaned task generating construct, if no default clause is present,
dummy arguments are firstprivate."
but of course, you actually rely on at least B to be shared and for efficiency
it is desirable that W and A are also shared.
Also, why so many taskwait directives everywhere? taskloop without nogroup
clause will wait at the !$omp taskloop end until all those tasks finish.