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 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
|
#line 1 "test1_disable.f"
! * 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)
include 'test1_disable.f.opari.inc'
#line 24 "test1_disable.f"
INTEGER I,N,L,T
pomp2_num_threads = pomp2_lib_get_max_threads()
pomp2_if = .true.
call POMP2_Parallel_fork(opari2_region_1,
&pomp2_if, pomp2_num_threads, pomp2_old_task,
&opari2_ctc_1 )
#line 26 "test1_disable.f"
c$omp parallel
!$omp& firstprivate(pomp2_old_task) private(pomp2_new_task)
!$omp& num_threads(pomp2_num_threads)
call POMP2_Parallel_begin(opari2_region_1)
#line 27 "test1_disable.f"
#line 28 "test1_disable.f"
c$omp atomic
N=0
#line 31 "test1_disable.f"
c$omp critical
N=1
#line 33 "test1_disable.f"
c$omp end critical
#line 35 "test1_disable.f"
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)
#line 48 "test1_disable.f"
c$omp master
N=2
#line 50 "test1_disable.f"
c$omp end master
call POMP2_Do_enter(opari2_region_2,
&opari2_ctc_2 )
#line 52 "test1_disable.f"
c$omp do
DO I=1,5
#line 54 "test1_disable.f"
c$omp ordered
N=I
#line 56 "test1_disable.f"
c$omp end ordered
END DO
#line 58 "test1_disable.f"
c$omp end do nowait
call POMP2_Implicit_barrier_enter(opari2_region_2,
&pomp2_old_task)
!$omp barrier
call POMP2_Implicit_barrier_exit(opari2_region_2,
&pomp2_old_task)
call POMP2_Do_exit(opari2_region_2)
#line 59 "test1_disable.f"
#line 59 "test1_disable.f"
c$omp single
N=6
#line 61 "test1_disable.f"
c$omp end single
#line 63 "test1_disable.f"
c$omp task
N=7
#line 65 "test1_disable.f"
c$omp end task
call POMP2_Implicit_barrier_enter(opari2_region_1,
&pomp2_old_task)
!$omp barrier
call POMP2_Implicit_barrier_exit(opari2_region_1,
&pomp2_old_task)
call POMP2_Parallel_end(opari2_region_1)
#line 67 "test1_disable.f"
c$omp end parallel
call POMP2_Parallel_join(opari2_region_1,
&pomp2_old_task)
#line 68 "test1_disable.f"
call POMP2_Init()
#line 70 "test1_disable.f"
call POMP2_Begin(opari2_region_3, opari2_ctc_3)
#line 72 "test1_disable.f"
if .false. then
call POMP2_End(opari2_region_3)
#line 74 "test1_disable.f"
return
end
call POMP2_End(opari2_region_3)
#line 77 "test1_disable.f"
END SUBROUTINE
end program test1_free
subroutine POMP2_Init_reg_000()
include 'test1_disable.f.opari.inc'
call POMP2_Assign_handle( opari2_region_1,
& opari2_ctc_1 )
call POMP2_Assign_handle( opari2_region_2,
& opari2_ctc_2 )
end
subroutine POMP2_USER_Init_reg_000()
include 'test1_disable.f.opari.inc'
call POMP2_USER_Assign_handle( opari2_region_3,
& opari2_ctc_3 )
end
|