public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/62007] New: default(none) conflicts with iteration variable in openmp parallel loop simd
@ 2014-08-04 10:48 alexander.grund at mailbox dot tu-dresden.de
  2014-08-04 10:48 ` [Bug fortran/62007] " alexander.grund at mailbox dot tu-dresden.de
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: alexander.grund at mailbox dot tu-dresden.de @ 2014-08-04 10:48 UTC (permalink / raw)
  To: gcc-bugs

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.


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

end of thread, other threads:[~2014-12-08 13:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-04 10:48 [Bug fortran/62007] New: default(none) conflicts with iteration variable in openmp parallel loop simd alexander.grund at mailbox dot tu-dresden.de
2014-08-04 10:48 ` [Bug fortran/62007] " alexander.grund at mailbox dot tu-dresden.de
2014-08-04 10:53 ` dominiq at lps dot ens.fr
2014-08-04 11:02 ` alexander.grund at mailbox dot tu-dresden.de
2014-08-04 11:02 ` alexander.grund at mailbox dot tu-dresden.de
2014-08-04 11:04 ` alexander.grund at mailbox dot tu-dresden.de
2014-08-04 12:29 ` anlauf at gmx dot de
2014-08-04 12:36 ` alexander.grund at mailbox dot tu-dresden.de
2014-12-06 22:13 ` dominiq at lps dot ens.fr
2014-12-08 13:32 ` jakub at gcc dot gnu.org

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).