OpenMP-Examples/sources/Example_standalone.2f.f
2015-01-13 11:38:24 -08:00

34 lines
525 B
Fortran

! @@name: standalone.2f
! @@type: F-free
! @@compilable: yes
! @@linkable: no
! @@expect: success
SUBROUTINE STANDALONE_OK()
INTEGER A
A = 1
IF (A .NE. 0) THEN
!$OMP FLUSH(A)
ENDIF
IF (A .NE. 0) THEN
!$OMP BARRIER
ENDIF
IF (A .NE. 0) THEN
!$OMP TASKWAIT
ENDIF
IF (A .NE. 0) THEN
!$OMP TASKYIELD
ENDIF
GOTO 100
100 CONTINUE
!$OMP FLUSH(A)
GOTO 200
200 CONTINUE
!$OMP BARRIER
GOTO 300
300 CONTINUE
!$OMP TASKWAIT
GOTO 400
400 CONTINUE
!$OMP TASKYIELD
END SUBROUTINE