mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
34 lines
525 B
Fortran
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
|