[Bug fortran/62007] New: default(none) conflicts with iteration variable in openmp parallel loop simd

alexander.grund at mailbox dot tu-dresden.de gcc-bugzilla@gcc.gnu.org
Mon Aug 4 10:48:00 GMT 2014


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

            Bug ID: 62007
           Summary: default(none) conflicts with iteration variable in
                    openmp parallel loop simd
           Product: gcc
           Version: 4.9.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: alexander.grund at mailbox dot tu-dresden.de

If you use the "default(none)" clause in a parallel loop simd construct
gfortran will complain about having not set the iteration variable in a
private/shared clause:
" error: 'i_ct' not specified in enclosing parallel"

If you however do specify it in a private clause, gfortran will yield:
"Error: !$OMP PARALLEL DO SIMD iteration variable present on clause other than
LINEAR at (1)"

Trivial example:
!$omp parallel do simd default(none)
    do i_ct = 1, 10
      ...
    end do

If you use a "normal" parallel do both variants work.



More information about the Gcc-bugs mailing list