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

Reply via email to