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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gfortran.dg/] [gomp/] [appendix-a/] [a.8.1.f90] - Rev 774

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

! { dg-do compile }
      SUBROUTINE A8(N, M, A, B, Y, Z)
         INTEGER N, M
         REAL A(*), B(*), Y(*), Z(*)
         INTEGER I
!$OMP PARALLEL
!$OMP DO
         DO I=2,N
           B(I) = (A(I) + A(I-1)) / 2.0
         ENDDO
!$OMP END DO NOWAIT
!$OMP DO
         DO I=1,M
           Y(I) = SQRT(Z(I))
         ENDDO
!$OMP END DO NOWAIT
!$OMP END PARALLEL
      END SUBROUTINE A8

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

powered by: WebSVN 2.1.0

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