public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/97070] New: Discrepancy in results between OpenMP/OpenACC
@ 2020-09-16 13:27 venetis at ceid dot upatras.gr
  2020-09-27 12:52 ` [Bug fortran/97070] " dominiq at lps dot ens.fr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: venetis at ceid dot upatras.gr @ 2020-09-16 13:27 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97070

            Bug ID: 97070
           Summary: Discrepancy in results between OpenMP/OpenACC
           Product: gcc
           Version: 10.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: venetis at ceid dot upatras.gr
  Target Milestone: ---

Created attachment 49226
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49226&action=edit
Small example showing the problem

The attached example produces different results when compiled using gcc 10.2.0
and the OpenACC directives and different results using the OpenMP directives.
My understanding is that the two approaches are equivalent and that the OpenMP
version produces the correct results, i.e. all elements of array XMO should be
1, of DCP 2, of IS1 3 and of IS2 24.

Compiled for OpenMP with:

gfortran -O3 -fopenmp -Wall -Wextra test_link.f90 parameters.f90
common_vars.f90 -o test_link

Compiled for OpenACC with:

gfortran -O3 -fopenacc -Wall -Wextra test_link.f90 parameters.f90
common_vars.f90 -o test_link

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-05 14:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 13:27 [Bug fortran/97070] New: Discrepancy in results between OpenMP/OpenACC venetis at ceid dot upatras.gr
2020-09-27 12:52 ` [Bug fortran/97070] " dominiq at lps dot ens.fr
2020-09-28 14:23 ` venetis at ceid dot upatras.gr
2020-09-28 14:38 ` venetis at ceid dot upatras.gr
2020-10-04 16:13 ` venetis at ceid dot upatras.gr
2020-10-05 14:19 ` venetis at ceid dot upatras.gr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).