File: test1_disable.ordered.f.out

package info (click to toggle)
opari2 2.0.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,808 kB
  • sloc: cpp: 8,533; sh: 5,755; ansic: 5,129; f90: 530; fortran: 341; makefile: 227; awk: 179
file content (209 lines) | stat: -rw-r--r-- 5,902 bytes parent folder | download | duplicates (2)
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209

#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"

      call POMP2_Atomic_enter(opari2_region_2,
     &opari2_ctc_2 )
#line 28 "test1_disable.f"
c$omp atomic
      N=0
      call POMP2_Atomic_exit(opari2_region_2)
#line 30 "test1_disable.f"

      call POMP2_Critical_enter(opari2_region_3,
     &opari2_ctc_3 )
#line 31 "test1_disable.f"
c$omp critical
      call POMP2_Critical_begin(opari2_region_3)
#line 32 "test1_disable.f"
      N=1
      call POMP2_Critical_end(opari2_region_3)
#line 33 "test1_disable.f"
c$omp end critical
      call POMP2_Critical_exit(opari2_region_3)
#line 34 "test1_disable.f"

      call POMP2_Flush_enter(opari2_region_4,
     &opari2_ctc_4 )
#line 35 "test1_disable.f"
c$omp flush
      call POMP2_Flush_exit(opari2_region_4)
#line 36 "test1_disable.f"

      CALL POMP2_INIT_LOCK(L)
      CALL POMP2_SET_LOCK(L)
      T=POMP2_TEST_LOCK(L)
      CALL POMP2_UNSET_LOCK(L)
      CALL POMP2_DESTROY_LOCK(L)

      CALL POMP2_INIT_NEST_LOCK(L)
      CALL POMP2_SET_NEST_LOCK(L)
      T=POMP2_TEST_NEST_LOCK(L)
      CALL POMP2_UNSET_NEST_LOCK(L)
      CALL POMP2_DESTROY_NEST_LOCK(L)
#line 48 "test1_disable.f"
c$omp master
      call POMP2_Master_begin(opari2_region_5,
     &opari2_ctc_5 )
#line 49 "test1_disable.f"
      N=2
      call POMP2_Master_end(opari2_region_5)
#line 50 "test1_disable.f"
c$omp end master

      call POMP2_Do_enter(opari2_region_6,
     &opari2_ctc_6 )
#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_6,
     &pomp2_old_task)
!$omp barrier
      call POMP2_Implicit_barrier_exit(opari2_region_6,
     &pomp2_old_task)
      call POMP2_Do_exit(opari2_region_6)
#line 59 "test1_disable.f"
      call POMP2_Single_enter(opari2_region_7,
     &opari2_ctc_7 )
#line 59 "test1_disable.f"
c$omp single
      call POMP2_Single_begin(opari2_region_7)
#line 60 "test1_disable.f"
      N=6
      call POMP2_Single_end(opari2_region_7)
#line 61 "test1_disable.f"
c$omp end single nowait
      call POMP2_Implicit_barrier_enter(opari2_region_7,
     &pomp2_old_task)
!$omp barrier
      call POMP2_Implicit_barrier_exit(opari2_region_7,
     &pomp2_old_task)
      call POMP2_Single_exit(opari2_region_7)
#line 62 "test1_disable.f"

      pomp2_if = .true.
      if (pomp2_if) then
      call POMP2_Task_create_begin(opari2_region_8,
     &pomp2_new_task,
     &pomp2_old_task,
     &pomp2_if,
     &opari2_ctc_8 )
      end if
#line 63 "test1_disable.f"
c$omp task
!$omp& if(pomp2_if) firstprivate(pomp2_new_task, pomp2_if)
      if (pomp2_if) then
      call POMP2_Task_begin(opari2_region_8, pomp2_new_task)
      end if
#line 64 "test1_disable.f"
      N=7
      if (pomp2_if) then
      call POMP2_Task_end(opari2_region_8)
      end if
#line 65 "test1_disable.f"
c$omp end task
      if (pomp2_if) then
      call POMP2_Task_create_end(opari2_region_8,
     &pomp2_old_task)
      end if
#line 66 "test1_disable.f"

      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_9, opari2_ctc_9)
#line 72 "test1_disable.f"
      if .false. then
      call POMP2_End(opari2_region_9)
#line 74 "test1_disable.f"
      return
      end
      call POMP2_End(opari2_region_9)
#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 )
         call POMP2_Assign_handle( opari2_region_3,
     &   opari2_ctc_3 )
         call POMP2_Assign_handle( opari2_region_4,
     &   opari2_ctc_4 )
         call POMP2_Assign_handle( opari2_region_5,
     &   opari2_ctc_5 )
         call POMP2_Assign_handle( opari2_region_6,
     &   opari2_ctc_6 )
         call POMP2_Assign_handle( opari2_region_7,
     &   opari2_ctc_7 )
         call POMP2_Assign_handle( opari2_region_8,
     &   opari2_ctc_8 )
      end

      subroutine POMP2_USER_Init_reg_000()
         include 'test1_disable.f.opari.inc'
         call POMP2_USER_Assign_handle( opari2_region_9,
     &   opari2_ctc_9 )
      end