| 1 |
module m |
| 2 |
use iso_c_binding |
| 3 |
implicit none (type, external) |
| 4 |
interface |
| 5 |
subroutine foo() |
| 6 |
end subroutine foo |
| 7 |
integer function omp_get_thread_num () |
| 8 |
end |
| 9 |
integer function omp_get_num_threads () |
| 10 |
end |
| 11 |
integer function omp_target_is_present (x, i) bind(c) |
| 12 |
import :: c_ptr |
| 13 |
type(c_ptr) :: x |
| 14 |
integer, value :: i |
| 15 |
end |
| 16 |
integer function omp_get_cancellation () |
| 17 |
end |
| 18 |
end interface |
| 19 |
integer :: v |
| 20 |
contains |
| 21 |
subroutine f1 (a) |
| 22 |
integer, target :: a(*) |
| 23 |
integer :: i |
| 24 |
!$omp simd order(reproducible:concurrent) |
| 25 |
do i = 1, 64 |
| 26 |
!$omp parallel ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 27 |
call foo () |
| 28 |
!$omp end parallel |
| 29 |
end do |
| 30 |
!$omp simd order(reproducible:concurrent) |
| 31 |
do i = 1, 64 |
| 32 |
block |
| 33 |
integer j |
| 34 |
!$omp simd |
| 35 |
do j = 1, 64 |
| 36 |
a(64 * i + j) = i + j |
| 37 |
end do |
| 38 |
end block |
| 39 |
end do |
| 40 |
!$omp simd order(reproducible:concurrent) |
| 41 |
do i = 1, 64 |
| 42 |
!$omp critical ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 43 |
call foo () |
| 44 |
!$omp end critical |
| 45 |
end do |
| 46 |
!$omp simd order(reproducible:concurrent) |
| 47 |
do i = 1, 64 |
| 48 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 49 |
call foo () |
| 50 |
!$omp end ordered |
| 51 |
end do |
| 52 |
!$omp simd order(reproducible:concurrent) |
| 53 |
do i = 1, 64 |
| 54 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 55 |
v = v + 1 |
| 56 |
end do |
| 57 |
!$omp simd order(reproducible:concurrent) |
| 58 |
do i = 1, 64 |
| 59 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 60 |
a(i) = v |
| 61 |
end do |
| 62 |
!$omp simd order(reproducible:concurrent) |
| 63 |
do i = 1, 64 |
| 64 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 65 |
v = a(i) |
| 66 |
end do |
| 67 |
!$omp simd order(reproducible:concurrent) |
| 68 |
do i = 1, 64 |
| 69 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 70 |
end do |
| 71 |
!$omp simd order(reproducible:concurrent) |
| 72 |
do i = 1, 64 |
| 73 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 74 |
end do |
| 75 |
!$omp simd order(reproducible:concurrent) |
| 76 |
do i = 1, 64 |
| 77 |
a(i) = a(i) + omp_target_is_present (c_loc (a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 78 |
end do |
| 79 |
!$omp simd order(reproducible:concurrent) |
| 80 |
do i = 1, 64 |
| 81 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 82 |
end do |
| 83 |
end |
| 84 |
|
| 85 |
subroutine f2 (a) |
| 86 |
integer, target :: a(*) |
| 87 |
integer :: i |
| 88 |
!$omp do simd order(reproducible:concurrent) |
| 89 |
do i = 1, 64 |
| 90 |
!$omp parallel ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 91 |
call foo () |
| 92 |
!$omp end parallel |
| 93 |
end do |
| 94 |
!$omp do simd order(reproducible:concurrent) |
| 95 |
do i = 1, 64 |
| 96 |
block |
| 97 |
integer j |
| 98 |
!$omp simd |
| 99 |
do j = 1, 64 |
| 100 |
a(64 * i + j) = i + j |
| 101 |
end do |
| 102 |
end block |
| 103 |
end do |
| 104 |
!$omp do simd order(reproducible:concurrent) |
| 105 |
do i = 1, 64 |
| 106 |
!$omp critical ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 107 |
call foo () |
| 108 |
!$omp end critical |
| 109 |
end do |
| 110 |
!$omp do simd order(reproducible:concurrent) |
| 111 |
do i = 1, 64 |
| 112 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 113 |
call foo () |
| 114 |
!$omp end ordered |
| 115 |
end do |
| 116 |
!$omp do simd order(reproducible:concurrent) |
| 117 |
do i = 1, 64 |
| 118 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 119 |
v = v + 1 |
| 120 |
end do |
| 121 |
!$omp do simd order(reproducible:concurrent) |
| 122 |
do i = 1, 64 |
| 123 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 124 |
a(i) = v |
| 125 |
end do |
| 126 |
!$omp do simd order(reproducible:concurrent) |
| 127 |
do i = 1, 64 |
| 128 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 129 |
v = a(i) |
| 130 |
end do |
| 131 |
!$omp do simd order(reproducible:concurrent) |
| 132 |
do i = 1, 64 |
| 133 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 134 |
end do |
| 135 |
!$omp do simd order(reproducible:concurrent) |
| 136 |
do i = 1, 64 |
| 137 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 138 |
end do |
| 139 |
!$omp do simd order(reproducible:concurrent) |
| 140 |
do i = 1, 64 |
| 141 |
a(i) = a(i) + omp_target_is_present (c_loc(a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 142 |
end do |
| 143 |
!$omp do simd order(reproducible:concurrent) |
| 144 |
do i = 1, 64 |
| 145 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 146 |
end do |
| 147 |
end |
| 148 |
|
| 149 |
subroutine f3 (a) |
| 150 |
integer, target :: a(*) |
| 151 |
integer :: i |
| 152 |
!$omp do order(reproducible:concurrent) |
| 153 |
do i = 1, 64 |
| 154 |
!$omp parallel |
| 155 |
call foo () |
| 156 |
!$omp end parallel |
| 157 |
end do |
| 158 |
!$omp do order(reproducible:concurrent) |
| 159 |
do i = 1, 64 |
| 160 |
block |
| 161 |
integer j |
| 162 |
!$omp simd |
| 163 |
do j = 1, 64 |
| 164 |
a(64 * i + j) = i + j |
| 165 |
end do |
| 166 |
end block |
| 167 |
end do |
| 168 |
!$omp do order(reproducible:concurrent) |
| 169 |
do i = 1, 64 |
| 170 |
!$omp critical ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 171 |
call foo () |
| 172 |
!$omp end critical |
| 173 |
end do |
| 174 |
!$omp do order(reproducible:concurrent) |
| 175 |
do i = 1, 64 |
| 176 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 177 |
call foo () |
| 178 |
!$omp end ordered |
| 179 |
end do |
| 180 |
!$omp do order(reproducible:concurrent) |
| 181 |
do i = 1, 64 |
| 182 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 183 |
v = v + 1 |
| 184 |
end do |
| 185 |
!$omp do order(reproducible:concurrent) |
| 186 |
do i = 1, 64 |
| 187 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 188 |
a(i) = v |
| 189 |
end do |
| 190 |
!$omp do order(reproducible:concurrent) |
| 191 |
do i = 1, 64 |
| 192 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 193 |
v = a(i) |
| 194 |
end do |
| 195 |
!$omp do order(reproducible:concurrent) |
| 196 |
do i = 1, 64 |
| 197 |
!$omp task ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 198 |
a(i) = a(i) + 1 |
| 199 |
!$omp end task |
| 200 |
end do |
| 201 |
!$omp do order(reproducible:concurrent) |
| 202 |
do i = 1, 64 |
| 203 |
block |
| 204 |
integer j |
| 205 |
!$omp taskloop ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 206 |
do j = 1, 64 |
| 207 |
a(64 * i + j) = i + j |
| 208 |
end do |
| 209 |
end block |
| 210 |
end do |
| 211 |
!$omp do order(reproducible:concurrent) |
| 212 |
do i = 1, 64 |
| 213 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 214 |
end do |
| 215 |
!$omp do order(reproducible:concurrent) |
| 216 |
do i = 1, 64 |
| 217 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 218 |
end do |
| 219 |
!$omp do order(reproducible:concurrent) |
| 220 |
do i = 1, 64 |
| 221 |
a(i) = a(i) + omp_target_is_present (c_loc (a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 222 |
end do |
| 223 |
!$omp do order(reproducible:concurrent) |
| 224 |
do i = 1, 64 |
| 225 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 226 |
end do |
| 227 |
end |
| 228 |
|
| 229 |
subroutine f4 (a) |
| 230 |
integer, target :: a(*) |
| 231 |
integer :: i |
| 232 |
!$omp simd order(unconstrained:concurrent) |
| 233 |
do i = 1, 64 |
| 234 |
!$omp parallel ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 235 |
call foo () |
| 236 |
!$omp end parallel |
| 237 |
end do |
| 238 |
!$omp simd order(unconstrained:concurrent) |
| 239 |
do i = 1, 64 |
| 240 |
block |
| 241 |
integer j |
| 242 |
!$omp simd |
| 243 |
do j = 1, 64 |
| 244 |
a(64 * i + j) = i + j |
| 245 |
end do |
| 246 |
end block |
| 247 |
end do |
| 248 |
!$omp simd order(unconstrained:concurrent) |
| 249 |
do i = 1, 64 |
| 250 |
!$omp critical ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 251 |
call foo () |
| 252 |
!$omp end critical |
| 253 |
end do |
| 254 |
!$omp simd order(unconstrained:concurrent) |
| 255 |
do i = 1, 64 |
| 256 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 257 |
call foo () |
| 258 |
!$omp end ordered |
| 259 |
end do |
| 260 |
!$omp simd order(unconstrained:concurrent) |
| 261 |
do i = 1, 64 |
| 262 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 263 |
v = v + 1 |
| 264 |
end do |
| 265 |
!$omp simd order(unconstrained:concurrent) |
| 266 |
do i = 1, 64 |
| 267 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 268 |
a(i) = v |
| 269 |
end do |
| 270 |
!$omp simd order(unconstrained:concurrent) |
| 271 |
do i = 1, 64 |
| 272 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 273 |
v = a(i) |
| 274 |
end do |
| 275 |
!$omp simd order(unconstrained:concurrent) |
| 276 |
do i = 1, 64 |
| 277 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 278 |
end do |
| 279 |
!$omp simd order(unconstrained:concurrent) |
| 280 |
do i = 1, 64 |
| 281 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 282 |
end do |
| 283 |
!$omp simd order(unconstrained:concurrent) |
| 284 |
do i = 1, 64 |
| 285 |
a(i) = a(i) + omp_target_is_present (c_loc (a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 286 |
end do |
| 287 |
!$omp simd order(unconstrained:concurrent) |
| 288 |
do i = 1, 64 |
| 289 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 290 |
end do |
| 291 |
end |
| 292 |
|
| 293 |
subroutine f5 (a) |
| 294 |
integer, target :: a(*) |
| 295 |
integer :: i |
| 296 |
!$omp do simd order(unconstrained:concurrent) |
| 297 |
do i = 1, 64 |
| 298 |
!$omp parallel ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 299 |
call foo () |
| 300 |
!$omp end parallel |
| 301 |
end do |
| 302 |
!$omp do simd order(unconstrained:concurrent) |
| 303 |
do i = 1, 64 |
| 304 |
block |
| 305 |
integer j |
| 306 |
!$omp simd |
| 307 |
do j = 1, 64 |
| 308 |
a(64 * i + j) = i + j |
| 309 |
end do |
| 310 |
end block |
| 311 |
end do |
| 312 |
!$omp do simd order(unconstrained:concurrent) |
| 313 |
do i = 1, 64 |
| 314 |
!$omp critical ! { dg-error "OpenMP constructs other than 'ordered simd', 'simd', 'loop' or 'atomic' may not be nested inside 'simd' region" } |
| 315 |
call foo () |
| 316 |
!$omp end critical |
| 317 |
end do |
| 318 |
!$omp do simd order(unconstrained:concurrent) |
| 319 |
do i = 1, 64 |
| 320 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 321 |
call foo () |
| 322 |
!$omp end ordered |
| 323 |
end do |
| 324 |
!$omp do simd order(unconstrained:concurrent) |
| 325 |
do i = 1, 64 |
| 326 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 327 |
v = v + 1 |
| 328 |
end do |
| 329 |
!$omp do simd order(unconstrained:concurrent) |
| 330 |
do i = 1, 64 |
| 331 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 332 |
a(i) = v |
| 333 |
end do |
| 334 |
!$omp do simd order(unconstrained:concurrent) |
| 335 |
do i = 1, 64 |
| 336 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 337 |
v = a(i) |
| 338 |
end do |
| 339 |
!$omp do simd order(unconstrained:concurrent) |
| 340 |
do i = 1, 64 |
| 341 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 342 |
end do |
| 343 |
!$omp do simd order(unconstrained:concurrent) |
| 344 |
do i = 1, 64 |
| 345 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 346 |
end do |
| 347 |
!$omp do simd order(unconstrained:concurrent) |
| 348 |
do i = 1, 64 |
| 349 |
a(i) = a(i) + omp_target_is_present (c_loc (a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 350 |
end do |
| 351 |
!$omp do simd order(unconstrained:concurrent) |
| 352 |
do i = 1, 64 |
| 353 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 354 |
end do |
| 355 |
end |
| 356 |
|
| 357 |
subroutine f6 (a) |
| 358 |
integer, target :: a(*) |
| 359 |
integer :: i |
| 360 |
!$omp do order(unconstrained:concurrent) |
| 361 |
do i = 1, 64 |
| 362 |
!$omp parallel |
| 363 |
call foo () |
| 364 |
!$omp end parallel |
| 365 |
end do |
| 366 |
!$omp do order(unconstrained:concurrent) |
| 367 |
do i = 1, 64 |
| 368 |
block |
| 369 |
integer j |
| 370 |
!$omp simd |
| 371 |
do j = 1, 64 |
| 372 |
a(64 * i + j) = i + j |
| 373 |
end do |
| 374 |
end block |
| 375 |
end do |
| 376 |
!$omp do order(unconstrained:concurrent) |
| 377 |
do i = 1, 64 |
| 378 |
!$omp critical ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 379 |
call foo () |
| 380 |
!$omp end critical |
| 381 |
end do |
| 382 |
!$omp do order(unconstrained:concurrent) |
| 383 |
do i = 1, 64 |
| 384 |
!$omp ordered simd ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 385 |
call foo () |
| 386 |
!$omp end ordered |
| 387 |
end do |
| 388 |
!$omp do order(unconstrained:concurrent) |
| 389 |
do i = 1, 64 |
| 390 |
!$omp atomic ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 391 |
v = v + 1 |
| 392 |
end do |
| 393 |
!$omp do order(unconstrained:concurrent) |
| 394 |
do i = 1, 64 |
| 395 |
!$omp atomic read ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 396 |
a(i) = v |
| 397 |
end do |
| 398 |
!$omp do order(unconstrained:concurrent) |
| 399 |
do i = 1, 64 |
| 400 |
!$omp atomic write ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 401 |
v = a(i) |
| 402 |
end do |
| 403 |
!$omp do order(unconstrained:concurrent) |
| 404 |
do i = 1, 64 |
| 405 |
!$omp task ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 406 |
a(i) = a(i) + 1 |
| 407 |
!$omp end task |
| 408 |
end do |
| 409 |
!$omp do order(unconstrained:concurrent) |
| 410 |
do i = 1, 64 |
| 411 |
block |
| 412 |
integer j |
| 413 |
!$omp taskloop ! { dg-error "OpenMP constructs other than 'parallel', 'loop' or 'simd' may not be nested inside a region with the 'order\\(concurrent\\)' clause" } |
| 414 |
do j = 1, 64 |
| 415 |
a(64 * i + j) = i + j |
| 416 |
end do |
| 417 |
end block |
| 418 |
end do |
| 419 |
!$omp do order(unconstrained:concurrent) |
| 420 |
do i = 1, 64 |
| 421 |
a(i) = a(i) + omp_get_thread_num () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_thread_num\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 422 |
end do |
| 423 |
!$omp do order(unconstrained:concurrent) |
| 424 |
do i = 1, 64 |
| 425 |
a(i) = a(i) + omp_get_num_threads () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_num_threads\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 426 |
end do |
| 427 |
!$omp do order(unconstrained:concurrent) |
| 428 |
do i = 1, 64 |
| 429 |
a(i) = a(i) + omp_target_is_present (c_loc (a(i)), 0) ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_target_is_present\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 430 |
end do |
| 431 |
!$omp do order(unconstrained:concurrent) |
| 432 |
do i = 1, 64 |
| 433 |
a(i) = a(i) + omp_get_cancellation () ! { dg-error "OpenMP runtime API call '\[^\n\r]*omp_get_cancellation\[^\n\r]*' in a region with 'order\\(concurrent\\)' clause" } |
| 434 |
end do |
| 435 |
end |
| 436 |
end module m |