OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.37.1.f90] - Blame information for rev 316

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 302 jeremybenn
! { dg-do compile }
2
      SUBROUTINE WORK(I)
3
      INTEGER I
4
        I=I+1
5
      END SUBROUTINE WORK
6
      SUBROUTINE INCORRECT()
7
        INTEGER OMP_GET_NUM_THREADS
8
        INTEGER I, NP
9
        NP = OMP_GET_NUM_THREADS()   !misplaced: will return 1
10
!$OMP PARALLEL DO SCHEDULE(STATIC)
11
          DO I = 0, NP-1
12
            CALL WORK(I)
13
          ENDDO
14
!$OMP END PARALLEL DO
15
      END SUBROUTINE INCORRECT

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.