1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
! * This file is part of the Score-P software (http://www.score-p.org)
! *
! * Copyright (c) 2009-2011,
! * RWTH Aachen University, Germany
! * Gesellschaft fuer numerische Simulation mbH Braunschweig, Germany
! * Technische Universitaet Dresden, Germany
! * University of Oregon, Eugene, USA
! * Forschungszentrum Juelich GmbH, Germany
! * German Research School for Simulation Sciences GmbH, Juelich/Aachen, Germany
! * Technische Universitaet Muenchen, Germany
! *
! * See the COPYING file in the package base directory for details.
! *
! * Testfile for automated testing of OPARI2
! *
! *
! * @brief Test the --disable= option
program test1_disable
IMPLICIT NONE
SUBROUTINE foo(A,N)
INTEGER I,N,L,T
c$omp parallel
c$omp atomic
N=0
c$omp critical
N=1
c$omp end critical
c$omp flush
CALL OMP_INIT_LOCK(L)
CALL OMP_SET_LOCK(L)
T=OMP_TEST_LOCK(L)
CALL OMP_UNSET_LOCK(L)
CALL OMP_DESTROY_LOCK(L)
CALL OMP_INIT_NEST_LOCK(L)
CALL OMP_SET_NEST_LOCK(L)
T=OMP_TEST_NEST_LOCK(L)
CALL OMP_UNSET_NEST_LOCK(L)
CALL OMP_DESTROY_NEST_LOCK(L)
c$omp master
N=2
c$omp end master
c$omp do
DO I=1,5
c$omp ordered
N=I
c$omp end ordered
END DO
c$omp single
N=6
c$omp end single
c$omp task
N=7
c$omp end task
c$omp end parallel
c$pomp inst init
c$pomp inst begin(user_region)
if .false. then
c$pomp inst altend(user_region)
return
end
c$pomp inst end(user_region)
END SUBROUTINE
end program test1_free
|