1 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -fno-openmp-extensions -verify=expected,omp45,omp45warn,omp %s
2 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fno-openmp-extensions -verify=expected,omp50,omp %s
3 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-extensions -verify=expected,omp50 %s
4 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -verify=expected,omp45,omp -fno-openmp-extensions -Wno-openmp %s
5 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=45 -verify=expected,omp45,omp -fno-openmp-extensions -Wno-source-uses-openmp %s
6 // RUN: %clang_cc1 -fsyntax-only -fopenmp -fopenmp-version=51 -verify=expected,omp51,omp -fno-openmp-extensions -Wno-source-uses-openmp %s
8 // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=45 -fno-openmp-extensions -verify=expected,omp45,omp45warn,omp %s
9 // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -verify=expected,omp50,omp -fno-openmp-extensions %s
10 // RUN: %clang_cc1 -fsyntax-only -fopenmp-simd -fopenmp-version=51 -verify=expected,omp51,omp -fno-openmp-extensions %s
11 // SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
21 for (int i
= 0; i
< 10; ++i
)
25 for (int i
= 0; i
< 10; ++i
)
29 for (int i
= 0; i
< 10; ++i
)
37 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a parallel region}}
56 #pragma omp parallel for
57 for (int i
= 0; i
< 10; ++i
)
60 #pragma omp parallel for simd
61 for (int i
= 0; i
< 10; ++i
)
64 #pragma omp parallel sections
69 #pragma omp parallel master
74 #pragma omp parallel masked
95 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
110 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
125 #pragma omp target parallel
130 #pragma omp target parallel for
131 for (int i
= 0; i
< 10; ++i
)
136 #pragma omp target enter data map(to: a)
141 #pragma omp target exit data map(from: a)
146 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
152 for (int i
= 0; i
< 10; ++i
)
157 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
158 for (int i
= 0; i
< 10; ++i
)
163 #pragma omp target update to(a)
167 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
168 for (int i
= 0; i
< 10; ++i
)
173 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
174 for (int i
= 0; i
< 10; ++i
)
179 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
180 for (int i
= 0; i
< 10; ++i
)
185 #pragma omp target simd // OK
186 for (int i
= 0; i
< 10; ++i
)
191 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
192 for (int i
= 0; i
< 10; ++i
)
197 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
198 for (int i
= 0; i
< 10; ++i
)
203 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
204 for (int i
= 0; i
< 10; ++i
)
209 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
210 for (int i
= 0; i
< 10; ++i
)
215 #pragma omp target teams // OK
220 #pragma omp target teams distribute // OK
221 for (int i
= 0; i
< 10; ++i
)
226 #pragma omp target teams distribute parallel for // OK
227 for (int i
= 0; i
< 10; ++i
)
232 #pragma omp target teams distribute parallel for simd // OK
233 for (int i
= 0; i
< 10; ++i
)
238 #pragma omp target teams distribute simd // OK
239 for (int i
= 0; i
< 10; ++i
)
245 for (int i
= 0; i
< 10; ++i
) {
246 #pragma omp for // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{OpenMP constructs may not be nested inside a simd region except for ordered simd, simd, scan, or atomic directive}} omp51-error {{OpenMP constructs may not be nested inside a simd region except for ordered simd, simd, scan, or atomic directive}}
247 for (int i
= 0; i
< 10; ++i
)
251 for (int i
= 0; i
< 10; ++i
) {
252 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
253 for (int i
= 0; i
< 10; ++i
)
257 for (int i
= 0; i
< 10; ++i
) {
258 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
259 for (int i
= 0; i
< 10; ++i
)
263 for (int i
= 0; i
< 10; ++i
) {
264 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
265 for (int i
= 0; i
< 10; ++i
)
269 for (int i
= 0; i
< 10; ++i
) {
270 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
276 for (int i
= 0; i
< 10; ++i
) {
277 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
283 for (int i
= 0; i
< 10; ++i
) {
284 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
290 for (int i
= 0; i
< 10; ++i
) {
291 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
297 for (int i
= 0; i
< 10; ++i
) {
298 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
304 for (int i
= 0; i
< 10; ++i
) {
305 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
306 for (int i
= 0; i
< 10; ++i
)
310 for (int i
= 0; i
< 10; ++i
) {
311 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
312 for (int i
= 0; i
< 10; ++i
)
316 for (int i
= 0; i
< 10; ++i
) {
317 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
323 for (int i
= 0; i
< 10; ++i
) {
324 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
330 for (int i
= 0; i
< 10; ++i
) {
331 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside a simd region}}
337 for (int i
= 0; i
< 10; ++i
) {
338 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
344 for (int i
= 0; i
< 10; ++i
) {
345 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
349 for (int i
= 0; i
< 10; ++i
) {
350 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
354 for (int i
= 0; i
< 10; ++i
) {
355 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
359 for (int i
= 0; i
< 10; ++i
) {
360 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
364 for (int i
= 0; i
< 10; ++i
) {
365 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
369 for (int i
= 0; i
< 10; ++i
) {
370 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
374 for (int i
= 0; i
< 10; ++i
) {
375 #pragma omp ordered simd // OK
379 for (int i
= 0; i
< 10; ++i
) {
380 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd region}}
384 for (int i
= 0; i
< 10; ++i
) {
385 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
389 for (int i
= 0; i
< 10; ++i
) {
390 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
394 for (int i
= 0; i
< 10; ++i
) {
395 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
399 for (int i
= 0; i
< 10; ++i
) {
400 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
401 for (int i
= 0; i
< 10; ++i
)
405 for (int i
= 0; i
< 10; ++i
) {
406 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
410 for (int i
= 0; i
< 10; ++i
) {
411 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
415 for (int i
= 0; i
< 10; ++i
) {
416 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
420 for (int i
= 0; i
< 10; ++i
) {
421 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
422 for (int i
= 0; i
< 10; ++i
)
426 for (int i
= 0; i
< 10; ++i
) {
427 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
428 for (int j
= 0; j
< 10; ++j
)
432 for (int i
= 0; i
< 10; ++i
) {
433 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
436 for (int i
= 0; i
< 10; ++i
) {
437 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside a simd region}}
438 for (int j
= 0; j
< 10; ++j
)
442 for (int i
= 0; i
< 10; ++i
) {
443 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
444 for (int j
= 0; j
< 10; ++j
)
448 for (int i
= 0; i
< 10; ++i
) {
449 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
450 for (int j
= 0; j
< 10; ++j
)
454 for (int i
= 0; i
< 10; ++i
) {
455 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
456 for (int j
= 0; j
< 10; ++j
)
460 for (int i
= 0; i
< 10; ++i
) {
461 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
462 for (int j
= 0; j
< 10; ++j
)
466 for (int i
= 0; i
< 10; ++i
) {
467 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
468 for (int j
= 0; j
< 10; ++j
)
472 for (int i
= 0; i
< 10; ++i
) {
473 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
474 for (int j
= 0; j
< 10; ++j
)
478 for (int i
= 0; i
< 10; ++i
) {
479 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
480 for (int j
= 0; j
< 10; ++j
)
484 for (int i
= 0; i
< 10; ++i
) {
485 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
489 for (int i
= 0; i
< 10; ++i
) {
490 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
491 for (int j
= 0; j
< 10; ++j
)
495 for (int i
= 0; i
< 10; ++i
) {
496 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
497 for (int j
= 0; j
< 10; ++j
)
501 for (int i
= 0; i
< 10; ++i
) {
502 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
503 for (int j
= 0; j
< 10; ++j
)
507 for (int i
= 0; i
< 10; ++i
) {
508 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
509 for (int j
= 0; j
< 10; ++j
)
515 for (int i
= 0; i
< 10; ++i
) {
516 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
517 for (int i
= 0; i
< 10; ++i
)
521 for (int i
= 0; i
< 10; ++i
) {
523 for (int i
= 0; i
< 10; ++i
)
527 for (int i
= 0; i
< 10; ++i
) {
528 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
529 for (int i
= 0; i
< 10; ++i
)
533 for (int i
= 0; i
< 10; ++i
) {
535 for (int i
= 0; i
< 10; ++i
)
539 for (int i
= 0; i
< 10; ++i
) {
540 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
546 for (int i
= 0; i
< 10; ++i
) {
547 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a for region}}
553 for (int i
= 0; i
< 10; ++i
) {
554 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
561 for (int i
= 0; i
< 10; ++i
) {
562 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}}
568 for (int i
= 0; i
< 10; ++i
) {
575 for (int i
= 0; i
< 10; ++i
) {
578 #pragma omp single // OK
582 #pragma omp for // OK
583 for (int i
= 0; i
< 10; ++i
)
585 #pragma omp sections // OK
592 for (int i
= 0; i
< 10; ++i
) {
593 #pragma omp parallel for
594 for (int i
= 0; i
< 10; ++i
)
598 for (int i
= 0; i
< 10; ++i
) {
599 #pragma omp parallel for simd
600 for (int i
= 0; i
< 10; ++i
)
604 for (int i
= 0; i
< 10; ++i
) {
605 #pragma omp parallel master
611 for (int i
= 0; i
< 10; ++i
) {
612 #pragma omp parallel masked
618 for (int i
= 0; i
< 10; ++i
) {
619 #pragma omp parallel sections
625 for (int i
= 0; i
< 10; ++i
) {
632 for (int i
= 0; i
< 10; ++i
) {
633 #pragma omp taskyield
637 for (int i
= 0; i
< 10; ++i
) {
638 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}}
642 for (int i
= 0; i
< 10; ++i
) {
643 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
647 for (int i
= 0; i
< 10; ++i
) {
652 for (int i
= 0; i
< 10; ++i
) {
657 for (int i
= 0; i
< 10; ++i
) {
658 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
661 #pragma omp for ordered
662 for (int i
= 0; i
< 10; ++i
) {
663 #pragma omp ordered // OK
667 for (int i
= 0; i
< 10; ++i
) {
672 for (int i
= 0; i
< 10; ++i
) {
677 for (int i
= 0; i
< 10; ++i
) {
678 #pragma omp target parallel
682 for (int i
= 0; i
< 10; ++i
) {
683 #pragma omp target parallel for
684 for (int i
= 0; i
< 10; ++i
)
688 for (int i
= 0; i
< 10; ++i
) {
689 #pragma omp target enter data map(to: a)
693 for (int i
= 0; i
< 10; ++i
) {
694 #pragma omp target exit data map(from: a)
698 for (int i
= 0; i
< 10; ++i
) {
699 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
703 for (int i
= 0; i
< 10; ++i
) {
705 for (int i
= 0; i
< 10; ++i
)
709 for (int i
= 0; i
< 10; ++i
) {
710 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
711 for (int j
= 0; j
< 10; ++j
)
715 for (int i
= 0; i
< 10; ++i
) {
716 #pragma omp target update to(a)
719 for (int i
= 0; i
< 10; ++i
) {
720 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
721 for (int j
= 0; j
< 10; ++j
)
725 for (int i
= 0; i
< 10; ++i
) {
726 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
727 for (int j
= 0; j
< 10; ++j
)
731 for (int i
= 0; i
< 10; ++i
) {
732 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
733 for (int j
= 0; j
< 10; ++j
)
737 for (int i
= 0; i
< 10; ++i
) {
738 #pragma omp target simd // OK
739 for (int j
= 0; j
< 10; ++j
)
743 for (int i
= 0; i
< 10; ++i
) {
744 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
745 for (int j
= 0; j
< 10; ++j
)
749 for (int i
= 0; i
< 10; ++i
) {
750 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
751 for (int j
= 0; j
< 10; ++j
)
755 for (int i
= 0; i
< 10; ++i
) {
756 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
757 for (int j
= 0; j
< 10; ++j
)
761 for (int i
= 0; i
< 10; ++i
) {
762 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
763 for (int j
= 0; j
< 10; ++j
)
767 for (int i
= 0; i
< 10; ++i
) {
768 #pragma omp target teams // OK
772 for (int i
= 0; i
< 10; ++i
) {
773 #pragma omp target teams distribute // OK
774 for (int j
= 0; j
< 10; ++j
)
778 for (int i
= 0; i
< 10; ++i
) {
779 #pragma omp target teams distribute parallel for // OK
780 for (int j
= 0; j
< 10; ++j
)
784 for (int i
= 0; i
< 10; ++i
) {
785 #pragma omp target teams distribute parallel for simd // OK
786 for (int j
= 0; j
< 10; ++j
)
790 for (int i
= 0; i
< 10; ++i
) {
791 #pragma omp target teams distribute simd // OK
792 for (int j
= 0; j
< 10; ++j
)
796 // FOR SIMD DIRECTIVE
798 for (int i
= 0; i
< 10; ++i
) {
799 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
800 for (int i
= 0; i
< 10; ++i
)
804 for (int i
= 0; i
< 10; ++i
) {
805 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
806 for (int i
= 0; i
< 10; ++i
)
810 for (int i
= 0; i
< 10; ++i
) {
811 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
812 for (int i
= 0; i
< 10; ++i
)
816 for (int i
= 0; i
< 10; ++i
) {
817 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
818 for (int i
= 0; i
< 10; ++i
)
822 for (int i
= 0; i
< 10; ++i
) {
823 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
829 for (int i
= 0; i
< 10; ++i
) {
830 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
836 for (int i
= 0; i
< 10; ++i
) {
837 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
843 for (int i
= 0; i
< 10; ++i
) {
844 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
850 for (int i
= 0; i
< 10; ++i
) {
851 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
857 for (int i
= 0; i
< 10; ++i
) {
858 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
859 for (int i
= 0; i
< 10; ++i
)
863 for (int i
= 0; i
< 10; ++i
) {
864 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
865 for (int i
= 0; i
< 10; ++i
)
869 for (int i
= 0; i
< 10; ++i
) {
870 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
876 for (int i
= 0; i
< 10; ++i
) {
877 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside a simd region}}
883 for (int i
= 0; i
< 10; ++i
) {
884 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
890 for (int i
= 0; i
< 10; ++i
) {
891 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
897 for (int i
= 0; i
< 10; ++i
) {
898 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
902 for (int i
= 0; i
< 10; ++i
) {
903 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
907 for (int i
= 0; i
< 10; ++i
) {
908 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
912 for (int i
= 0; i
< 10; ++i
) {
913 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
917 for (int i
= 0; i
< 10; ++i
) {
918 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
922 for (int i
= 0; i
< 10; ++i
) {
923 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
927 for (int i
= 0; i
< 10; ++i
) {
928 #pragma omp ordered simd // OK
932 for (int i
= 0; i
< 10; ++i
) {
933 #pragma omp ordered threads // expected-error {{OpenMP constructs may not be nested inside a simd region}}
937 for (int i
= 0; i
< 10; ++i
) {
938 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
942 for (int i
= 0; i
< 10; ++i
) {
943 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
947 for (int i
= 0; i
< 10; ++i
) {
948 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
952 for (int i
= 0; i
< 10; ++i
) {
953 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
954 for (int i
= 0; i
< 10; ++i
)
958 for (int i
= 0; i
< 10; ++i
) {
959 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
963 for (int i
= 0; i
< 10; ++i
) {
964 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
968 for (int i
= 0; i
< 10; ++i
) {
969 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
973 for (int i
= 0; i
< 10; ++i
) {
974 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
975 for (int i
= 0; i
< 10; ++i
)
979 for (int i
= 0; i
< 10; ++i
) {
980 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
981 for (int j
= 0; j
< 10; ++j
)
985 for (int i
= 0; i
< 10; ++i
) {
986 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
990 for (int i
= 0; i
< 10; ++i
) {
991 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
992 for (int j
= 0; j
< 10; ++j
)
996 for (int i
= 0; i
< 10; ++i
) {
997 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
998 for (int j
= 0; j
< 10; ++j
)
1001 #pragma omp for simd
1002 for (int i
= 0; i
< 10; ++i
) {
1003 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1004 for (int j
= 0; j
< 10; ++j
)
1007 #pragma omp for simd
1008 for (int i
= 0; i
< 10; ++i
) {
1009 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1010 for (int j
= 0; j
< 10; ++j
)
1013 #pragma omp for simd
1014 for (int i
= 0; i
< 10; ++i
) {
1015 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1016 for (int j
= 0; j
< 10; ++j
)
1019 #pragma omp for simd
1020 for (int i
= 0; i
< 10; ++i
) {
1021 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1022 for (int j
= 0; j
< 10; ++j
)
1025 #pragma omp for simd
1026 for (int i
= 0; i
< 10; ++i
) {
1027 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1028 for (int j
= 0; j
< 10; ++j
)
1031 #pragma omp for simd
1032 for (int i
= 0; i
< 10; ++i
) {
1033 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1034 for (int j
= 0; j
< 10; ++j
)
1037 #pragma omp for simd
1038 for (int i
= 0; i
< 10; ++i
) {
1039 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1042 #pragma omp for simd
1043 for (int i
= 0; i
< 10; ++i
) {
1044 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1045 for (int j
= 0; j
< 10; ++j
)
1048 #pragma omp for simd
1049 for (int i
= 0; i
< 10; ++i
) {
1050 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1051 for (int j
= 0; j
< 10; ++j
)
1054 #pragma omp for simd
1055 for (int i
= 0; i
< 10; ++i
) {
1056 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1057 for (int j
= 0; j
< 10; ++j
)
1060 #pragma omp for simd
1061 for (int i
= 0; i
< 10; ++i
) {
1062 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
1063 for (int j
= 0; j
< 10; ++j
)
1067 // SECTIONS DIRECTIVE
1068 #pragma omp sections
1070 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
1071 for (int i
= 0; i
< 10; ++i
)
1074 #pragma omp sections
1077 for (int i
= 0; i
< 10; ++i
)
1080 #pragma omp sections
1082 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
1083 for (int i
= 0; i
< 10; ++i
)
1086 #pragma omp sections
1088 #pragma omp parallel
1089 for (int i
= 0; i
< 10; ++i
)
1092 #pragma omp sections
1094 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
1099 #pragma omp sections
1106 #pragma omp sections
1108 #pragma omp parallel
1110 #pragma omp single // OK
1114 #pragma omp for // OK
1115 for (int i
= 0; i
< 10; ++i
)
1117 #pragma omp sections // OK
1123 #pragma omp sections
1125 #pragma omp parallel master
1130 #pragma omp sections
1132 #pragma omp parallel masked
1137 #pragma omp sections
1139 #pragma omp parallel
1141 #pragma omp master // OK
1145 #pragma omp for // OK
1146 for (int i
= 0; i
< 10; ++i
)
1148 #pragma omp master // OK
1153 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}}
1156 #pragma omp sections
1158 #pragma omp parallel
1160 #pragma omp critical(A) // OK
1164 #pragma omp for // OK
1165 for (int i
= 0; i
< 10; ++i
)
1167 #pragma omp critical // OK
1172 #pragma omp critical(A) // expected-error {{statement in 'omp sections' directive must be enclosed into a section region}}
1175 #pragma omp sections
1177 #pragma omp parallel for
1178 for (int i
= 0; i
< 10; ++i
)
1181 #pragma omp sections
1183 #pragma omp parallel for simd
1184 for (int i
= 0; i
< 10; ++i
)
1187 #pragma omp sections
1189 #pragma omp parallel sections
1194 #pragma omp sections
1201 #pragma omp sections
1203 #pragma omp taskyield
1205 #pragma omp sections
1207 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}}
1209 #pragma omp sections
1211 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}}
1213 #pragma omp sections
1215 #pragma omp taskwait
1217 #pragma omp sections
1221 #pragma omp sections
1223 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
1226 #pragma omp sections
1231 #pragma omp sections
1236 #pragma omp sections
1238 #pragma omp target parallel
1241 #pragma omp sections
1243 #pragma omp target parallel for
1244 for (int i
= 0; i
< 10; ++i
)
1247 #pragma omp sections
1249 #pragma omp target enter data map(to: a)
1251 #pragma omp sections
1253 #pragma omp target exit data map(from: a)
1255 #pragma omp sections
1257 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
1260 #pragma omp sections
1262 #pragma omp taskloop
1263 for (int i
= 0; i
< 10; ++i
)
1266 #pragma omp sections
1268 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
1269 for (int i
= 0; i
< 10; ++i
)
1272 #pragma omp sections
1274 #pragma omp target update to(a)
1276 #pragma omp sections
1278 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
1279 for (int i
= 0; i
< 10; ++i
)
1282 #pragma omp sections
1284 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
1285 for (int i
= 0; i
< 10; ++i
)
1288 #pragma omp sections
1290 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
1291 for (int i
= 0; i
< 10; ++i
)
1294 #pragma omp sections
1296 #pragma omp target simd // OK
1297 for (int i
= 0; i
< 10; ++i
)
1300 #pragma omp sections
1302 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
1303 for (int i
= 0; i
< 10; ++i
)
1306 #pragma omp sections
1308 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
1309 for (int i
= 0; i
< 10; ++i
)
1312 #pragma omp sections
1314 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
1315 for (int i
= 0; i
< 10; ++i
)
1318 #pragma omp sections
1320 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
1321 for (int i
= 0; i
< 10; ++i
)
1324 #pragma omp sections
1326 #pragma omp target teams // OK
1329 #pragma omp sections
1331 #pragma omp target teams distribute // OK
1332 for (int i
= 0; i
< 10; ++i
)
1335 #pragma omp sections
1337 #pragma omp target teams distribute parallel for // OK
1338 for (int i
= 0; i
< 10; ++i
)
1341 #pragma omp sections
1343 #pragma omp target teams distribute parallel for simd // OK
1344 for (int i
= 0; i
< 10; ++i
)
1347 #pragma omp sections
1349 #pragma omp target teams distribute simd // OK
1350 for (int i
= 0; i
< 10; ++i
)
1354 // SECTION DIRECTIVE
1355 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must be closely nested to a sections region}}
1359 #pragma omp sections
1363 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
1364 for (int i
= 0; i
< 10; ++i
)
1368 #pragma omp sections
1373 for (int i
= 0; i
< 10; ++i
)
1377 #pragma omp sections
1381 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
1382 for (int i
= 0; i
< 10; ++i
)
1386 #pragma omp sections
1390 #pragma omp parallel
1391 for (int i
= 0; i
< 10; ++i
)
1395 #pragma omp sections
1399 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
1405 #pragma omp sections
1409 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a section region}}
1415 #pragma omp sections
1419 #pragma omp parallel master
1421 #pragma omp critical
1425 #pragma omp sections
1429 #pragma omp parallel masked
1431 #pragma omp critical
1435 #pragma omp sections
1439 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
1441 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}}
1443 #pragma omp critical
1447 #pragma omp sections
1451 #pragma omp parallel
1453 #pragma omp single // OK
1457 #pragma omp for // OK
1458 for (int i
= 0; i
< 10; ++i
)
1460 #pragma omp for simd // OK
1461 for (int i
= 0; i
< 10; ++i
)
1463 #pragma omp sections // OK
1470 #pragma omp sections
1474 #pragma omp parallel for
1475 for (int i
= 0; i
< 10; ++i
)
1479 #pragma omp sections
1483 #pragma omp parallel for simd
1484 for (int i
= 0; i
< 10; ++i
)
1488 #pragma omp sections
1492 #pragma omp parallel sections
1498 #pragma omp sections
1508 #pragma omp sections
1512 #pragma omp taskyield
1516 #pragma omp sections
1520 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}}
1524 #pragma omp sections
1528 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}}
1532 #pragma omp sections
1536 #pragma omp taskwait
1540 #pragma omp sections
1548 #pragma omp sections
1552 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
1556 #pragma omp sections
1562 #pragma omp sections
1568 #pragma omp sections
1571 #pragma omp target parallel
1574 #pragma omp sections
1578 #pragma omp target parallel for
1579 for (int i
= 0; i
< 10; ++i
)
1583 #pragma omp sections
1587 #pragma omp target enter data map(to: a)
1591 #pragma omp sections
1595 #pragma omp target exit data map(from: a)
1599 #pragma omp sections
1602 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
1605 #pragma omp sections
1608 #pragma omp taskloop
1609 for (int i
= 0; i
< 10; ++i
)
1612 #pragma omp sections
1615 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
1616 for (int i
= 0; i
< 10; ++i
)
1619 #pragma omp sections
1624 #pragma omp target update to(a)
1627 #pragma omp sections
1630 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
1631 for (int i
= 0; i
< 10; ++i
)
1634 #pragma omp sections
1637 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
1638 for (int i
= 0; i
< 10; ++i
)
1641 #pragma omp sections
1644 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
1645 for (int i
= 0; i
< 10; ++i
)
1648 #pragma omp sections
1651 #pragma omp target simd // OK
1652 for (int i
= 0; i
< 10; ++i
)
1655 #pragma omp sections
1658 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
1659 for (int i
= 0; i
< 10; ++i
)
1662 #pragma omp sections
1665 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
1666 for (int i
= 0; i
< 10; ++i
)
1669 #pragma omp sections
1672 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
1673 for (int i
= 0; i
< 10; ++i
)
1676 #pragma omp sections
1679 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
1680 for (int i
= 0; i
< 10; ++i
)
1683 #pragma omp sections
1686 #pragma omp target teams // OK
1689 #pragma omp sections
1692 #pragma omp target teams distribute // OK
1693 for (int i
= 0; i
< 10; ++i
)
1696 #pragma omp sections
1699 #pragma omp target teams distribute parallel for // OK
1700 for (int i
= 0; i
< 10; ++i
)
1703 #pragma omp sections
1706 #pragma omp target teams distribute parallel for simd // OK
1707 for (int i
= 0; i
< 10; ++i
)
1710 #pragma omp sections
1713 #pragma omp target teams distribute simd // OK
1714 for (int i
= 0; i
< 10; ++i
)
1721 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
1722 for (int i
= 0; i
< 10; ++i
)
1728 for (int i
= 0; i
< 10; ++i
)
1733 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
1734 for (int i
= 0; i
< 10; ++i
)
1739 #pragma omp parallel
1740 for (int i
= 0; i
< 10; ++i
)
1745 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
1752 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}}
1759 #pragma omp parallel master
1766 #pragma omp parallel masked
1773 #pragma omp critical
1780 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
1787 #pragma omp parallel
1789 #pragma omp single // OK
1793 #pragma omp for // OK
1794 for (int i
= 0; i
< 10; ++i
)
1796 #pragma omp for simd // OK
1797 for (int i
= 0; i
< 10; ++i
)
1799 #pragma omp sections // OK
1807 #pragma omp parallel for
1808 for (int i
= 0; i
< 10; ++i
)
1813 #pragma omp parallel for simd
1814 for (int i
= 0; i
< 10; ++i
)
1819 #pragma omp parallel sections
1833 #pragma omp taskyield
1838 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}}
1843 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}}
1848 #pragma omp taskwait
1858 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
1873 #pragma omp target parallel
1878 #pragma omp target parallel for
1879 for (int i
= 0; i
< 10; ++i
)
1884 #pragma omp target enter data map(to: a)
1889 #pragma omp target exit data map(from: a)
1894 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
1899 #pragma omp taskloop
1900 for (int i
= 0; i
< 10; ++i
)
1905 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
1906 for (int i
= 0; i
< 10; ++i
)
1911 #pragma omp target update to(a)
1916 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
1917 for (int i
= 0; i
< 10; ++i
)
1922 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
1923 for (int i
= 0; i
< 10; ++i
)
1928 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
1929 for (int i
= 0; i
< 10; ++i
)
1934 #pragma omp target simd // OK
1935 for (int i
= 0; i
< 10; ++i
)
1940 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
1941 for (int i
= 0; i
< 10; ++i
)
1946 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
1947 for (int i
= 0; i
< 10; ++i
)
1952 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
1953 for (int i
= 0; i
< 10; ++i
)
1958 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
1959 for (int i
= 0; i
< 10; ++i
)
1964 #pragma omp target teams // OK
1969 #pragma omp target teams distribute // OK
1970 for (int i
= 0; i
< 10; ++i
)
1975 #pragma omp target teams distribute parallel for // OK
1976 for (int i
= 0; i
< 10; ++i
)
1981 #pragma omp target teams distribute parallel for simd // OK
1982 for (int i
= 0; i
< 10; ++i
)
1987 #pragma omp target teams distribute simd // OK
1988 for (int i
= 0; i
< 10; ++i
)
1995 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
1996 for (int i
= 0; i
< 10; ++i
)
2002 for (int i
= 0; i
< 10; ++i
)
2007 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
2008 for (int i
= 0; i
< 10; ++i
)
2013 #pragma omp parallel
2014 for (int i
= 0; i
< 10; ++i
)
2019 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
2026 #pragma omp master // OK, though second 'master' is redundant
2033 #pragma omp critical
2040 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
2047 #pragma omp parallel
2049 #pragma omp master // OK
2053 #pragma omp for // OK
2054 for (int i
= 0; i
< 10; ++i
)
2056 #pragma omp for simd // OK
2057 for (int i
= 0; i
< 10; ++i
)
2059 #pragma omp sections // OK
2067 #pragma omp parallel master // OK
2071 #pragma omp parallel
2073 #pragma omp for // OK
2074 for (int i
= 0; i
< 10; ++i
)
2076 #pragma omp for simd // OK
2077 for (int i
= 0; i
< 10; ++i
)
2079 #pragma omp sections // OK
2087 #pragma omp parallel for
2088 for (int i
= 0; i
< 10; ++i
)
2093 #pragma omp parallel for simd
2094 for (int i
= 0; i
< 10; ++i
)
2099 #pragma omp parallel sections
2113 #pragma omp taskyield
2118 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}}
2123 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}}
2128 #pragma omp taskwait
2138 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
2153 #pragma omp target parallel
2158 #pragma omp target parallel for
2159 for (int i
= 0; i
< 10; ++i
)
2164 #pragma omp target enter data map(to: a)
2169 #pragma omp target exit data map(from: a)
2174 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
2179 #pragma omp taskloop
2180 for (int i
= 0; i
< 10; ++i
)
2185 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
2186 for (int i
= 0; i
< 10; ++i
)
2191 #pragma omp target update to(a)
2196 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
2197 for (int i
= 0; i
< 10; ++i
)
2202 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
2203 for (int i
= 0; i
< 10; ++i
)
2208 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
2209 for (int i
= 0; i
< 10; ++i
)
2214 #pragma omp target simd // OK
2215 for (int i
= 0; i
< 10; ++i
)
2220 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
2221 for (int i
= 0; i
< 10; ++i
)
2226 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
2227 for (int i
= 0; i
< 10; ++i
)
2232 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
2233 for (int i
= 0; i
< 10; ++i
)
2238 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
2239 for (int i
= 0; i
< 10; ++i
)
2244 #pragma omp target teams // OK
2249 #pragma omp target teams distribute // OK
2250 for (int i
= 0; i
< 10; ++i
)
2255 #pragma omp target teams distribute parallel for // OK
2256 for (int i
= 0; i
< 10; ++i
)
2261 #pragma omp target teams distribute parallel for simd // OK
2262 for (int i
= 0; i
< 10; ++i
)
2267 #pragma omp target teams distribute simd // OK
2268 for (int i
= 0; i
< 10; ++i
)
2272 // CRITICAL DIRECTIVE
2273 #pragma omp critical
2275 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
2276 for (int i
= 0; i
< 10; ++i
)
2279 #pragma omp critical
2282 for (int i
= 0; i
< 10; ++i
)
2285 #pragma omp critical
2287 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
2288 for (int i
= 0; i
< 10; ++i
)
2291 #pragma omp critical
2293 #pragma omp parallel
2294 for (int i
= 0; i
< 10; ++i
)
2297 #pragma omp critical
2299 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
2304 #pragma omp critical
2306 #pragma omp master // OK, though second 'master' is redundant
2311 #pragma omp critical
2313 #pragma omp critical
2318 #pragma omp critical
2320 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
2325 #pragma omp critical
2327 #pragma omp parallel
2329 #pragma omp master // OK
2333 #pragma omp for // OK
2334 for (int i
= 0; i
< 10; ++i
)
2336 #pragma omp for simd // OK
2337 for (int i
= 0; i
< 10; ++i
)
2339 #pragma omp sections // OK
2345 #pragma omp critical
2347 #pragma omp parallel master
2352 #pragma omp critical
2354 #pragma omp parallel masked
2359 #pragma omp critical
2361 #pragma omp parallel for
2362 for (int i
= 0; i
< 10; ++i
)
2365 #pragma omp critical
2367 #pragma omp parallel for simd
2368 for (int i
= 0; i
< 10; ++i
)
2371 #pragma omp critical
2373 #pragma omp parallel sections
2378 #pragma omp critical
2385 #pragma omp critical
2387 #pragma omp taskyield
2390 #pragma omp critical
2392 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}}
2395 #pragma omp critical
2397 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}}
2400 #pragma omp critical
2402 #pragma omp taskwait
2405 #pragma omp critical(Tuzik)
2407 #pragma omp critical(grelka)
2410 #pragma omp critical(Belka) // expected-note {{previous 'critical' region starts here}}
2412 #pragma omp critical(Belka) // expected-error {{cannot nest 'critical' regions having the same name 'Belka'}}
2414 #pragma omp critical(Tuzik)
2416 #pragma omp parallel
2417 #pragma omp critical(grelka)
2424 #pragma omp critical
2426 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
2429 #pragma omp critical
2434 #pragma omp critical
2439 #pragma omp critical
2441 #pragma omp target parallel
2444 #pragma omp critical
2446 #pragma omp target parallel for
2447 for (int i
= 0; i
< 10; ++i
)
2450 #pragma omp critical
2452 #pragma omp target enter data map(to: a)
2455 #pragma omp critical
2457 #pragma omp target exit data map(from: a)
2460 #pragma omp critical
2462 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
2465 #pragma omp critical
2467 #pragma omp taskloop
2468 for (int i
= 0; i
< 10; ++i
)
2471 #pragma omp critical
2473 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
2474 for (int i
= 0; i
< 10; ++i
)
2477 #pragma omp critical
2479 #pragma omp target update to(a)
2482 #pragma omp critical
2484 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
2485 for (int i
= 0; i
< 10; ++i
)
2488 #pragma omp critical
2490 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
2491 for (int i
= 0; i
< 10; ++i
)
2494 #pragma omp critical
2496 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
2497 for (int i
= 0; i
< 10; ++i
)
2500 #pragma omp critical
2502 #pragma omp target simd // OK
2503 for (int i
= 0; i
< 10; ++i
)
2506 #pragma omp critical
2508 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
2509 for (int i
= 0; i
< 10; ++i
)
2512 #pragma omp critical
2514 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
2515 for (int i
= 0; i
< 10; ++i
)
2518 #pragma omp critical
2520 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
2521 for (int i
= 0; i
< 10; ++i
)
2524 #pragma omp critical
2526 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
2527 for (int i
= 0; i
< 10; ++i
)
2530 #pragma omp critical
2532 #pragma omp target teams // OK
2535 #pragma omp critical
2537 #pragma omp target teams distribute // OK
2538 for (int i
= 0; i
< 10; ++i
)
2541 #pragma omp critical
2543 #pragma omp target teams distribute parallel for // OK
2544 for (int i
= 0; i
< 10; ++i
)
2547 #pragma omp critical
2549 #pragma omp target teams distribute parallel for simd // OK
2550 for (int i
= 0; i
< 10; ++i
)
2553 #pragma omp critical
2555 #pragma omp target teams distribute simd // OK
2556 for (int i
= 0; i
< 10; ++i
)
2560 // PARALLEL FOR DIRECTIVE
2561 #pragma omp parallel for
2562 for (int i
= 0; i
< 10; ++i
) {
2563 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
2564 for (int i
= 0; i
< 10; ++i
)
2567 #pragma omp parallel for
2568 for (int i
= 0; i
< 10; ++i
) {
2570 for (int i
= 0; i
< 10; ++i
)
2573 #pragma omp parallel for
2574 for (int i
= 0; i
< 10; ++i
) {
2575 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
2576 for (int i
= 0; i
< 10; ++i
)
2579 #pragma omp parallel for
2580 for (int i
= 0; i
< 10; ++i
) {
2581 #pragma omp parallel
2582 for (int i
= 0; i
< 10; ++i
)
2585 #pragma omp parallel for
2586 for (int i
= 0; i
< 10; ++i
) {
2587 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
2592 #pragma omp parallel for
2593 for (int i
= 0; i
< 10; ++i
) {
2594 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a parallel for region}}
2599 #pragma omp parallel for
2600 for (int i
= 0; i
< 10; ++i
) {
2601 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
2607 #pragma omp parallel for
2608 for (int i
= 0; i
< 10; ++i
) {
2609 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region}}
2615 #pragma omp parallel for
2616 for (int i
= 0; i
< 10; ++i
) {
2617 #pragma omp critical
2623 #pragma omp parallel for
2624 for (int i
= 0; i
< 10; ++i
) {
2625 #pragma omp parallel
2627 #pragma omp single // OK
2631 #pragma omp for // OK
2632 for (int i
= 0; i
< 10; ++i
)
2634 #pragma omp for simd // OK
2635 for (int i
= 0; i
< 10; ++i
)
2637 #pragma omp sections // OK
2643 #pragma omp parallel for
2644 for (int i
= 0; i
< 10; ++i
) {
2645 #pragma omp parallel for
2646 for (int i
= 0; i
< 10; ++i
)
2649 #pragma omp parallel for
2650 for (int i
= 0; i
< 10; ++i
) {
2651 #pragma omp parallel for simd
2652 for (int i
= 0; i
< 10; ++i
)
2655 #pragma omp parallel for
2656 for (int i
= 0; i
< 10; ++i
) {
2657 #pragma omp parallel sections
2662 #pragma omp parallel for
2663 for (int i
= 0; i
< 10; ++i
) {
2669 #pragma omp parallel for
2670 for (int i
= 0; i
< 10; ++i
) {
2671 #pragma omp taskyield
2674 #pragma omp parallel for
2675 for (int i
= 0; i
< 10; ++i
) {
2676 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' region}}
2679 #pragma omp parallel for
2680 for (int i
= 0; i
< 10; ++i
) {
2681 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
2684 #pragma omp parallel for
2685 for (int i
= 0; i
< 10; ++i
) {
2686 #pragma omp taskwait
2689 #pragma omp parallel for
2690 for (int i
= 0; i
< 10; ++i
) {
2694 #pragma omp parallel for
2695 for (int i
= 0; i
< 10; ++i
) {
2696 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
2699 #pragma omp parallel for ordered
2700 for (int i
= 0; i
< 10; ++i
) {
2701 #pragma omp ordered // OK
2704 #pragma omp parallel for
2705 for (int i
= 0; i
< 10; ++i
) {
2709 #pragma omp parallel for
2710 for (int i
= 0; i
< 10; ++i
) {
2714 #pragma omp parallel for
2715 for (int i
= 0; i
< 10; ++i
) {
2716 #pragma omp target parallel
2719 #pragma omp parallel for
2720 for (int i
= 0; i
< 10; ++i
) {
2721 #pragma omp target parallel for
2722 for (int i
= 0; i
< 10; ++i
)
2725 #pragma omp parallel for
2726 for (int i
= 0; i
< 10; ++i
) {
2727 #pragma omp target enter data map(to: a)
2730 #pragma omp parallel for
2731 for (int i
= 0; i
< 10; ++i
) {
2732 #pragma omp target exit data map(from: a)
2735 #pragma omp parallel for
2736 for (int i
= 0; i
< 10; ++i
) {
2737 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
2740 #pragma omp parallel for
2741 for (int i
= 0; i
< 10; ++i
) {
2742 #pragma omp taskloop
2743 for (int i
= 0; i
< 10; ++i
)
2746 #pragma omp parallel for
2747 for (int i
= 0; i
< 10; ++i
) {
2748 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
2749 for (int j
= 0; j
< 10; ++j
)
2752 #pragma omp parallel for
2753 for (int i
= 0; i
< 10; ++i
) {
2754 #pragma omp target update to(a)
2756 #pragma omp parallel for
2757 for (int i
= 0; i
< 10; ++i
) {
2758 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
2759 for (int j
= 0; j
< 10; ++j
)
2762 #pragma omp parallel for
2763 for (int i
= 0; i
< 10; ++i
) {
2764 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
2765 for (int j
= 0; j
< 10; ++j
)
2768 #pragma omp parallel for
2769 for (int i
= 0; i
< 10; ++i
) {
2770 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
2771 for (int j
= 0; j
< 10; ++j
)
2774 #pragma omp parallel for
2775 for (int i
= 0; i
< 10; ++i
) {
2776 #pragma omp target simd // OK
2777 for (int j
= 0; j
< 10; ++j
)
2780 #pragma omp parallel for
2781 for (int i
= 0; i
< 10; ++i
) {
2782 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
2783 for (int j
= 0; j
< 10; ++j
)
2786 #pragma omp parallel for
2787 for (int i
= 0; i
< 10; ++i
) {
2788 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
2789 for (int j
= 0; j
< 10; ++j
)
2792 #pragma omp parallel for
2793 for (int i
= 0; i
< 10; ++i
) {
2794 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
2795 for (int j
= 0; j
< 10; ++j
)
2798 #pragma omp parallel for
2799 for (int i
= 0; i
< 10; ++i
) {
2800 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
2801 for (int j
= 0; j
< 10; ++j
)
2804 #pragma omp parallel for
2805 for (int i
= 0; i
< 10; ++i
) {
2806 #pragma omp target teams // OK
2809 #pragma omp parallel for
2810 for (int i
= 0; i
< 10; ++i
) {
2811 #pragma omp target teams distribute // OK
2812 for (int j
= 0; j
< 10; ++j
)
2815 #pragma omp parallel for
2816 for (int i
= 0; i
< 10; ++i
) {
2817 #pragma omp target teams distribute parallel for // OK
2818 for (int j
= 0; j
< 10; ++j
)
2821 #pragma omp parallel for
2822 for (int i
= 0; i
< 10; ++i
) {
2823 #pragma omp target teams distribute parallel for simd // OK
2824 for (int j
= 0; j
< 10; ++j
)
2827 #pragma omp parallel for
2828 for (int i
= 0; i
< 10; ++i
) {
2829 #pragma omp target teams distribute simd // OK
2830 for (int j
= 0; j
< 10; ++j
)
2834 // PARALLEL FOR SIMD DIRECTIVE
2835 #pragma omp parallel for simd
2836 for (int i
= 0; i
< 10; ++i
) {
2837 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2838 for (int i
= 0; i
< 10; ++i
)
2841 #pragma omp parallel for simd
2842 for (int i
= 0; i
< 10; ++i
) {
2843 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
2844 for (int i
= 0; i
< 10; ++i
)
2847 #pragma omp parallel for simd
2848 for (int i
= 0; i
< 10; ++i
) {
2849 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2850 for (int i
= 0; i
< 10; ++i
)
2853 #pragma omp parallel for simd
2854 for (int i
= 0; i
< 10; ++i
) {
2855 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2856 for (int i
= 0; i
< 10; ++i
)
2859 #pragma omp parallel for simd
2860 for (int i
= 0; i
< 10; ++i
) {
2861 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2866 #pragma omp parallel for simd
2867 for (int i
= 0; i
< 10; ++i
) {
2868 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2873 #pragma omp parallel for simd
2874 for (int i
= 0; i
< 10; ++i
) {
2875 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2881 #pragma omp parallel for simd
2882 for (int i
= 0; i
< 10; ++i
) {
2883 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2889 #pragma omp parallel for simd
2890 for (int i
= 0; i
< 10; ++i
) {
2891 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2897 #pragma omp parallel for simd
2898 for (int i
= 0; i
< 10; ++i
) {
2899 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2906 for (int i
= 0; i
< 10; ++i
)
2908 #pragma omp for simd
2909 for (int i
= 0; i
< 10; ++i
)
2911 #pragma omp sections
2917 #pragma omp parallel for simd
2918 for (int i
= 0; i
< 10; ++i
) {
2919 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2920 for (int i
= 0; i
< 10; ++i
)
2923 #pragma omp parallel for simd
2924 for (int i
= 0; i
< 10; ++i
) {
2925 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd region}}
2926 for (int i
= 0; i
< 10; ++i
)
2929 #pragma omp parallel for simd
2930 for (int i
= 0; i
< 10; ++i
) {
2931 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2936 #pragma omp parallel for simd
2937 for (int i
= 0; i
< 10; ++i
) {
2938 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2943 #pragma omp parallel for simd
2944 for (int i
= 0; i
< 10; ++i
) {
2945 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2948 #pragma omp parallel for simd
2949 for (int i
= 0; i
< 10; ++i
) {
2950 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2953 #pragma omp parallel for simd
2954 for (int i
= 0; i
< 10; ++i
) {
2955 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
2958 #pragma omp parallel for simd
2959 for (int i
= 0; i
< 10; ++i
) {
2960 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2963 #pragma omp parallel for simd
2964 for (int i
= 0; i
< 10; ++i
) {
2965 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2968 #pragma omp parallel for simd
2969 for (int i
= 0; i
< 10; ++i
) {
2970 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2973 #pragma omp parallel for simd
2974 for (int i
= 0; i
< 10; ++i
) {
2975 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2978 #pragma omp parallel for simd
2979 for (int i
= 0; i
< 10; ++i
) {
2980 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
2983 #pragma omp parallel for simd
2984 for (int i
= 0; i
< 10; ++i
) {
2985 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2988 #pragma omp parallel for simd
2989 for (int i
= 0; i
< 10; ++i
) {
2990 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2993 #pragma omp parallel for simd
2994 for (int i
= 0; i
< 10; ++i
) {
2995 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
2996 for (int i
= 0; i
< 10; ++i
)
2999 #pragma omp parallel for simd
3000 for (int i
= 0; i
< 10; ++i
) {
3001 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3004 #pragma omp parallel for simd
3005 for (int i
= 0; i
< 10; ++i
) {
3006 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3009 #pragma omp parallel for simd
3010 for (int i
= 0; i
< 10; ++i
) {
3011 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3014 #pragma omp parallel for simd
3015 for (int i
= 0; i
< 10; ++i
) {
3016 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3017 for (int i
= 0; i
< 10; ++i
)
3020 #pragma omp parallel for simd
3021 for (int i
= 0; i
< 10; ++i
) {
3022 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3023 for (int j
= 0; j
< 10; ++j
)
3026 #pragma omp parallel for simd
3027 for (int i
= 0; i
< 10; ++i
) {
3028 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3031 #pragma omp parallel for simd
3032 for (int i
= 0; i
< 10; ++i
) {
3033 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3034 for (int j
= 0; j
< 10; ++j
)
3037 #pragma omp parallel for simd
3038 for (int i
= 0; i
< 10; ++i
) {
3039 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3040 for (int j
= 0; j
< 10; ++j
)
3043 #pragma omp parallel for simd
3044 for (int i
= 0; i
< 10; ++i
) {
3045 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3046 for (int j
= 0; j
< 10; ++j
)
3049 #pragma omp parallel for simd
3050 for (int i
= 0; i
< 10; ++i
) {
3051 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3052 for (int j
= 0; j
< 10; ++j
)
3055 #pragma omp parallel for simd
3056 for (int i
= 0; i
< 10; ++i
) {
3057 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3058 for (int j
= 0; j
< 10; ++j
)
3061 #pragma omp parallel for simd
3062 for (int i
= 0; i
< 10; ++i
) {
3063 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3064 for (int j
= 0; j
< 10; ++j
)
3067 #pragma omp parallel for simd
3068 for (int i
= 0; i
< 10; ++i
) {
3069 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3070 for (int j
= 0; j
< 10; ++j
)
3073 #pragma omp parallel for simd
3074 for (int i
= 0; i
< 10; ++i
) {
3075 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3076 for (int j
= 0; j
< 10; ++j
)
3079 #pragma omp parallel for simd
3080 for (int i
= 0; i
< 10; ++i
) {
3081 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3084 #pragma omp parallel for simd
3085 for (int i
= 0; i
< 10; ++i
) {
3086 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3087 for (int j
= 0; j
< 10; ++j
)
3090 #pragma omp parallel for simd
3091 for (int i
= 0; i
< 10; ++i
) {
3092 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3093 for (int j
= 0; j
< 10; ++j
)
3096 #pragma omp parallel for simd
3097 for (int i
= 0; i
< 10; ++i
) {
3098 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3099 for (int j
= 0; j
< 10; ++j
)
3102 #pragma omp parallel for simd
3103 for (int i
= 0; i
< 10; ++i
) {
3104 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
3105 for (int j
= 0; j
< 10; ++j
)
3109 // PARALLEL MASTER DIRECTIVE
3110 #pragma omp parallel master
3112 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
3113 for (int i
= 0; i
< 10; ++i
)
3116 #pragma omp parallel master
3119 for (int i
= 0; i
< 10; ++i
)
3122 #pragma omp parallel master
3124 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
3125 for (int i
= 0; i
< 10; ++i
)
3128 #pragma omp parallel master
3130 #pragma omp parallel
3131 for (int i
= 0; i
< 10; ++i
)
3134 #pragma omp parallel master
3136 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
3141 #pragma omp parallel master
3143 #pragma omp master // OK, though second 'master' is redundant
3148 #pragma omp parallel master
3150 #pragma omp critical
3155 #pragma omp parallel master
3157 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
3162 #pragma omp parallel master
3164 #pragma omp parallel
3166 #pragma omp parallel master // OK
3170 #pragma omp for // OK
3171 for (int i
= 0; i
< 10; ++i
)
3173 #pragma omp for simd // OK
3174 for (int i
= 0; i
< 10; ++i
)
3176 #pragma omp sections // OK
3182 #pragma omp parallel master
3184 #pragma omp parallel master // OK
3188 #pragma omp parallel
3190 #pragma omp for // OK
3191 for (int i
= 0; i
< 10; ++i
)
3193 #pragma omp for simd // OK
3194 for (int i
= 0; i
< 10; ++i
)
3196 #pragma omp sections // OK
3202 #pragma omp parallel master
3204 #pragma omp parallel for
3205 for (int i
= 0; i
< 10; ++i
)
3208 #pragma omp parallel master
3210 #pragma omp parallel for simd
3211 for (int i
= 0; i
< 10; ++i
)
3214 #pragma omp parallel master
3216 #pragma omp parallel sections
3221 #pragma omp parallel master
3228 #pragma omp parallel master
3230 #pragma omp taskyield
3233 #pragma omp parallel master
3235 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel master' region}}
3238 #pragma omp parallel master
3240 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel master' region}}
3243 #pragma omp parallel master
3245 #pragma omp taskwait
3248 #pragma omp parallel master
3253 #pragma omp parallel master
3255 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
3258 #pragma omp parallel master
3263 #pragma omp parallel master
3268 #pragma omp parallel master
3270 #pragma omp target parallel
3273 #pragma omp parallel master
3275 #pragma omp target parallel for
3276 for (int i
= 0; i
< 10; ++i
)
3279 #pragma omp parallel master
3281 #pragma omp target enter data map(to: a)
3284 #pragma omp parallel master
3286 #pragma omp target exit data map(from: a)
3289 #pragma omp parallel master
3291 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
3294 #pragma omp parallel master
3296 #pragma omp taskloop
3297 for (int i
= 0; i
< 10; ++i
)
3300 #pragma omp parallel master
3302 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
3303 for (int i
= 0; i
< 10; ++i
)
3306 #pragma omp parallel master
3308 #pragma omp target update to(a)
3311 #pragma omp parallel master
3313 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
3314 for (int i
= 0; i
< 10; ++i
)
3317 #pragma omp parallel master
3319 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
3320 for (int i
= 0; i
< 10; ++i
)
3323 #pragma omp parallel master
3325 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
3326 for (int i
= 0; i
< 10; ++i
)
3329 #pragma omp parallel master
3331 #pragma omp target simd // OK
3332 for (int i
= 0; i
< 10; ++i
)
3335 #pragma omp parallel master
3337 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
3338 for (int i
= 0; i
< 10; ++i
)
3341 #pragma omp parallel master
3343 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
3344 for (int i
= 0; i
< 10; ++i
)
3347 #pragma omp parallel master
3349 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
3350 for (int i
= 0; i
< 10; ++i
)
3353 #pragma omp parallel master
3355 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
3356 for (int i
= 0; i
< 10; ++i
)
3359 #pragma omp parallel master
3361 #pragma omp target teams // OK
3364 #pragma omp parallel master
3366 #pragma omp target teams distribute // OK
3367 for (int i
= 0; i
< 10; ++i
)
3370 #pragma omp parallel master
3372 #pragma omp target teams distribute parallel for // OK
3373 for (int i
= 0; i
< 10; ++i
)
3376 #pragma omp parallel master
3378 #pragma omp target teams distribute parallel for simd // OK
3379 for (int i
= 0; i
< 10; ++i
)
3382 #pragma omp parallel master
3384 #pragma omp target teams distribute simd // OK
3385 for (int i
= 0; i
< 10; ++i
)
3389 // PARALLEL MASKED DIRECTIVE
3390 #pragma omp parallel masked
3392 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel masked' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
3393 for (int i
= 0; i
< 10; ++i
)
3396 #pragma omp parallel masked
3399 for (int i
= 0; i
< 10; ++i
)
3402 #pragma omp parallel masked
3404 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel masked' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
3405 for (int i
= 0; i
< 10; ++i
)
3408 #pragma omp parallel masked
3410 #pragma omp parallel
3411 for (int i
= 0; i
< 10; ++i
)
3414 #pragma omp parallel masked
3416 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel masked' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
3421 #pragma omp parallel masked
3423 #pragma omp master // OK, though second 'master' is redundant
3428 #pragma omp parallel masked
3430 #pragma omp critical
3435 #pragma omp parallel masked
3437 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel masked' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
3442 #pragma omp parallel master
3444 #pragma omp parallel
3446 #pragma omp parallel master // OK
3450 #pragma omp for // OK
3451 for (int i
= 0; i
< 10; ++i
)
3453 #pragma omp for simd // OK
3454 for (int i
= 0; i
< 10; ++i
)
3456 #pragma omp sections // OK
3462 #pragma omp parallel master
3464 #pragma omp parallel master // OK
3468 #pragma omp parallel
3470 #pragma omp for // OK
3471 for (int i
= 0; i
< 10; ++i
)
3473 #pragma omp for simd // OK
3474 for (int i
= 0; i
< 10; ++i
)
3476 #pragma omp sections // OK
3482 #pragma omp parallel master
3484 #pragma omp parallel for
3485 for (int i
= 0; i
< 10; ++i
)
3488 #pragma omp parallel master
3490 #pragma omp parallel for simd
3491 for (int i
= 0; i
< 10; ++i
)
3494 #pragma omp parallel master
3496 #pragma omp parallel sections
3501 #pragma omp parallel master
3508 #pragma omp parallel master
3510 #pragma omp taskyield
3513 #pragma omp parallel master
3515 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel master' region}}
3518 #pragma omp parallel master
3520 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel master' region}}
3523 #pragma omp parallel master
3525 #pragma omp taskwait
3528 #pragma omp parallel master
3533 #pragma omp parallel master
3535 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
3538 #pragma omp parallel master
3543 #pragma omp parallel master
3548 #pragma omp parallel master
3550 #pragma omp target parallel
3553 #pragma omp parallel master
3555 #pragma omp target parallel for
3556 for (int i
= 0; i
< 10; ++i
)
3559 #pragma omp parallel master
3561 #pragma omp target enter data map(to: a)
3564 #pragma omp parallel master
3566 #pragma omp target exit data map(from: a)
3569 #pragma omp parallel master
3571 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
3574 #pragma omp parallel master
3576 #pragma omp taskloop
3577 for (int i
= 0; i
< 10; ++i
)
3580 #pragma omp parallel master
3582 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
3583 for (int i
= 0; i
< 10; ++i
)
3586 #pragma omp parallel master
3588 #pragma omp target update to(a)
3591 #pragma omp parallel master
3593 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
3594 for (int i
= 0; i
< 10; ++i
)
3597 #pragma omp parallel master
3599 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
3600 for (int i
= 0; i
< 10; ++i
)
3603 #pragma omp parallel master
3605 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
3606 for (int i
= 0; i
< 10; ++i
)
3609 #pragma omp parallel master
3611 #pragma omp target simd // OK
3612 for (int i
= 0; i
< 10; ++i
)
3615 #pragma omp parallel master
3617 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
3618 for (int i
= 0; i
< 10; ++i
)
3621 #pragma omp parallel master
3623 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
3624 for (int i
= 0; i
< 10; ++i
)
3627 #pragma omp parallel master
3629 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
3630 for (int i
= 0; i
< 10; ++i
)
3633 #pragma omp parallel master
3635 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel master' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
3636 for (int i
= 0; i
< 10; ++i
)
3639 #pragma omp parallel master
3641 #pragma omp target teams // OK
3644 #pragma omp parallel master
3646 #pragma omp target teams distribute // OK
3647 for (int i
= 0; i
< 10; ++i
)
3650 #pragma omp parallel master
3652 #pragma omp target teams distribute parallel for // OK
3653 for (int i
= 0; i
< 10; ++i
)
3656 #pragma omp parallel master
3658 #pragma omp target teams distribute parallel for simd // OK
3659 for (int i
= 0; i
< 10; ++i
)
3662 #pragma omp parallel master
3664 #pragma omp target teams distribute simd // OK
3665 for (int i
= 0; i
< 10; ++i
)
3668 // PARALLEL SECTIONS DIRECTIVE
3669 #pragma omp parallel sections
3671 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
3672 for (int i
= 0; i
< 10; ++i
)
3675 #pragma omp parallel sections
3678 for (int i
= 0; i
< 10; ++i
)
3681 #pragma omp parallel sections
3683 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
3684 for (int i
= 0; i
< 10; ++i
)
3687 #pragma omp parallel sections
3689 #pragma omp parallel
3690 for (int i
= 0; i
< 10; ++i
)
3693 #pragma omp parallel sections
3695 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
3700 #pragma omp parallel sections
3707 #pragma omp parallel sections
3711 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
3715 #pragma omp parallel sections
3719 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}}
3723 #pragma omp parallel sections
3727 #pragma omp critical
3731 #pragma omp parallel sections
3733 #pragma omp parallel
3735 #pragma omp single // OK
3739 #pragma omp for // OK
3740 for (int i
= 0; i
< 10; ++i
)
3742 #pragma omp for simd // OK
3743 for (int i
= 0; i
< 10; ++i
)
3745 #pragma omp sections // OK
3751 #pragma omp parallel sections
3753 #pragma omp parallel for
3754 for (int i
= 0; i
< 10; ++i
)
3757 #pragma omp parallel sections
3759 #pragma omp parallel for simd
3760 for (int i
= 0; i
< 10; ++i
)
3763 #pragma omp parallel sections
3765 #pragma omp parallel sections
3770 #pragma omp parallel sections
3777 #pragma omp parallel sections
3779 #pragma omp taskyield
3781 #pragma omp parallel sections
3783 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
3785 #pragma omp parallel sections
3787 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
3789 #pragma omp parallel sections
3791 #pragma omp taskwait
3793 #pragma omp parallel sections
3797 #pragma omp parallel sections
3799 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
3802 #pragma omp parallel sections
3807 #pragma omp parallel sections
3812 #pragma omp parallel sections
3814 #pragma omp target parallel
3817 #pragma omp parallel sections
3819 #pragma omp target parallel for
3820 for (int i
= 0; i
< 10; ++i
)
3823 #pragma omp parallel sections
3825 #pragma omp target enter data map(to: a)
3827 #pragma omp parallel sections
3829 #pragma omp target exit data map(from: a)
3831 #pragma omp parallel sections
3833 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
3836 #pragma omp parallel sections
3838 #pragma omp taskloop
3839 for (int i
= 0; i
< 10; ++i
)
3842 #pragma omp parallel sections
3844 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
3845 for (int i
= 0; i
< 10; ++i
)
3848 #pragma omp parallel sections
3850 #pragma omp target update to(a)
3852 #pragma omp parallel sections
3854 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
3855 for (int i
= 0; i
< 10; ++i
)
3858 #pragma omp parallel sections
3860 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
3861 for (int i
= 0; i
< 10; ++i
)
3864 #pragma omp parallel sections
3866 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
3867 for (int i
= 0; i
< 10; ++i
)
3870 #pragma omp parallel sections
3872 #pragma omp target simd // OK
3873 for (int i
= 0; i
< 10; ++i
)
3876 #pragma omp parallel sections
3878 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
3879 for (int i
= 0; i
< 10; ++i
)
3882 #pragma omp parallel sections
3884 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
3885 for (int i
= 0; i
< 10; ++i
)
3888 #pragma omp parallel sections
3890 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
3891 for (int i
= 0; i
< 10; ++i
)
3894 #pragma omp parallel sections
3896 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
3897 for (int i
= 0; i
< 10; ++i
)
3900 #pragma omp parallel sections
3902 #pragma omp target teams // OK
3905 #pragma omp parallel sections
3907 #pragma omp target teams distribute // OK
3908 for (int i
= 0; i
< 10; ++i
)
3911 #pragma omp parallel sections
3913 #pragma omp target teams distribute parallel for // OK
3914 for (int i
= 0; i
< 10; ++i
)
3917 #pragma omp parallel sections
3919 #pragma omp target teams distribute parallel for simd // OK
3920 for (int i
= 0; i
< 10; ++i
)
3923 #pragma omp parallel sections
3925 #pragma omp target teams distribute simd // OK
3926 for (int i
= 0; i
< 10; ++i
)
3932 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
3933 for (int i
= 0; i
< 10; ++i
)
3937 for (int i
= 0; i
< 10; ++i
)
3940 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
3941 for (int i
= 0; i
< 10; ++i
)
3944 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
3949 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a task region}}
3954 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
3957 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}}
3960 #pragma omp critical
3964 #pragma omp parallel for
3965 for (int i
= 0; i
< 10; ++i
)
3968 #pragma omp parallel for simd
3969 for (int i
= 0; i
< 10; ++i
)
3972 #pragma omp parallel sections
3983 #pragma omp taskyield
3988 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}}
3993 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}}
3998 #pragma omp taskwait
4008 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
4023 #pragma omp target parallel
4027 #pragma omp target parallel for
4028 for (int i
= 0; i
< 10; ++i
)
4032 #pragma omp target enter data map(to: a)
4037 #pragma omp target exit data map(from: a)
4042 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
4047 #pragma omp taskloop
4048 for (int i
= 0; i
< 10; ++i
)
4053 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
4054 for (int i
= 0; i
< 10; ++i
)
4059 #pragma omp target update to(a)
4064 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
4065 for (int i
= 0; i
< 10; ++i
)
4070 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
4071 for (int i
= 0; i
< 10; ++i
)
4076 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
4077 for (int i
= 0; i
< 10; ++i
)
4082 #pragma omp target simd // OK
4083 for (int i
= 0; i
< 10; ++i
)
4088 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
4089 for (int i
= 0; i
< 10; ++i
)
4094 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
4095 for (int i
= 0; i
< 10; ++i
)
4100 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
4101 for (int i
= 0; i
< 10; ++i
)
4106 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
4107 for (int i
= 0; i
< 10; ++i
)
4112 #pragma omp target teams // OK
4117 #pragma omp target teams distribute // OK
4118 for (int i
= 0; i
< 10; ++i
)
4123 #pragma omp target teams distribute parallel for // OK
4124 for (int i
= 0; i
< 10; ++i
)
4129 #pragma omp target teams distribute parallel for simd // OK
4130 for (int i
= 0; i
< 10; ++i
)
4135 #pragma omp target teams distribute simd // OK
4136 for (int i
= 0; i
< 10; ++i
)
4140 // ORDERED DIRECTIVE
4143 #pragma omp for // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
4144 for (int i
= 0; i
< 10; ++i
)
4150 for (int i
= 0; i
< 10; ++i
)
4155 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
4156 for (int i
= 0; i
< 10; ++i
)
4161 #pragma omp parallel
4162 for (int i
= 0; i
< 10; ++i
)
4167 #pragma omp single // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
4174 #pragma omp master // OK, though second 'ordered' is redundant
4181 #pragma omp critical
4188 #pragma omp sections // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
4195 #pragma omp parallel for ordered
4196 for (int j
= 0; j
< 10; ++j
) {
4197 #pragma omp ordered // OK
4205 #pragma omp parallel for simd ordered
4206 for (int j
= 0; j
< 10; ++j
) {
4207 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
4215 #pragma omp parallel for simd ordered
4216 for (int j
= 0; j
< 10; ++j
) {
4217 #pragma omp ordered simd
4225 #pragma omp parallel for
4226 for (int i
= 0; i
< 10; ++i
)
4231 #pragma omp parallel for simd
4232 for (int i
= 0; i
< 10; ++i
)
4237 #pragma omp parallel sections
4251 #pragma omp taskyield
4256 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'ordered' region}}
4261 #pragma omp scan // expected-error {{region cannot be closely nested inside 'ordered' region}}
4266 #pragma omp taskwait
4276 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
4291 #pragma omp target parallel
4296 #pragma omp target parallel for ordered
4297 for (int j
= 0; j
< 10; ++j
) {
4298 #pragma omp ordered // OK
4306 #pragma omp target parallel for
4307 for (int i
= 0; i
< 10; ++i
)
4312 #pragma omp target enter data map(to: a)
4317 #pragma omp target exit data map(from: a)
4322 #pragma omp teams // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
4327 #pragma omp taskloop
4328 for (int i
= 0; i
< 10; ++i
)
4333 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
4334 for (int i
= 0; i
< 10; ++i
)
4340 #pragma omp target update to(a)
4345 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
4346 for (int i
= 0; i
< 10; ++i
)
4351 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
4352 for (int i
= 0; i
< 10; ++i
)
4357 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
4358 for (int i
= 0; i
< 10; ++i
)
4363 #pragma omp target simd // OK
4364 for (int i
= 0; i
< 10; ++i
)
4369 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
4370 for (int i
= 0; i
< 10; ++i
)
4375 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
4376 for (int i
= 0; i
< 10; ++i
)
4381 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
4382 for (int i
= 0; i
< 10; ++i
)
4387 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'ordered' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
4388 for (int i
= 0; i
< 10; ++i
)
4393 #pragma omp target teams // OK
4398 #pragma omp target teams distribute // OK
4399 for (int i
= 0; i
< 10; ++i
)
4404 #pragma omp target teams distribute parallel for // OK
4405 for (int i
= 0; i
< 10; ++i
)
4410 #pragma omp target teams distribute parallel for simd // OK
4411 for (int i
= 0; i
< 10; ++i
)
4416 #pragma omp target teams distribute simd // OK
4417 for (int i
= 0; i
< 10; ++i
)
4423 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4424 // expected-note@+1 {{expected an expression statement}}
4426 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4427 for (int i
= 0; i
< 10; ++i
)
4431 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4432 // expected-note@+1 {{expected an expression statement}}
4434 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4435 for (int i
= 0; i
< 10; ++i
)
4439 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4440 // expected-note@+1 {{expected an expression statement}}
4442 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4443 for (int i
= 0; i
< 10; ++i
)
4447 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4448 // expected-note@+1 {{expected an expression statement}}
4450 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4451 for (int i
= 0; i
< 10; ++i
)
4455 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4456 // expected-note@+1 {{expected an expression statement}}
4458 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4464 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4465 // expected-note@+1 {{expected an expression statement}}
4467 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4473 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4474 // expected-note@+1 {{expected an expression statement}}
4476 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4482 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4483 // expected-note@+1 {{expected an expression statement}}
4485 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4491 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4492 // expected-note@+1 {{expected an expression statement}}
4494 #pragma omp parallel master // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4500 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4501 // expected-note@+1 {{expected an expression statement}}
4503 #pragma omp parallel masked // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4509 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4510 // expected-note@+1 {{expected an expression statement}}
4512 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4518 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4519 // expected-note@+1 {{expected an expression statement}}
4521 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4522 for (int i
= 0; i
< 10; ++i
)
4526 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4527 // expected-note@+1 {{expected an expression statement}}
4529 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4530 for (int i
= 0; i
< 10; ++i
)
4534 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4535 // expected-note@+1 {{expected an expression statement}}
4537 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4543 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4544 // expected-note@+1 {{expected an expression statement}}
4546 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4552 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4553 // expected-note@+1 {{expected an expression statement}}
4555 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4559 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4560 // expected-note@+1 {{expected an expression statement}}
4562 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4566 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4567 // expected-note@+1 {{expected an expression statement}}
4569 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4573 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4574 // expected-note@+1 {{expected an expression statement}}
4576 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4580 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4581 // expected-note@+1 {{expected an expression statement}}
4583 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4587 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4588 // expected-note@+1 {{expected an expression statement}}
4590 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4594 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4595 // expected-note@+1 {{expected an expression statement}}
4597 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4601 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4602 // expected-note@+1 {{expected an expression statement}}
4604 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4608 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4609 // expected-note@+1 {{expected an expression statement}}
4611 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4615 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4616 // expected-note@+1 {{expected an expression statement}}
4618 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4619 for (int i
= 0; i
< 10; ++i
)
4623 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4624 // expected-note@+1 {{expected an expression statement}}
4626 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4630 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4631 // expected-note@+1 {{expected an expression statement}}
4633 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4637 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4638 // expected-note@+1 {{expected an expression statement}}
4640 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4644 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4645 // expected-note@+1 {{expected an expression statement}}
4647 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4648 for (int i
= 0; i
< 10; ++i
)
4652 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4653 // expected-note@+1 {{expected an expression statement}}
4655 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4656 for (int i
= 0; i
< 10; ++i
)
4660 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4661 // expected-note@+1 {{expected an expression statement}}
4663 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4667 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4668 // expected-note@+1 {{expected an expression statement}}
4670 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4671 for (int i
= 0; i
< 10; ++i
)
4675 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4676 // expected-note@+1 {{expected an expression statement}}
4678 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4679 for (int i
= 0; i
< 10; ++i
)
4683 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4684 // expected-note@+1 {{expected an expression statement}}
4686 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4687 for (int i
= 0; i
< 10; ++i
)
4691 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4692 // expected-note@+1 {{expected an expression statement}}
4694 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4695 for (int i
= 0; i
< 10; ++i
)
4699 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4700 // expected-note@+1 {{expected an expression statement}}
4702 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4703 for (int i
= 0; i
< 10; ++i
)
4707 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4708 // expected-note@+1 {{expected an expression statement}}
4710 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4711 for (int i
= 0; i
< 10; ++i
)
4715 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4716 // expected-note@+1 {{expected an expression statement}}
4718 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4719 for (int i
= 0; i
< 10; ++i
)
4723 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4724 // expected-note@+1 {{expected an expression statement}}
4726 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4727 for (int i
= 0; i
< 10; ++i
)
4731 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4732 // expected-note@+1 {{expected an expression statement}}
4734 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4738 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4739 // expected-note@+1 {{expected an expression statement}}
4741 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4742 for (int i
= 0; i
< 10; ++i
)
4746 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4747 // expected-note@+1 {{expected an expression statement}}
4749 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4750 for (int i
= 0; i
< 10; ++i
)
4754 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4755 // expected-note@+1 {{expected an expression statement}}
4757 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4758 for (int i
= 0; i
< 10; ++i
)
4762 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
4763 // expected-note@+1 {{expected an expression statement}}
4765 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
4766 for (int i
= 0; i
< 10; ++i
)
4772 #pragma omp parallel
4776 for (int i
= 0; i
< 10; ++i
)
4780 for (int i
= 0; i
< 10; ++i
)
4783 #pragma omp for simd
4784 for (int i
= 0; i
< 10; ++i
)
4787 #pragma omp sections
4792 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target region}}
4806 #pragma omp critical
4811 #pragma omp parallel for
4812 for (int i
= 0; i
< 10; ++i
)
4815 #pragma omp parallel for simd
4816 for (int i
= 0; i
< 10; ++i
)
4819 #pragma omp parallel sections
4830 #pragma omp taskyield
4840 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
4845 #pragma omp taskwait
4855 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
4865 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
4870 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
4874 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
4875 for (int i
= 0; i
< 10; ++i
)
4882 #pragma omp target // expected-error {{target construct with nested teams region contains statements outside of the teams construct}}
4884 #pragma omp teams // expected-note {{directive outside teams construct here}}
4886 #pragma omp teams // expected-note {{nested teams construct here}}
4889 #pragma omp target // expected-error {{target construct with nested teams region contains statements outside of the teams construct}}
4891 ++a
; // expected-note {{statement outside teams construct here}}
4892 #pragma omp teams // expected-note {{nested teams construct here}}
4895 #pragma omp target // expected-error {{target construct with nested teams region contains statements outside of the teams construct}}
4897 while (0) // expected-note {{statement outside teams construct here}}
4898 #pragma omp teams // expected-note {{nested teams construct here}}
4903 #pragma omp taskloop
4904 for (int i
= 0; i
< 10; ++i
)
4909 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
4910 for (int i
= 0; i
< 10; ++i
)
4915 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
4919 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
4923 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
4927 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
4928 for (int i
= 0; i
< 10; ++i
)
4933 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
4934 for (int i
= 0; i
< 10; ++i
)
4939 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
4940 for (int i
= 0; i
< 10; ++i
)
4945 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
4946 for (int i
= 0; i
< 10; ++i
)
4951 #pragma omp teams distribute // OK
4952 for (int i
= 0; i
< 10; ++i
)
4957 #pragma omp teams distribute simd // OK
4958 for (int i
= 0; i
< 10; ++i
)
4963 #pragma omp teams distribute parallel for simd // OK
4964 for (int i
= 0; i
< 10; ++i
)
4969 #pragma omp teams distribute parallel for // OK
4970 for (int i
= 0; i
< 10; ++i
)
4975 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
4976 for (int i
= 0; i
< 10; ++i
)
4981 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
4982 for (int i
= 0; i
< 10; ++i
)
4987 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
4988 for (int i
= 0; i
< 10; ++i
)
4993 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
4994 for (int i
= 0; i
< 10; ++i
)
4999 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
5000 for (int i
= 0; i
< 10; ++i
)
5004 // TARGET PARALLEL DIRECTIVE
5005 #pragma omp target parallel
5006 #pragma omp parallel
5008 #pragma omp target parallel
5010 for (int i
= 0; i
< 10; ++i
)
5012 #pragma omp target parallel
5014 for (int i
= 0; i
< 10; ++i
)
5016 #pragma omp target parallel
5017 #pragma omp for simd
5018 for (int i
= 0; i
< 10; ++i
)
5020 #pragma omp target parallel
5021 #pragma omp sections
5025 #pragma omp target parallel
5026 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target parallel region}}
5030 #pragma omp target parallel
5034 #pragma omp target parallel
5040 #pragma omp parallel master
5045 #pragma omp parallel masked
5049 #pragma omp target parallel
5050 #pragma omp critical
5054 #pragma omp target parallel
5055 #pragma omp parallel for
5056 for (int i
= 0; i
< 10; ++i
)
5058 #pragma omp target parallel
5059 #pragma omp parallel for simd
5060 for (int i
= 0; i
< 10; ++i
)
5062 #pragma omp target parallel
5063 #pragma omp parallel sections
5067 #pragma omp target parallel
5072 #pragma omp target parallel
5074 #pragma omp taskyield
5077 #pragma omp target parallel
5082 #pragma omp target parallel
5084 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
5087 #pragma omp target parallel
5089 #pragma omp taskwait
5092 #pragma omp target parallel
5097 #pragma omp target parallel
5099 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
5102 #pragma omp target parallel
5107 #pragma omp target parallel
5109 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}}
5112 #pragma omp target parallel
5114 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' region}}
5117 #pragma omp target parallel
5118 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel' region}}
5119 for (int i
= 0; i
< 10; ++i
)
5121 #pragma omp target parallel
5123 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
5126 #pragma omp target parallel
5129 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
5132 #pragma omp target parallel
5134 #pragma omp taskloop
5135 for (int i
= 0; i
< 10; ++i
)
5138 #pragma omp target parallel
5140 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
5141 for (int i
= 0; i
< 10; ++i
)
5144 #pragma omp target parallel
5146 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target parallel' region}}
5148 #pragma omp target parallel
5150 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target parallel' region}}
5152 #pragma omp target parallel
5154 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel' region}}
5156 #pragma omp target parallel
5158 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
5159 for (int i
= 0; i
< 10; ++i
)
5162 #pragma omp target parallel
5164 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
5165 for (int i
= 0; i
< 10; ++i
)
5168 #pragma omp target parallel
5170 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
5171 for (int i
= 0; i
< 10; ++i
)
5174 #pragma omp target parallel
5176 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' region}}
5177 for (int i
= 0; i
< 10; ++i
)
5180 #pragma omp target parallel
5182 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
5183 for (int i
= 0; i
< 10; ++i
)
5186 #pragma omp target parallel
5188 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
5189 for (int i
= 0; i
< 10; ++i
)
5192 #pragma omp target parallel
5194 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
5195 for (int i
= 0; i
< 10; ++i
)
5198 #pragma omp target parallel
5200 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
5201 for (int i
= 0; i
< 10; ++i
)
5204 #pragma omp target parallel
5206 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' region}}
5209 #pragma omp target parallel
5211 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target parallel' region}}
5212 for (int i
= 0; i
< 10; ++i
)
5215 #pragma omp target parallel
5217 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target parallel' region}}
5218 for (int i
= 0; i
< 10; ++i
)
5221 #pragma omp target parallel
5223 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target parallel' region}}
5224 for (int i
= 0; i
< 10; ++i
)
5227 #pragma omp target parallel
5229 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target parallel' region}}
5230 for (int i
= 0; i
< 10; ++i
)
5234 // TARGET PARALLEL FOR DIRECTIVE
5235 #pragma omp target parallel for
5236 for (int i
= 0; i
< 10; ++i
) {
5237 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
5238 for (int i
= 0; i
< 10; ++i
)
5241 #pragma omp target parallel for
5242 for (int i
= 0; i
< 10; ++i
) {
5244 for (int i
= 0; i
< 10; ++i
)
5247 #pragma omp target parallel for
5248 for (int i
= 0; i
< 10; ++i
) {
5249 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
5250 for (int i
= 0; i
< 10; ++i
)
5253 #pragma omp target parallel for
5254 for (int i
= 0; i
< 10; ++i
) {
5255 #pragma omp parallel
5256 for (int i
= 0; i
< 10; ++i
)
5259 #pragma omp target parallel for
5260 for (int i
= 0; i
< 10; ++i
) {
5261 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
5266 #pragma omp target parallel for
5267 for (int i
= 0; i
< 10; ++i
) {
5268 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target parallel for region}}
5273 #pragma omp target parallel for
5274 for (int i
= 0; i
< 10; ++i
) {
5275 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
5281 #pragma omp target parallel for
5282 for (int i
= 0; i
< 10; ++i
) {
5283 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
5289 #pragma omp target parallel for
5290 for (int i
= 0; i
< 10; ++i
) {
5291 #pragma omp critical
5297 #pragma omp target parallel for
5298 for (int i
= 0; i
< 10; ++i
) {
5299 #pragma omp parallel
5301 #pragma omp single // OK
5305 #pragma omp for // OK
5306 for (int i
= 0; i
< 10; ++i
)
5308 #pragma omp for simd // OK
5309 for (int i
= 0; i
< 10; ++i
)
5311 #pragma omp sections // OK
5317 #pragma omp target parallel for
5318 for (int i
= 0; i
< 10; ++i
) {
5319 #pragma omp parallel for
5320 for (int i
= 0; i
< 10; ++i
)
5323 #pragma omp target parallel for
5324 for (int i
= 0; i
< 10; ++i
) {
5325 #pragma omp parallel for simd
5326 for (int i
= 0; i
< 10; ++i
)
5329 #pragma omp target parallel for
5330 for (int i
= 0; i
< 10; ++i
) {
5331 #pragma omp parallel sections
5336 #pragma omp target parallel for
5337 for (int i
= 0; i
< 10; ++i
) {
5343 #pragma omp target parallel for
5344 for (int i
= 0; i
< 10; ++i
) {
5345 #pragma omp taskyield
5348 #pragma omp target parallel for
5349 for (int i
= 0; i
< 10; ++i
) {
5350 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
5353 #pragma omp target parallel for
5354 for (int i
= 0; i
< 10; ++i
) {
5355 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
5358 #pragma omp target parallel for
5359 for (int i
= 0; i
< 10; ++i
) {
5360 #pragma omp taskwait
5363 #pragma omp target parallel for
5364 for (int i
= 0; i
< 10; ++i
) {
5368 #pragma omp target parallel for
5369 for (int i
= 0; i
< 10; ++i
) {
5370 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
5373 #pragma omp target parallel for ordered
5374 for (int i
= 0; i
< 10; ++i
) {
5375 #pragma omp ordered // OK
5378 #pragma omp target parallel for
5379 for (int i
= 0; i
< 10; ++i
) {
5383 #pragma omp target parallel for
5384 for (int i
= 0; i
< 10; ++i
) {
5385 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}}
5388 #pragma omp target parallel for
5389 for (int i
= 0; i
< 10; ++i
) {
5390 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for' region}}
5393 #pragma omp target parallel for
5394 for (int i
= 0; i
< 10; ++i
) {
5395 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel for' region}}
5396 for (int i
= 0; i
< 10; ++i
)
5399 #pragma omp target parallel for
5400 for (int i
= 0; i
< 10; ++i
) {
5401 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
5404 #pragma omp target parallel for
5405 for (int i
= 0; i
< 10; ++i
) {
5406 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
5409 #pragma omp target parallel for
5410 for (int i
= 0; i
< 10; ++i
) {
5411 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
5414 #pragma omp target parallel for
5415 for (int i
= 0; i
< 10; ++i
) {
5416 #pragma omp taskloop
5417 for (int i
= 0; i
< 10; ++i
)
5420 #pragma omp target parallel for
5421 for (int i
= 0; i
< 10; ++i
) {
5422 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
5423 for (int j
= 0; j
< 10; ++j
)
5426 #pragma omp target parallel for
5427 for (int i
= 0; i
< 10; ++i
) {
5428 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
5430 #pragma omp target parallel for
5431 for (int i
= 0; i
< 10; ++i
) {
5432 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
5433 for (int j
= 0; j
< 10; ++j
)
5436 #pragma omp target parallel for
5437 for (int i
= 0; i
< 10; ++i
) {
5438 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
5439 for (int j
= 0; j
< 10; ++j
)
5442 #pragma omp target parallel for
5443 for (int i
= 0; i
< 10; ++i
) {
5444 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
5445 for (int j
= 0; j
< 10; ++j
)
5448 #pragma omp target parallel for
5449 for (int i
= 0; i
< 10; ++i
) {
5450 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
5451 for (int j
= 0; j
< 10; ++j
)
5454 #pragma omp target parallel for
5455 for (int i
= 0; i
< 10; ++i
) {
5456 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
5457 for (int j
= 0; j
< 10; ++j
)
5460 #pragma omp target parallel for
5461 for (int i
= 0; i
< 10; ++i
) {
5462 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
5463 for (int j
= 0; j
< 10; ++j
)
5466 #pragma omp target parallel for
5467 for (int i
= 0; i
< 10; ++i
) {
5468 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
5469 for (int j
= 0; j
< 10; ++j
)
5472 #pragma omp target parallel for
5473 for (int i
= 0; i
< 10; ++i
) {
5474 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
5475 for (int j
= 0; j
< 10; ++j
)
5478 #pragma omp target parallel for
5479 for (int i
= 0; i
< 10; ++i
) {
5480 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' region}}
5483 #pragma omp target parallel for
5484 for (int i
= 0; i
< 10; ++i
) {
5485 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target parallel for' region}}
5486 for (int j
= 0; j
< 10; ++j
)
5489 #pragma omp target parallel for
5490 for (int i
= 0; i
< 10; ++i
) {
5491 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target parallel for' region}}
5492 for (int j
= 0; j
< 10; ++j
)
5495 #pragma omp target parallel for
5496 for (int i
= 0; i
< 10; ++i
) {
5497 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
5498 for (int j
= 0; j
< 10; ++j
)
5501 #pragma omp target parallel for
5502 for (int i
= 0; i
< 10; ++i
) {
5503 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
5504 for (int j
= 0; j
< 10; ++j
)
5509 #pragma omp teams // omp45-error {{orphaned 'omp teams' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
5513 #pragma omp parallel
5517 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
5518 for (int i
= 0; i
< 10; ++i
)
5522 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp simd' directive into a parallel region?}}
5523 for (int i
= 0; i
< 10; ++i
)
5527 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
5528 for (int i
= 0; i
< 10; ++i
)
5532 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
5538 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams region}}
5544 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
5549 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp master' directive into a parallel region?}}
5555 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp critical' directive into a parallel region?}}
5561 #pragma omp parallel for
5562 for (int i
= 0; i
< 10; ++i
)
5566 #pragma omp parallel for simd
5567 for (int i
= 0; i
< 10; ++i
)
5571 #pragma omp parallel sections
5577 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp task' directive into a parallel region?}}
5584 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskyield' directive into a parallel region?}}
5590 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp barrier' directive into a parallel region?}}
5596 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
5602 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskwait' directive into a parallel region?}}
5608 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp flush' directive into a parallel region?}}
5614 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
5620 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp atomic' directive into a parallel region?}}
5626 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
5632 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
5637 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
5638 for (int i
= 0; i
< 10; ++i
)
5643 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
5649 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
5655 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
5661 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskloop' directive into a parallel region?}}
5662 for (int i
= 0; i
< 10; ++i
)
5667 #pragma omp distribute
5668 for (int i
= 0; i
< 10; ++i
)
5672 #pragma omp distribute
5673 for (int i
= 0; i
< 10; ++i
)
5675 #pragma omp distribute
5676 for (int j
= 0; j
< 10; ++j
)
5681 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
5686 #pragma omp distribute parallel for
5687 for (int i
= 0; i
< 10; ++i
)
5689 #pragma omp distribute parallel for
5690 for (int j
= 0; j
< 10; ++j
)
5696 #pragma omp distribute parallel for simd
5697 for (int i
= 0; i
< 10; ++i
)
5699 #pragma omp distribute parallel for simd
5700 for (int j
= 0; j
< 10; ++j
)
5706 #pragma omp distribute simd
5707 for (int i
= 0; i
< 10; ++i
)
5709 #pragma omp distribute simd
5710 for (int j
= 0; j
< 10; ++j
)
5716 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
5717 for (int i
= 0; i
< 10; ++i
)
5723 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
5724 for (int i
= 0; i
< 10; ++i
)
5730 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
5731 for (int i
= 0; i
< 10; ++i
)
5737 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
5738 for (int i
= 0; i
< 10; ++i
)
5744 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
5745 for (int i
= 0; i
< 10; ++i
)
5751 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
5757 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
5758 for (int i
= 0; i
< 10; ++i
)
5764 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
5765 for (int i
= 0; i
< 10; ++i
)
5771 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
5772 for (int i
= 0; i
< 10; ++i
)
5778 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
5779 for (int i
= 0; i
< 10; ++i
)
5783 // TASKLOOP DIRECTIVE
5784 #pragma omp taskloop
5785 for (int i
= 0; i
< 10; ++i
) {
5786 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
5787 for (int i
= 0; i
< 10; ++i
)
5790 #pragma omp taskloop
5791 for (int i
= 0; i
< 10; ++i
) {
5793 for (int i
= 0; i
< 10; ++i
)
5796 #pragma omp taskloop
5797 for (int i
= 0; i
< 10; ++i
) {
5798 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
5799 for (int i
= 0; i
< 10; ++i
)
5802 #pragma omp taskloop
5803 for (int i
= 0; i
< 10; ++i
) {
5804 #pragma omp parallel
5805 for (int i
= 0; i
< 10; ++i
)
5808 #pragma omp taskloop
5809 for (int i
= 0; i
< 10; ++i
) {
5810 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
5815 #pragma omp taskloop
5816 for (int i
= 0; i
< 10; ++i
) {
5817 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a taskloop region}}
5822 #pragma omp taskloop
5823 for (int i
= 0; i
< 10; ++i
) {
5824 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
5830 #pragma omp taskloop
5831 for (int i
= 0; i
< 10; ++i
) {
5832 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}}
5837 #pragma omp taskloop
5838 for (int i
= 0; i
< 10; ++i
) {
5839 #pragma omp critical
5844 #pragma omp taskloop
5845 for (int i
= 0; i
< 10; ++i
) {
5846 #pragma omp parallel
5848 #pragma omp single // OK
5852 #pragma omp for // OK
5853 for (int i
= 0; i
< 10; ++i
)
5855 #pragma omp sections // OK
5861 #pragma omp taskloop
5862 for (int i
= 0; i
< 10; ++i
) {
5863 #pragma omp parallel for
5864 for (int i
= 0; i
< 10; ++i
)
5867 #pragma omp taskloop
5868 for (int i
= 0; i
< 10; ++i
) {
5869 #pragma omp parallel for simd
5870 for (int i
= 0; i
< 10; ++i
)
5873 #pragma omp taskloop
5874 for (int i
= 0; i
< 10; ++i
) {
5875 #pragma omp parallel sections
5880 #pragma omp taskloop
5881 for (int i
= 0; i
< 10; ++i
) {
5887 #pragma omp taskloop
5888 for (int i
= 0; i
< 10; ++i
) {
5889 #pragma omp taskyield
5892 #pragma omp taskloop
5893 for (int i
= 0; i
< 10; ++i
) {
5894 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}}
5897 #pragma omp taskloop
5898 for (int i
= 0; i
< 10; ++i
) {
5899 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}}
5902 #pragma omp taskloop
5903 for (int i
= 0; i
< 10; ++i
) {
5904 #pragma omp taskwait
5907 #pragma omp taskloop
5908 for (int i
= 0; i
< 10; ++i
) {
5912 #pragma omp taskloop
5913 for (int i
= 0; i
< 10; ++i
) {
5914 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
5917 #pragma omp taskloop
5918 for (int i
= 0; i
< 10; ++i
) {
5922 #pragma omp taskloop
5923 for (int i
= 0; i
< 10; ++i
) {
5927 #pragma omp taskloop
5928 for (int i
= 0; i
< 10; ++i
) {
5929 #pragma omp target parallel
5932 #pragma omp taskloop
5933 for (int i
= 0; i
< 10; ++i
) {
5934 #pragma omp target parallel for
5935 for (int i
= 0; i
< 10; ++i
)
5938 #pragma omp taskloop
5939 for (int i
= 0; i
< 10; ++i
) {
5940 #pragma omp target enter data map(to: a)
5943 #pragma omp taskloop
5944 for (int i
= 0; i
< 10; ++i
) {
5945 #pragma omp target exit data map(from: a)
5948 #pragma omp taskloop
5949 for (int i
= 0; i
< 10; ++i
) {
5950 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
5953 #pragma omp taskloop
5954 for (int i
= 0; i
< 10; ++i
) {
5955 #pragma omp taskloop
5956 for (int i
= 0; i
< 10; ++i
)
5959 #pragma omp taskloop
5960 for (int i
= 0; i
< 10; ++i
) {
5961 #pragma omp target update to(a)
5964 #pragma omp taskloop
5965 for (int i
= 0; i
< 10; ++i
) {
5966 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
5967 for (int j
= 0; j
< 10; ++j
)
5970 #pragma omp taskloop
5971 for (int i
= 0; i
< 10; ++i
) {
5972 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
5973 for (int j
= 0; j
< 10; ++j
)
5976 #pragma omp taskloop
5977 for (int i
= 0; i
< 10; ++i
) {
5978 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
5979 for (int j
= 0; j
< 10; ++j
)
5982 #pragma omp taskloop
5983 for (int i
= 0; i
< 10; ++i
) {
5984 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
5985 for (int j
= 0; j
< 10; ++j
)
5988 #pragma omp taskloop
5989 for (int i
= 0; i
< 10; ++i
) {
5990 #pragma omp target simd // OK
5991 for (int j
= 0; j
< 10; ++j
)
5994 #pragma omp taskloop
5995 for (int i
= 0; i
< 10; ++i
) {
5996 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
5997 for (int j
= 0; j
< 10; ++j
)
6000 #pragma omp taskloop
6001 for (int i
= 0; i
< 10; ++i
) {
6002 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
6003 for (int j
= 0; j
< 10; ++j
)
6006 #pragma omp taskloop
6007 for (int i
= 0; i
< 10; ++i
) {
6008 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
6009 for (int j
= 0; j
< 10; ++j
)
6012 #pragma omp taskloop
6013 for (int i
= 0; i
< 10; ++i
) {
6014 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
6015 for (int j
= 0; j
< 10; ++j
)
6018 #pragma omp taskloop
6019 for (int i
= 0; i
< 10; ++i
) {
6020 #pragma omp target teams // OK
6023 #pragma omp taskloop
6024 for (int i
= 0; i
< 10; ++i
) {
6025 #pragma omp target teams distribute // OK
6026 for (int j
= 0; j
< 10; ++j
)
6029 #pragma omp taskloop
6030 for (int i
= 0; i
< 10; ++i
) {
6031 #pragma omp target teams distribute parallel for // OK
6032 for (int j
= 0; j
< 10; ++j
)
6035 #pragma omp taskloop
6036 for (int i
= 0; i
< 10; ++i
) {
6037 #pragma omp target teams distribute parallel for simd // OK
6038 for (int j
= 0; j
< 10; ++j
)
6041 #pragma omp taskloop
6042 for (int i
= 0; i
< 10; ++i
) {
6043 #pragma omp target teams distribute simd // OK
6044 for (int j
= 0; j
< 10; ++j
)
6047 #pragma omp taskloop
6048 for (int i
= 0; i
< 10; ++i
) {
6049 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'taskloop' region}}
6050 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'taskloop' region}}
6052 #pragma omp taskloop
6053 for (int i
= 0; i
< 10; ++i
) {
6054 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'taskloop' region}}
6055 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside 'taskloop' region}}
6057 #pragma omp master taskloop
6058 for (int i
= 0; i
< 10; ++i
) {
6059 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'master taskloop' region}}
6060 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'master taskloop' region}}
6062 #pragma omp master taskloop
6063 for (int i
= 0; i
< 10; ++i
) {
6064 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'master taskloop' region}}
6065 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside 'master taskloop' region}}
6067 #pragma omp parallel master taskloop
6068 for (int i
= 0; i
< 10; ++i
) {
6069 #pragma omp cancel taskgroup // omp45-error {{region cannot be closely nested inside 'parallel master taskloop' region}}
6070 #pragma omp cancellation point taskgroup // omp45-error {{region cannot be closely nested inside 'parallel master taskloop' region}}
6072 #pragma omp parallel master taskloop
6073 for (int i
= 0; i
< 10; ++i
) {
6074 #pragma omp cancel parallel // expected-error {{region cannot be closely nested inside 'parallel master taskloop' region}}
6075 #pragma omp cancellation point parallel // expected-error {{region cannot be closely nested inside 'parallel master taskloop' region}}
6078 // DISTRIBUTE DIRECTIVE
6081 #pragma omp distribute
6082 for (int i
= 0; i
< 10; ++i
) {
6083 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
6084 for (int i
= 0; i
< 10; ++i
)
6089 #pragma omp distribute
6090 for (int i
= 0; i
< 10; ++i
) {
6092 for (int i
= 0; i
< 10; ++i
)
6097 #pragma omp distribute
6098 for (int i
= 0; i
< 10; ++i
) {
6100 for (int i
= 0; i
< 10; ++i
)
6105 #pragma omp distribute
6106 for (int i
= 0; i
< 10; ++i
) {
6107 #pragma omp for simd
6108 for (int i
= 0; i
< 10; ++i
)
6113 #pragma omp distribute
6114 for (int i
= 0; i
< 10; ++i
) {
6115 #pragma omp parallel
6116 for (int i
= 0; i
< 10; ++i
)
6121 #pragma omp distribute
6122 for (int i
= 0; i
< 10; ++i
) {
6123 #pragma omp sections
6130 #pragma omp distribute
6131 for (int i
= 0; i
< 10; ++i
) {
6132 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a distribute region}}
6139 #pragma omp distribute
6140 for (int i
= 0; i
< 10; ++i
) {
6148 #pragma omp distribute
6149 for (int i
= 0; i
< 10; ++i
) {
6157 #pragma omp distribute
6158 for (int i
= 0; i
< 10; ++i
) {
6159 #pragma omp critical
6166 #pragma omp distribute
6167 for (int i
= 0; i
< 10; ++i
) {
6168 #pragma omp parallel
6178 #pragma omp distribute
6179 for (int i
= 0; i
< 10; ++i
) {
6180 #pragma omp parallel for
6181 for (int i
= 0; i
< 10; ++i
)
6186 #pragma omp distribute
6187 for (int i
= 0; i
< 10; ++i
) {
6188 #pragma omp parallel for simd
6189 for (int i
= 0; i
< 10; ++i
)
6194 #pragma omp distribute
6195 for (int i
= 0; i
< 10; ++i
) {
6196 #pragma omp parallel sections
6203 #pragma omp distribute
6204 for (int i
= 0; i
< 10; ++i
) {
6212 #pragma omp distribute
6213 for (int i
= 0; i
< 10; ++i
) {
6214 #pragma omp taskyield
6219 #pragma omp distribute
6220 for (int i
= 0; i
< 10; ++i
) {
6226 #pragma omp distribute
6227 for (int i
= 0; i
< 10; ++i
) {
6228 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
6233 #pragma omp distribute
6234 for (int i
= 0; i
< 10; ++i
) {
6235 #pragma omp taskwait
6240 #pragma omp distribute
6241 for (int i
= 0; i
< 10; ++i
) {
6247 #pragma omp distribute
6248 for (int i
= 0; i
< 10; ++i
) {
6249 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
6254 #pragma omp distribute
6255 for (int i
= 0; i
< 10; ++i
) {
6261 #pragma omp distribute
6262 for (int i
= 0; i
< 10; ++i
) {
6263 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
6268 #pragma omp distribute
6269 for (int i
= 0; i
< 10; ++i
) {
6270 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
6275 #pragma omp distribute
6276 for (int i
= 0; i
< 10; ++i
) {
6277 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
6278 for (int i
= 0; i
< 10; ++i
)
6283 #pragma omp distribute
6284 for (int i
= 0; i
< 10; ++i
) {
6285 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
6290 #pragma omp distribute
6291 for (int i
= 0; i
< 10; ++i
) {
6292 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
6297 #pragma omp distribute
6298 for (int i
= 0; i
< 10; ++i
) {
6299 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
6304 #pragma omp distribute
6305 for (int i
= 0; i
< 10; ++i
) {
6306 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
6311 #pragma omp distribute
6312 for (int i
= 0; i
< 10; ++i
) {
6313 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
6314 for (int j
= 0; j
< 10; ++j
)
6319 #pragma omp distribute
6320 for (int i
= 0; i
< 10; ++i
) {
6321 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
6322 for (int j
= 0; j
< 10; ++j
)
6327 #pragma omp distribute
6328 for (int i
= 0; i
< 10; ++i
) {
6329 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
6330 for (int j
= 0; j
< 10; ++j
)
6335 #pragma omp distribute
6336 for (int i
= 0; i
< 10; ++i
) {
6337 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
6338 for (int j
= 0; j
< 10; ++j
)
6343 #pragma omp distribute
6344 for (int i
= 0; i
< 10; ++i
) {
6345 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
6346 for (int j
= 0; j
< 10; ++j
)
6351 #pragma omp distribute
6352 for (int i
= 0; i
< 10; ++i
) {
6353 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
6358 #pragma omp distribute
6359 for (int i
= 0; i
< 10; ++i
) {
6360 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
6361 for (int j
= 0; j
< 10; ++j
)
6366 #pragma omp distribute
6367 for (int i
= 0; i
< 10; ++i
) {
6368 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
6369 for (int j
= 0; j
< 10; ++j
)
6374 #pragma omp distribute
6375 for (int i
= 0; i
< 10; ++i
) {
6376 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
6377 for (int j
= 0; j
< 10; ++j
)
6382 #pragma omp distribute
6383 for (int i
= 0; i
< 10; ++i
) {
6384 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
6385 for (int j
= 0; j
< 10; ++j
)
6389 // DISTRIBUTE PARALLEL FOR DIRECTIVE
6392 #pragma omp distribute parallel for
6393 for (int i
= 0; i
< 10; ++i
) {
6394 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
6395 for (int i
= 0; i
< 10; ++i
)
6400 #pragma omp distribute parallel for
6401 for (int i
= 0; i
< 10; ++i
) {
6402 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
6403 for (int i
= 0; i
< 10; ++i
)
6408 #pragma omp distribute parallel for
6409 for (int i
= 0; i
< 10; ++i
) {
6410 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
6411 for (int i
= 0; i
< 10; ++i
)
6416 #pragma omp distribute parallel for
6417 for (int i
= 0; i
< 10; ++i
) {
6419 for (int i
= 0; i
< 10; ++i
)
6424 #pragma omp distribute parallel for
6425 for (int i
= 0; i
< 10; ++i
) {
6426 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
6427 for (int i
= 0; i
< 10; ++i
)
6432 #pragma omp distribute parallel for
6433 for (int i
= 0; i
< 10; ++i
) {
6434 #pragma omp parallel
6435 for (int i
= 0; i
< 10; ++i
)
6440 #pragma omp distribute parallel for
6441 for (int i
= 0; i
< 10; ++i
) {
6442 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
6449 #pragma omp distribute parallel for
6450 for (int i
= 0; i
< 10; ++i
) {
6451 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a distribute parallel for region}}
6458 #pragma omp distribute parallel for
6459 for (int i
= 0; i
< 10; ++i
) {
6460 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
6467 #pragma omp distribute parallel for
6468 for (int i
= 0; i
< 10; ++i
) {
6469 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
6476 #pragma omp distribute parallel for
6477 for (int i
= 0; i
< 10; ++i
) {
6478 #pragma omp critical
6485 #pragma omp distribute parallel for
6486 for (int i
= 0; i
< 10; ++i
) {
6487 #pragma omp parallel
6497 #pragma omp distribute parallel for
6498 for (int i
= 0; i
< 10; ++i
) {
6499 #pragma omp parallel for
6500 for (int i
= 0; i
< 10; ++i
)
6505 #pragma omp distribute parallel for
6506 for (int i
= 0; i
< 10; ++i
) {
6507 #pragma omp parallel for simd
6508 for (int i
= 0; i
< 10; ++i
)
6513 #pragma omp distribute parallel for
6514 for (int i
= 0; i
< 10; ++i
) {
6515 #pragma omp parallel sections
6522 #pragma omp distribute parallel for
6523 for (int i
= 0; i
< 10; ++i
) {
6531 #pragma omp distribute parallel for
6532 for (int i
= 0; i
< 10; ++i
) {
6533 #pragma omp taskyield
6538 #pragma omp distribute parallel for
6539 for (int i
= 0; i
< 10; ++i
) {
6540 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
6545 #pragma omp distribute parallel for
6546 for (int i
= 0; i
< 10; ++i
) {
6547 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
6552 #pragma omp distribute parallel for
6553 for (int i
= 0; i
< 10; ++i
) {
6554 #pragma omp taskwait
6559 #pragma omp distribute parallel for
6560 for (int i
= 0; i
< 10; ++i
) {
6566 #pragma omp distribute parallel for
6567 for (int i
= 0; i
< 10; ++i
) {
6568 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
6573 #pragma omp distribute parallel for
6574 for (int i
= 0; i
< 10; ++i
) {
6580 #pragma omp distribute parallel for
6581 for (int i
= 0; i
< 10; ++i
) {
6582 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
6587 #pragma omp distribute parallel for
6588 for (int i
= 0; i
< 10; ++i
) {
6589 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
6594 #pragma omp distribute parallel for
6595 for (int i
= 0; i
< 10; ++i
) {
6596 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
6597 for (int i
= 0; i
< 10; ++i
)
6602 #pragma omp distribute parallel for
6603 for (int i
= 0; i
< 10; ++i
) {
6604 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
6609 #pragma omp distribute parallel for
6610 for (int i
= 0; i
< 10; ++i
) {
6611 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
6616 #pragma omp distribute parallel for
6617 for (int i
= 0; i
< 10; ++i
) {
6618 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
6623 #pragma omp distribute parallel for
6624 for (int i
= 0; i
< 10; ++i
) {
6625 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
6630 #pragma omp distribute parallel for
6631 for (int i
= 0; i
< 10; ++i
) {
6632 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
6633 for (int i
= 0; i
< 10; ++i
)
6638 #pragma omp distribute parallel for
6639 for (int i
= 0; i
< 10; ++i
) {
6640 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
6641 for (int i
= 0; i
< 10; ++i
)
6646 #pragma omp distribute parallel for
6647 for (int i
= 0; i
< 10; ++i
) {
6648 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
6649 for (int i
= 0; i
< 10; ++i
)
6654 #pragma omp distribute parallel for
6655 for (int i
= 0; i
< 10; ++i
) {
6656 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
6657 for (int i
= 0; i
< 10; ++i
)
6662 #pragma omp distribute parallel for
6663 for (int i
= 0; i
< 10; ++i
) {
6664 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
6665 for (int i
= 0; i
< 10; ++i
)
6670 #pragma omp distribute parallel for
6671 for (int i
= 0; i
< 10; ++i
) {
6672 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
6677 #pragma omp distribute parallel for
6678 for (int i
= 0; i
< 10; ++i
) {
6679 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
6680 for (int i
= 0; i
< 10; ++i
)
6685 #pragma omp distribute parallel for
6686 for (int i
= 0; i
< 10; ++i
) {
6687 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
6688 for (int i
= 0; i
< 10; ++i
)
6693 #pragma omp distribute parallel for
6694 for (int i
= 0; i
< 10; ++i
) {
6695 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
6696 for (int i
= 0; i
< 10; ++i
)
6701 #pragma omp distribute parallel for
6702 for (int i
= 0; i
< 10; ++i
) {
6703 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
6704 for (int i
= 0; i
< 10; ++i
)
6708 // DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
6711 #pragma omp distribute parallel for simd
6712 for (int i
= 0; i
< 10; ++i
) {
6713 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6714 for (int i
= 0; i
< 10; ++i
)
6719 #pragma omp distribute parallel for simd
6720 for (int i
= 0; i
< 10; ++i
) {
6721 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6722 for (int i
= 0; i
< 10; ++i
)
6727 #pragma omp distribute parallel for simd
6728 for (int i
= 0; i
< 10; ++i
) {
6729 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6730 for (int i
= 0; i
< 10; ++i
)
6735 #pragma omp distribute parallel for simd
6736 for (int i
= 0; i
< 10; ++i
) {
6737 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
6738 for (int i
= 0; i
< 10; ++i
)
6743 #pragma omp distribute parallel for simd
6744 for (int i
= 0; i
< 10; ++i
) {
6745 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6746 for (int i
= 0; i
< 10; ++i
)
6751 #pragma omp distribute parallel for simd
6752 for (int i
= 0; i
< 10; ++i
) {
6753 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6754 for (int i
= 0; i
< 10; ++i
)
6759 #pragma omp distribute parallel for simd
6760 for (int i
= 0; i
< 10; ++i
) {
6761 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6768 #pragma omp distribute parallel for simd
6769 for (int i
= 0; i
< 10; ++i
) {
6770 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6777 #pragma omp distribute parallel for simd
6778 for (int i
= 0; i
< 10; ++i
) {
6779 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6786 #pragma omp distribute parallel for simd
6787 for (int i
= 0; i
< 10; ++i
) {
6788 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6795 #pragma omp distribute parallel for simd
6796 for (int i
= 0; i
< 10; ++i
) {
6797 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6804 #pragma omp distribute parallel for simd
6805 for (int i
= 0; i
< 10; ++i
) {
6806 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6816 #pragma omp distribute parallel for simd
6817 for (int i
= 0; i
< 10; ++i
) {
6818 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6819 for (int i
= 0; i
< 10; ++i
)
6824 #pragma omp distribute parallel for simd
6825 for (int i
= 0; i
< 10; ++i
) {
6826 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6827 for (int i
= 0; i
< 10; ++i
)
6832 #pragma omp distribute parallel for simd
6833 for (int i
= 0; i
< 10; ++i
) {
6834 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6841 #pragma omp distribute parallel for simd
6842 for (int i
= 0; i
< 10; ++i
) {
6843 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6850 #pragma omp distribute parallel for simd
6851 for (int i
= 0; i
< 10; ++i
) {
6852 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6857 #pragma omp distribute parallel for simd
6858 for (int i
= 0; i
< 10; ++i
) {
6859 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6864 #pragma omp distribute parallel for simd
6865 for (int i
= 0; i
< 10; ++i
) {
6866 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
6871 #pragma omp distribute parallel for simd
6872 for (int i
= 0; i
< 10; ++i
) {
6873 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6878 #pragma omp distribute parallel for simd
6879 for (int i
= 0; i
< 10; ++i
) {
6880 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6885 #pragma omp distribute parallel for simd
6886 for (int i
= 0; i
< 10; ++i
) {
6887 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6892 #pragma omp distribute parallel for simd
6893 for (int i
= 0; i
< 10; ++i
) {
6894 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
6899 #pragma omp distribute parallel for simd
6900 for (int i
= 0; i
< 10; ++i
) {
6901 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6906 #pragma omp distribute parallel for simd
6907 for (int i
= 0; i
< 10; ++i
) {
6908 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6913 #pragma omp distribute parallel for simd
6914 for (int i
= 0; i
< 10; ++i
) {
6915 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6916 for (int i
= 0; i
< 10; ++i
)
6921 #pragma omp distribute parallel for simd
6922 for (int i
= 0; i
< 10; ++i
) {
6923 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6928 #pragma omp distribute parallel for simd
6929 for (int i
= 0; i
< 10; ++i
) {
6930 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6935 #pragma omp distribute parallel for simd
6936 for (int i
= 0; i
< 10; ++i
) {
6937 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6942 #pragma omp distribute parallel for simd
6943 for (int i
= 0; i
< 10; ++i
) {
6944 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6949 #pragma omp distribute parallel for simd
6950 for (int i
= 0; i
< 10; ++i
) {
6951 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6952 for (int i
= 0; i
< 10; ++i
)
6957 #pragma omp distribute parallel for simd
6958 for (int i
= 0; i
< 10; ++i
) {
6959 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6960 for (int i
= 0; i
< 10; ++i
)
6965 #pragma omp distribute parallel for simd
6966 for (int i
= 0; i
< 10; ++i
) {
6967 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6968 for (int i
= 0; i
< 10; ++i
)
6973 #pragma omp distribute parallel for simd
6974 for (int i
= 0; i
< 10; ++i
) {
6975 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6976 for (int i
= 0; i
< 10; ++i
)
6981 #pragma omp distribute parallel for simd
6982 for (int i
= 0; i
< 10; ++i
) {
6983 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6984 for (int i
= 0; i
< 10; ++i
)
6989 #pragma omp distribute parallel for simd
6990 for (int i
= 0; i
< 10; ++i
) {
6991 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
6992 for (int i
= 0; i
< 10; ++i
)
6997 #pragma omp distribute parallel for simd
6998 for (int i
= 0; i
< 10; ++i
) {
6999 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7004 #pragma omp distribute parallel for simd
7005 for (int i
= 0; i
< 10; ++i
) {
7006 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7007 for (int i
= 0; i
< 10; ++i
)
7012 #pragma omp distribute parallel for simd
7013 for (int i
= 0; i
< 10; ++i
) {
7014 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7015 for (int i
= 0; i
< 10; ++i
)
7020 #pragma omp distribute parallel for simd
7021 for (int i
= 0; i
< 10; ++i
) {
7022 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7023 for (int i
= 0; i
< 10; ++i
)
7028 #pragma omp distribute parallel for simd
7029 for (int i
= 0; i
< 10; ++i
) {
7030 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7031 for (int i
= 0; i
< 10; ++i
)
7035 // TARGET SIMD DIRECTIVE
7036 #pragma omp target simd
7037 for (int i
= 0; i
< 10; ++i
) {
7038 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7039 for (int i
= 0; i
< 10; ++i
)
7042 #pragma omp target simd
7043 for (int i
= 0; i
< 10; ++i
) {
7044 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7045 for (int i
= 0; i
< 10; ++i
)
7048 #pragma omp target simd
7049 for (int i
= 0; i
< 10; ++i
) {
7050 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7051 for (int i
= 0; i
< 10; ++i
)
7054 #pragma omp target simd
7055 for (int i
= 0; i
< 10; ++i
) {
7056 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
7057 for (int i
= 0; i
< 10; ++i
)
7060 #pragma omp target simd
7061 for (int i
= 0; i
< 10; ++i
) {
7062 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7063 for (int i
= 0; i
< 10; ++i
)
7066 #pragma omp target simd
7067 for (int i
= 0; i
< 10; ++i
) {
7068 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7069 for (int i
= 0; i
< 10; ++i
)
7072 #pragma omp target simd
7073 for (int i
= 0; i
< 10; ++i
) {
7074 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7079 #pragma omp target simd
7080 for (int i
= 0; i
< 10; ++i
) {
7081 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7086 #pragma omp target simd
7087 for (int i
= 0; i
< 10; ++i
) {
7088 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7093 #pragma omp target simd
7094 for (int i
= 0; i
< 10; ++i
) {
7095 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7100 #pragma omp target simd
7101 for (int i
= 0; i
< 10; ++i
) {
7102 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7107 #pragma omp target simd
7108 for (int i
= 0; i
< 10; ++i
) {
7109 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7117 #pragma omp target simd
7118 for (int i
= 0; i
< 10; ++i
) {
7119 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7120 for (int i
= 0; i
< 10; ++i
)
7123 #pragma omp target simd
7124 for (int i
= 0; i
< 10; ++i
) {
7125 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7126 for (int i
= 0; i
< 10; ++i
)
7129 #pragma omp target simd
7130 for (int i
= 0; i
< 10; ++i
) {
7131 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7136 #pragma omp target simd
7137 for (int i
= 0; i
< 10; ++i
) {
7138 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7143 #pragma omp target simd
7144 for (int i
= 0; i
< 10; ++i
) {
7145 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7148 #pragma omp target simd
7149 for (int i
= 0; i
< 10; ++i
) {
7150 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7153 #pragma omp target simd
7154 for (int i
= 0; i
< 10; ++i
) {
7155 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
7158 #pragma omp target simd
7159 for (int i
= 0; i
< 10; ++i
) {
7160 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7163 #pragma omp target simd
7164 for (int i
= 0; i
< 10; ++i
) {
7165 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7168 #pragma omp target simd
7169 for (int i
= 0; i
< 10; ++i
) {
7170 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7173 #pragma omp target simd
7174 for (int i
= 0; i
< 10; ++i
) {
7175 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
7178 #pragma omp target simd
7179 for (int i
= 0; i
< 10; ++i
) {
7180 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7183 #pragma omp target simd
7184 for (int i
= 0; i
< 10; ++i
) {
7185 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7188 #pragma omp target simd
7189 for (int i
= 0; i
< 10; ++i
) {
7190 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7191 for (int i
= 0; i
< 10; ++i
)
7194 #pragma omp target simd
7195 for (int i
= 0; i
< 10; ++i
) {
7196 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7199 #pragma omp target simd
7200 for (int i
= 0; i
< 10; ++i
) {
7201 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7204 #pragma omp target simd
7205 for (int i
= 0; i
< 10; ++i
) {
7206 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7209 #pragma omp target simd
7210 for (int i
= 0; i
< 10; ++i
) {
7211 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7214 #pragma omp target simd
7215 for (int i
= 0; i
< 10; ++i
) {
7216 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7217 for (int i
= 0; i
< 10; ++i
)
7220 #pragma omp target simd
7221 for (int i
= 0; i
< 10; ++i
) {
7222 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7223 for (int i
= 0; i
< 10; ++i
)
7226 #pragma omp target simd
7227 for (int i
= 0; i
< 10; ++i
) {
7228 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7229 for (int i
= 0; i
< 10; ++i
)
7232 #pragma omp target simd
7233 for (int i
= 0; i
< 10; ++i
) {
7234 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7235 for (int i
= 0; i
< 10; ++i
)
7238 #pragma omp target simd
7239 for (int i
= 0; i
< 10; ++i
) {
7240 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7241 for (int i
= 0; i
< 10; ++i
)
7244 #pragma omp target simd
7245 for (int i
= 0; i
< 10; ++i
) {
7246 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7247 for (int i
= 0; i
< 10; ++i
)
7250 #pragma omp target simd
7251 for (int i
= 0; i
< 10; ++i
) {
7252 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7253 for (int i
= 0; i
< 10; ++i
)
7256 #pragma omp target simd
7257 for (int i
= 0; i
< 10; ++i
) {
7258 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7259 for (int i
= 0; i
< 10; ++i
)
7263 // TEAMS DISTRIBUTE DIRECTIVE
7264 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
7265 for (int i
= 0; i
< 10; ++i
)
7268 #pragma omp teams distribute
7269 for (int i
= 0; i
< 10; ++i
) {
7270 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
7271 for (int i
= 0; i
< 10; ++i
)
7275 #pragma omp teams distribute
7276 for (int i
= 0; i
< 10; ++i
) {
7277 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
7278 for (int i
= 0; i
< 10; ++i
)
7282 #pragma omp teams distribute
7283 for (int i
= 0; i
< 10; ++i
) {
7284 #pragma omp for // OK
7285 for (int i
= 0; i
< 10; ++i
)
7289 #pragma omp teams distribute
7290 for (int i
= 0; i
< 10; ++i
) {
7291 #pragma omp simd // OK
7292 for (int i
= 0; i
< 10; ++i
)
7296 #pragma omp teams distribute
7297 for (int i
= 0; i
< 10; ++i
) {
7298 #pragma omp for simd // OK
7299 for (int i
= 0; i
< 10; ++i
)
7303 #pragma omp teams distribute
7304 for (int i
= 0; i
< 10; ++i
) {
7305 #pragma omp parallel // OK
7306 for (int i
= 0; i
< 10; ++i
)
7310 #pragma omp teams distribute
7311 for (int i
= 0; i
< 10; ++i
) {
7312 #pragma omp sections // OK
7318 #pragma omp teams distribute
7319 for (int i
= 0; i
< 10; ++i
) {
7320 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams distribute region}}
7326 #pragma omp teams distribute
7327 for (int i
= 0; i
< 10; ++i
) {
7328 #pragma omp single // OK
7334 #pragma omp teams distribute
7335 for (int i
= 0; i
< 10; ++i
) {
7336 #pragma omp master // OK
7342 #pragma omp teams distribute
7343 for (int i
= 0; i
< 10; ++i
) {
7344 #pragma omp critical // OK
7350 #pragma omp teams distribute
7351 for (int i
= 0; i
< 10; ++i
) {
7352 #pragma omp parallel // OK
7361 #pragma omp teams distribute
7362 for (int i
= 0; i
< 10; ++i
) {
7363 #pragma omp parallel for // OK
7364 for (int i
= 0; i
< 10; ++i
)
7368 #pragma omp teams distribute
7369 for (int i
= 0; i
< 10; ++i
) {
7370 #pragma omp parallel for simd // OK
7371 for (int i
= 0; i
< 10; ++i
)
7375 #pragma omp teams distribute
7376 for (int i
= 0; i
< 10; ++i
) {
7377 #pragma omp parallel sections // OK
7383 #pragma omp teams distribute
7384 for (int i
= 0; i
< 10; ++i
) {
7385 #pragma omp task // OK
7391 #pragma omp teams distribute
7392 for (int i
= 0; i
< 10; ++i
) {
7393 #pragma omp taskyield // OK
7397 #pragma omp teams distribute
7398 for (int i
= 0; i
< 10; ++i
) {
7399 #pragma omp barrier // OK
7403 #pragma omp teams distribute
7404 for (int i
= 0; i
< 10; ++i
) {
7405 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
7409 #pragma omp teams distribute
7410 for (int i
= 0; i
< 10; ++i
) {
7411 #pragma omp taskwait // OK
7415 #pragma omp teams distribute
7416 for (int i
= 0; i
< 10; ++i
) {
7417 #pragma omp flush // OK
7421 #pragma omp teams distribute
7422 for (int i
= 0; i
< 10; ++i
) {
7423 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
7427 #pragma omp teams distribute
7428 for (int i
= 0; i
< 10; ++i
) {
7429 #pragma omp atomic // OK
7433 #pragma omp teams distribute
7434 for (int i
= 0; i
< 10; ++i
) {
7435 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
7439 #pragma omp teams distribute
7440 for (int i
= 0; i
< 10; ++i
) {
7441 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
7445 #pragma omp teams distribute
7446 for (int i
= 0; i
< 10; ++i
) {
7447 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
7448 for (int i
= 0; i
< 10; ++i
)
7452 #pragma omp teams distribute
7453 for (int i
= 0; i
< 10; ++i
) {
7454 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
7458 #pragma omp teams distribute
7459 for (int i
= 0; i
< 10; ++i
) {
7460 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
7464 #pragma omp teams distribute
7465 for (int i
= 0; i
< 10; ++i
) {
7466 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
7470 #pragma omp teams distribute
7471 for (int i
= 0; i
< 10; ++i
) {
7472 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
7476 #pragma omp teams distribute
7477 for (int i
= 0; i
< 10; ++i
) {
7478 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
7479 for (int i
= 0; i
< 10; ++i
)
7483 #pragma omp teams distribute
7484 for (int i
= 0; i
< 10; ++i
) {
7485 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
7486 for (int i
= 0; i
< 10; ++i
)
7490 #pragma omp teams distribute
7491 for (int i
= 0; i
< 10; ++i
) {
7492 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
7493 for (int i
= 0; i
< 10; ++i
)
7497 #pragma omp teams distribute
7498 for (int i
= 0; i
< 10; ++i
) {
7499 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
7500 for (int i
= 0; i
< 10; ++i
)
7504 #pragma omp teams distribute
7505 for (int i
= 0; i
< 10; ++i
) {
7506 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
7507 for (int i
= 0; i
< 10; ++i
)
7511 #pragma omp teams distribute
7512 for (int i
= 0; i
< 10; ++i
) {
7513 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
7514 for (int i
= 0; i
< 10; ++i
)
7518 #pragma omp teams distribute
7519 for (int i
= 0; i
< 10; ++i
) {
7520 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
7521 for (int i
= 0; i
< 10; ++i
)
7525 #pragma omp teams distribute
7526 for (int i
= 0; i
< 10; ++i
) {
7527 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
7528 for (int i
= 0; i
< 10; ++i
)
7532 // TEAMS DISTRIBUTE DIRECTIVE
7533 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
7534 for (int i
= 0; i
< 10; ++i
)
7537 #pragma omp teams distribute
7538 for (int i
= 0; i
< 10; ++i
) {
7539 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
7540 for (int i
= 0; i
< 10; ++i
)
7544 #pragma omp teams distribute
7545 for (int i
= 0; i
< 10; ++i
) {
7546 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
7547 for (int i
= 0; i
< 10; ++i
)
7551 #pragma omp teams distribute
7552 for (int i
= 0; i
< 10; ++i
) {
7553 #pragma omp for // OK
7554 for (int i
= 0; i
< 10; ++i
)
7558 #pragma omp teams distribute
7559 for (int i
= 0; i
< 10; ++i
) {
7560 #pragma omp simd // OK
7561 for (int i
= 0; i
< 10; ++i
)
7565 #pragma omp teams distribute
7566 for (int i
= 0; i
< 10; ++i
) {
7567 #pragma omp for simd // OK
7568 for (int i
= 0; i
< 10; ++i
)
7572 #pragma omp teams distribute
7573 for (int i
= 0; i
< 10; ++i
) {
7574 #pragma omp parallel // OK
7575 for (int i
= 0; i
< 10; ++i
)
7579 #pragma omp teams distribute
7580 for (int i
= 0; i
< 10; ++i
) {
7581 #pragma omp sections // OK
7587 #pragma omp teams distribute
7588 for (int i
= 0; i
< 10; ++i
) {
7589 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams distribute region}}
7595 #pragma omp teams distribute
7596 for (int i
= 0; i
< 10; ++i
) {
7597 #pragma omp single // OK
7603 #pragma omp teams distribute
7604 for (int i
= 0; i
< 10; ++i
) {
7605 #pragma omp master // OK
7611 #pragma omp teams distribute
7612 for (int i
= 0; i
< 10; ++i
) {
7613 #pragma omp critical // OK
7619 #pragma omp teams distribute
7620 for (int i
= 0; i
< 10; ++i
) {
7621 #pragma omp parallel // OK
7630 #pragma omp teams distribute
7631 for (int i
= 0; i
< 10; ++i
) {
7632 #pragma omp parallel for // OK
7633 for (int i
= 0; i
< 10; ++i
)
7637 #pragma omp teams distribute
7638 for (int i
= 0; i
< 10; ++i
) {
7639 #pragma omp parallel for simd // OK
7640 for (int i
= 0; i
< 10; ++i
)
7644 #pragma omp teams distribute
7645 for (int i
= 0; i
< 10; ++i
) {
7646 #pragma omp parallel sections // OK
7652 #pragma omp teams distribute
7653 for (int i
= 0; i
< 10; ++i
) {
7654 #pragma omp task // OK
7660 #pragma omp teams distribute
7661 for (int i
= 0; i
< 10; ++i
) {
7662 #pragma omp taskyield // OK
7666 #pragma omp teams distribute
7667 for (int i
= 0; i
< 10; ++i
) {
7668 #pragma omp barrier // OK
7672 #pragma omp teams distribute
7673 for (int i
= 0; i
< 10; ++i
) {
7674 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
7678 #pragma omp teams distribute
7679 for (int i
= 0; i
< 10; ++i
) {
7680 #pragma omp taskwait // OK
7684 #pragma omp teams distribute
7685 for (int i
= 0; i
< 10; ++i
) {
7686 #pragma omp flush // OK
7690 #pragma omp teams distribute
7691 for (int i
= 0; i
< 10; ++i
) {
7692 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
7696 #pragma omp teams distribute
7697 for (int i
= 0; i
< 10; ++i
) {
7698 #pragma omp atomic // OK
7702 #pragma omp teams distribute
7703 for (int i
= 0; i
< 10; ++i
) {
7704 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
7708 #pragma omp teams distribute
7709 for (int i
= 0; i
< 10; ++i
) {
7710 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
7714 #pragma omp teams distribute
7715 for (int i
= 0; i
< 10; ++i
) {
7716 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
7717 for (int i
= 0; i
< 10; ++i
)
7721 #pragma omp teams distribute
7722 for (int i
= 0; i
< 10; ++i
) {
7723 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
7727 #pragma omp teams distribute
7728 for (int i
= 0; i
< 10; ++i
) {
7729 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
7733 #pragma omp teams distribute
7734 for (int i
= 0; i
< 10; ++i
) {
7735 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
7739 #pragma omp teams distribute
7740 for (int i
= 0; i
< 10; ++i
) {
7741 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
7745 #pragma omp teams distribute
7746 for (int i
= 0; i
< 10; ++i
) {
7747 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
7748 for (int i
= 0; i
< 10; ++i
)
7752 #pragma omp teams distribute
7753 for (int i
= 0; i
< 10; ++i
) {
7754 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
7755 for (int i
= 0; i
< 10; ++i
)
7759 #pragma omp teams distribute
7760 for (int i
= 0; i
< 10; ++i
) {
7761 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
7762 for (int i
= 0; i
< 10; ++i
)
7766 #pragma omp teams distribute
7767 for (int i
= 0; i
< 10; ++i
) {
7768 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
7769 for (int i
= 0; i
< 10; ++i
)
7773 #pragma omp teams distribute
7774 for (int i
= 0; i
< 10; ++i
) {
7775 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
7776 for (int i
= 0; i
< 10; ++i
)
7780 #pragma omp teams distribute
7781 for (int i
= 0; i
< 10; ++i
) {
7782 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
7783 for (int i
= 0; i
< 10; ++i
)
7787 #pragma omp teams distribute
7788 for (int i
= 0; i
< 10; ++i
) {
7789 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
7793 #pragma omp teams distribute
7794 for (int i
= 0; i
< 10; ++i
) {
7795 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
7796 for (int i
= 0; i
< 10; ++i
)
7800 #pragma omp teams distribute
7801 for (int i
= 0; i
< 10; ++i
) {
7802 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
7803 for (int i
= 0; i
< 10; ++i
)
7807 #pragma omp teams distribute
7808 for (int i
= 0; i
< 10; ++i
) {
7809 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
7810 for (int i
= 0; i
< 10; ++i
)
7814 #pragma omp teams distribute
7815 for (int i
= 0; i
< 10; ++i
) {
7816 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
7817 for (int i
= 0; i
< 10; ++i
)
7821 // TEAMS DISTRIBUTE SIMD DIRECTIVE
7822 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
7823 for (int i
= 0; i
< 10; ++i
)
7826 #pragma omp teams distribute simd
7827 for (int i
= 0; i
< 10; ++i
) {
7828 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7829 for (int i
= 0; i
< 10; ++i
)
7833 #pragma omp teams distribute simd
7834 for (int i
= 0; i
< 10; ++i
) {
7835 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7836 for (int i
= 0; i
< 10; ++i
)
7840 #pragma omp teams distribute simd
7841 for (int i
= 0; i
< 10; ++i
) {
7842 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7843 for (int i
= 0; i
< 10; ++i
)
7847 #pragma omp teams distribute simd
7848 for (int i
= 0; i
< 10; ++i
) {
7849 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
7850 for (int i
= 0; i
< 10; ++i
)
7854 #pragma omp teams distribute simd
7855 for (int i
= 0; i
< 10; ++i
) {
7856 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7857 for (int i
= 0; i
< 10; ++i
)
7861 #pragma omp teams distribute simd
7862 for (int i
= 0; i
< 10; ++i
) {
7863 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7864 for (int i
= 0; i
< 10; ++i
)
7868 #pragma omp teams distribute simd
7869 for (int i
= 0; i
< 10; ++i
) {
7870 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7876 #pragma omp teams distribute simd
7877 for (int i
= 0; i
< 10; ++i
) {
7878 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7884 #pragma omp teams distribute simd
7885 for (int i
= 0; i
< 10; ++i
) {
7886 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7892 #pragma omp teams distribute simd
7893 for (int i
= 0; i
< 10; ++i
) {
7894 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7900 #pragma omp teams distribute simd
7901 for (int i
= 0; i
< 10; ++i
) {
7902 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7908 #pragma omp teams distribute simd
7909 for (int i
= 0; i
< 10; ++i
) {
7910 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7919 #pragma omp teams distribute simd
7920 for (int i
= 0; i
< 10; ++i
) {
7921 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7922 for (int i
= 0; i
< 10; ++i
)
7926 #pragma omp teams distribute simd
7927 for (int i
= 0; i
< 10; ++i
) {
7928 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7929 for (int i
= 0; i
< 10; ++i
)
7933 #pragma omp teams distribute simd
7934 for (int i
= 0; i
< 10; ++i
) {
7935 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7941 #pragma omp teams distribute simd
7942 for (int i
= 0; i
< 10; ++i
) {
7943 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7949 #pragma omp teams distribute simd
7950 for (int i
= 0; i
< 10; ++i
) {
7951 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7955 #pragma omp teams distribute simd
7956 for (int i
= 0; i
< 10; ++i
) {
7957 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7961 #pragma omp teams distribute simd
7962 for (int i
= 0; i
< 10; ++i
) {
7963 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
7967 #pragma omp teams distribute simd
7968 for (int i
= 0; i
< 10; ++i
) {
7969 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7973 #pragma omp teams distribute simd
7974 for (int i
= 0; i
< 10; ++i
) {
7975 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7979 #pragma omp teams distribute simd
7980 for (int i
= 0; i
< 10; ++i
) {
7981 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7985 #pragma omp teams distribute simd
7986 for (int i
= 0; i
< 10; ++i
) {
7987 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
7991 #pragma omp teams distribute simd
7992 for (int i
= 0; i
< 10; ++i
) {
7993 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
7997 #pragma omp teams distribute simd
7998 for (int i
= 0; i
< 10; ++i
) {
7999 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8003 #pragma omp teams distribute simd
8004 for (int i
= 0; i
< 10; ++i
) {
8005 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8006 for (int i
= 0; i
< 10; ++i
)
8010 #pragma omp teams distribute simd
8011 for (int i
= 0; i
< 10; ++i
) {
8012 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8016 #pragma omp teams distribute simd
8017 for (int i
= 0; i
< 10; ++i
) {
8018 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8022 #pragma omp teams distribute simd
8023 for (int i
= 0; i
< 10; ++i
) {
8024 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8028 #pragma omp teams distribute simd
8029 for (int i
= 0; i
< 10; ++i
) {
8030 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8034 #pragma omp teams distribute simd
8035 for (int i
= 0; i
< 10; ++i
) {
8036 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8037 for (int i
= 0; i
< 10; ++i
)
8041 #pragma omp teams distribute simd
8042 for (int i
= 0; i
< 10; ++i
) {
8043 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8044 for (int i
= 0; i
< 10; ++i
)
8048 #pragma omp teams distribute simd
8049 for (int i
= 0; i
< 10; ++i
) {
8050 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8051 for (int i
= 0; i
< 10; ++i
)
8055 #pragma omp teams distribute simd
8056 for (int i
= 0; i
< 10; ++i
) {
8057 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8058 for (int i
= 0; i
< 10; ++i
)
8062 #pragma omp teams distribute simd
8063 for (int i
= 0; i
< 10; ++i
) {
8064 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8065 for (int i
= 0; i
< 10; ++i
)
8069 #pragma omp teams distribute simd
8070 for (int i
= 0; i
< 10; ++i
) {
8071 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8072 for (int i
= 0; i
< 10; ++i
)
8076 #pragma omp teams distribute simd
8077 for (int i
= 0; i
< 10; ++i
) {
8078 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8082 #pragma omp teams distribute simd
8083 for (int i
= 0; i
< 10; ++i
) {
8084 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8085 for (int i
= 0; i
< 10; ++i
)
8089 #pragma omp teams distribute simd
8090 for (int i
= 0; i
< 10; ++i
) {
8091 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8092 for (int i
= 0; i
< 10; ++i
)
8096 #pragma omp teams distribute simd
8097 for (int i
= 0; i
< 10; ++i
) {
8098 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8099 for (int i
= 0; i
< 10; ++i
)
8103 #pragma omp teams distribute simd
8104 for (int i
= 0; i
< 10; ++i
) {
8105 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8106 for (int i
= 0; i
< 10; ++i
)
8110 // TEAMS DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
8111 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute parallel for simd' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
8112 for (int i
= 0; i
< 10; ++i
)
8115 #pragma omp teams distribute parallel for simd
8116 for (int i
= 0; i
< 10; ++i
) {
8117 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8118 for (int i
= 0; i
< 10; ++i
)
8122 #pragma omp teams distribute parallel for simd
8123 for (int i
= 0; i
< 10; ++i
) {
8124 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8125 for (int i
= 0; i
< 10; ++i
)
8129 #pragma omp teams distribute parallel for simd
8130 for (int i
= 0; i
< 10; ++i
) {
8131 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8132 for (int i
= 0; i
< 10; ++i
)
8136 #pragma omp teams distribute parallel for simd
8137 for (int i
= 0; i
< 10; ++i
) {
8138 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
8139 for (int i
= 0; i
< 10; ++i
)
8143 #pragma omp teams distribute parallel for simd
8144 for (int i
= 0; i
< 10; ++i
) {
8145 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8146 for (int i
= 0; i
< 10; ++i
)
8150 #pragma omp teams distribute parallel for simd
8151 for (int i
= 0; i
< 10; ++i
) {
8152 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8153 for (int i
= 0; i
< 10; ++i
)
8157 #pragma omp teams distribute parallel for simd
8158 for (int i
= 0; i
< 10; ++i
) {
8159 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8165 #pragma omp teams distribute parallel for simd
8166 for (int i
= 0; i
< 10; ++i
) {
8167 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8173 #pragma omp teams distribute parallel for simd
8174 for (int i
= 0; i
< 10; ++i
) {
8175 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8181 #pragma omp teams distribute parallel for simd
8182 for (int i
= 0; i
< 10; ++i
) {
8183 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8189 #pragma omp teams distribute parallel for simd
8190 for (int i
= 0; i
< 10; ++i
) {
8191 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8197 #pragma omp teams distribute parallel for simd
8198 for (int i
= 0; i
< 10; ++i
) {
8199 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8208 #pragma omp teams distribute parallel for simd
8209 for (int i
= 0; i
< 10; ++i
) {
8210 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8211 for (int i
= 0; i
< 10; ++i
)
8215 #pragma omp teams distribute parallel for simd
8216 for (int i
= 0; i
< 10; ++i
) {
8217 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8218 for (int i
= 0; i
< 10; ++i
)
8222 #pragma omp teams distribute parallel for simd
8223 for (int i
= 0; i
< 10; ++i
) {
8224 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8230 #pragma omp teams distribute parallel for simd
8231 for (int i
= 0; i
< 10; ++i
) {
8232 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8238 #pragma omp teams distribute parallel for simd
8239 for (int i
= 0; i
< 10; ++i
) {
8240 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8244 #pragma omp teams distribute parallel for simd
8245 for (int i
= 0; i
< 10; ++i
) {
8246 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8250 #pragma omp teams distribute parallel for simd
8251 for (int i
= 0; i
< 10; ++i
) {
8252 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
8256 #pragma omp teams distribute parallel for simd
8257 for (int i
= 0; i
< 10; ++i
) {
8258 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8262 #pragma omp teams distribute parallel for simd
8263 for (int i
= 0; i
< 10; ++i
) {
8264 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8268 #pragma omp teams distribute parallel for simd
8269 for (int i
= 0; i
< 10; ++i
) {
8270 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8274 #pragma omp teams distribute parallel for simd
8275 for (int i
= 0; i
< 10; ++i
) {
8276 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
8280 #pragma omp teams distribute parallel for simd
8281 for (int i
= 0; i
< 10; ++i
) {
8282 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8286 #pragma omp teams distribute parallel for simd
8287 for (int i
= 0; i
< 10; ++i
) {
8288 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8292 #pragma omp teams distribute parallel for simd
8293 for (int i
= 0; i
< 10; ++i
) {
8294 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8295 for (int i
= 0; i
< 10; ++i
)
8299 #pragma omp teams distribute parallel for simd
8300 for (int i
= 0; i
< 10; ++i
) {
8301 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8305 #pragma omp teams distribute parallel for simd
8306 for (int i
= 0; i
< 10; ++i
) {
8307 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8311 #pragma omp teams distribute parallel for simd
8312 for (int i
= 0; i
< 10; ++i
) {
8313 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8317 #pragma omp teams distribute parallel for simd
8318 for (int i
= 0; i
< 10; ++i
) {
8319 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8323 #pragma omp teams distribute parallel for simd
8324 for (int i
= 0; i
< 10; ++i
) {
8325 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8326 for (int i
= 0; i
< 10; ++i
)
8330 #pragma omp teams distribute parallel for simd
8331 for (int i
= 0; i
< 10; ++i
) {
8332 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8333 for (int i
= 0; i
< 10; ++i
)
8337 #pragma omp teams distribute parallel for simd
8338 for (int i
= 0; i
< 10; ++i
) {
8339 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8340 for (int i
= 0; i
< 10; ++i
)
8344 #pragma omp teams distribute parallel for simd
8345 for (int i
= 0; i
< 10; ++i
) {
8346 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8347 for (int i
= 0; i
< 10; ++i
)
8351 #pragma omp teams distribute parallel for simd
8352 for (int i
= 0; i
< 10; ++i
) {
8353 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8354 for (int i
= 0; i
< 10; ++i
)
8358 #pragma omp teams distribute parallel for simd
8359 for (int i
= 0; i
< 10; ++i
) {
8360 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8361 for (int i
= 0; i
< 10; ++i
)
8365 #pragma omp teams distribute parallel for simd
8366 for (int i
= 0; i
< 10; ++i
) {
8367 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8371 #pragma omp teams distribute parallel for simd
8372 for (int i
= 0; i
< 10; ++i
) {
8373 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8374 for (int i
= 0; i
< 10; ++i
)
8378 #pragma omp teams distribute parallel for simd
8379 for (int i
= 0; i
< 10; ++i
) {
8380 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8381 for (int i
= 0; i
< 10; ++i
)
8385 #pragma omp teams distribute parallel for simd
8386 for (int i
= 0; i
< 10; ++i
) {
8387 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8388 for (int i
= 0; i
< 10; ++i
)
8392 #pragma omp teams distribute parallel for simd
8393 for (int i
= 0; i
< 10; ++i
) {
8394 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
8395 for (int i
= 0; i
< 10; ++i
)
8399 // TEAMS DISTRIBUTE PARALLEL FOR DIRECTIVE
8400 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel for' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
8401 for (int i
= 0; i
< 10; ++i
)
8404 #pragma omp teams distribute parallel for
8405 for (int i
= 0; i
< 10; ++i
) {
8406 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
8407 for (int i
= 0; i
< 10; ++i
)
8411 #pragma omp teams distribute parallel for
8412 for (int i
= 0; i
< 10; ++i
) {
8413 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
8414 for (int i
= 0; i
< 10; ++i
)
8418 #pragma omp teams distribute parallel for
8419 for (int i
= 0; i
< 10; ++i
) {
8420 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
8421 for (int i
= 0; i
< 10; ++i
)
8425 #pragma omp teams distribute parallel for
8426 for (int i
= 0; i
< 10; ++i
) {
8427 #pragma omp simd // OK
8428 for (int i
= 0; i
< 10; ++i
)
8432 #pragma omp teams distribute parallel for
8433 for (int i
= 0; i
< 10; ++i
) {
8434 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
8435 for (int i
= 0; i
< 10; ++i
)
8439 #pragma omp teams distribute parallel for
8440 for (int i
= 0; i
< 10; ++i
) {
8441 #pragma omp parallel // OK
8442 for (int i
= 0; i
< 10; ++i
)
8446 #pragma omp teams distribute parallel for
8447 for (int i
= 0; i
< 10; ++i
) {
8448 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
8454 #pragma omp teams distribute parallel for
8455 for (int i
= 0; i
< 10; ++i
) {
8456 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams distribute parallel for region}}
8462 #pragma omp teams distribute parallel for
8463 for (int i
= 0; i
< 10; ++i
) {
8464 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
8470 #pragma omp teams distribute parallel for
8471 for (int i
= 0; i
< 10; ++i
) {
8472 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
8478 #pragma omp teams distribute parallel for
8479 for (int i
= 0; i
< 10; ++i
) {
8480 #pragma omp critical // OK
8486 #pragma omp teams distribute parallel for
8487 for (int i
= 0; i
< 10; ++i
) {
8488 #pragma omp parallel // OK
8497 #pragma omp teams distribute parallel for
8498 for (int i
= 0; i
< 10; ++i
) {
8499 #pragma omp parallel for // OK
8500 for (int i
= 0; i
< 10; ++i
)
8504 #pragma omp teams distribute parallel for
8505 for (int i
= 0; i
< 10; ++i
) {
8506 #pragma omp parallel for simd // OK
8507 for (int i
= 0; i
< 10; ++i
)
8511 #pragma omp teams distribute parallel for
8512 for (int i
= 0; i
< 10; ++i
) {
8513 #pragma omp parallel sections // OK
8519 #pragma omp teams distribute parallel for
8520 for (int i
= 0; i
< 10; ++i
) {
8521 #pragma omp task // OK
8527 #pragma omp teams distribute parallel for
8528 for (int i
= 0; i
< 10; ++i
) {
8529 #pragma omp taskyield // OK
8533 #pragma omp teams distribute parallel for
8534 for (int i
= 0; i
< 10; ++i
) {
8535 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
8539 #pragma omp teams distribute parallel for
8540 for (int i
= 0; i
< 10; ++i
) {
8541 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
8545 #pragma omp teams distribute parallel for
8546 for (int i
= 0; i
< 10; ++i
) {
8547 #pragma omp taskwait // OK
8551 #pragma omp teams distribute parallel for
8552 for (int i
= 0; i
< 10; ++i
) {
8553 #pragma omp flush // OK
8557 #pragma omp teams distribute parallel for
8558 for (int i
= 0; i
< 10; ++i
) {
8559 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
8563 #pragma omp teams distribute parallel for
8564 for (int i
= 0; i
< 10; ++i
) {
8565 #pragma omp atomic // OK
8569 #pragma omp teams distribute parallel for
8570 for (int i
= 0; i
< 10; ++i
) {
8571 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
8575 #pragma omp teams distribute parallel for
8576 for (int i
= 0; i
< 10; ++i
) {
8577 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
8581 #pragma omp teams distribute parallel for
8582 for (int i
= 0; i
< 10; ++i
) {
8583 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
8584 for (int i
= 0; i
< 10; ++i
)
8588 #pragma omp teams distribute parallel for
8589 for (int i
= 0; i
< 10; ++i
) {
8590 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
8594 #pragma omp teams distribute parallel for
8595 for (int i
= 0; i
< 10; ++i
) {
8596 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
8600 #pragma omp teams distribute parallel for
8601 for (int i
= 0; i
< 10; ++i
) {
8602 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
8606 #pragma omp teams distribute parallel for
8607 for (int i
= 0; i
< 10; ++i
) {
8608 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
8612 #pragma omp teams distribute parallel for
8613 for (int i
= 0; i
< 10; ++i
) {
8614 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
8615 for (int i
= 0; i
< 10; ++i
)
8619 #pragma omp teams distribute parallel for
8620 for (int i
= 0; i
< 10; ++i
) {
8621 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
8622 for (int i
= 0; i
< 10; ++i
)
8626 #pragma omp teams distribute parallel for
8627 for (int i
= 0; i
< 10; ++i
) {
8628 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
8629 for (int i
= 0; i
< 10; ++i
)
8633 #pragma omp teams distribute parallel for
8634 for (int i
= 0; i
< 10; ++i
) {
8635 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
8636 for (int i
= 0; i
< 10; ++i
)
8640 #pragma omp teams distribute parallel for
8641 for (int i
= 0; i
< 10; ++i
) {
8642 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
8643 for (int i
= 0; i
< 10; ++i
)
8647 #pragma omp teams distribute parallel for
8648 for (int i
= 0; i
< 10; ++i
) {
8649 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
8650 for (int i
= 0; i
< 10; ++i
)
8654 #pragma omp teams distribute parallel for
8655 for (int i
= 0; i
< 10; ++i
) {
8656 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
8660 #pragma omp teams distribute parallel for
8661 for (int i
= 0; i
< 10; ++i
) {
8662 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
8663 for (int i
= 0; i
< 10; ++i
)
8667 #pragma omp teams distribute parallel for
8668 for (int i
= 0; i
< 10; ++i
) {
8669 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
8670 for (int i
= 0; i
< 10; ++i
)
8674 #pragma omp teams distribute parallel for
8675 for (int i
= 0; i
< 10; ++i
) {
8676 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
8677 for (int i
= 0; i
< 10; ++i
)
8681 #pragma omp teams distribute parallel for
8682 for (int i
= 0; i
< 10; ++i
) {
8683 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
8684 for (int i
= 0; i
< 10; ++i
)
8688 // TARGET TEAMS DIRECTIVE
8689 #pragma omp target teams
8690 #pragma omp parallel
8692 #pragma omp target teams
8693 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
8694 for (int i
= 0; i
< 10; ++i
)
8696 #pragma omp target teams
8697 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp simd' directive into a parallel region?}}
8698 for (int i
= 0; i
< 10; ++i
)
8700 #pragma omp target teams
8701 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
8702 for (int i
= 0; i
< 10; ++i
)
8704 #pragma omp target teams
8705 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
8709 #pragma omp target teams
8710 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams region}}
8714 #pragma omp target teams
8715 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
8718 #pragma omp target teams
8719 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp master' directive into a parallel region?}}
8723 #pragma omp target teams
8724 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp critical' directive into a parallel region?}}
8728 #pragma omp target teams
8729 #pragma omp parallel for
8730 for (int i
= 0; i
< 10; ++i
)
8732 #pragma omp target teams
8733 #pragma omp parallel for simd
8734 for (int i
= 0; i
< 10; ++i
)
8736 #pragma omp target teams
8737 #pragma omp parallel sections
8741 #pragma omp target teams
8742 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp task' directive into a parallel region?}}
8746 #pragma omp target teams
8748 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskyield' directive into a parallel region?}}
8751 #pragma omp target teams
8753 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp barrier' directive into a parallel region?}}
8756 #pragma omp target teams
8758 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
8761 #pragma omp target teams
8763 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskwait' directive into a parallel region?}}
8766 #pragma omp target teams
8768 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp flush' directive into a parallel region?}}
8771 #pragma omp target teams
8773 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
8776 #pragma omp target teams
8778 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp atomic' directive into a parallel region?}}
8781 #pragma omp target teams
8783 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}}
8786 #pragma omp target teams
8788 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' region}}
8791 #pragma omp target teams
8792 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' region}}
8793 for (int i
= 0; i
< 10; ++i
)
8795 #pragma omp target teams
8797 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams' region}}
8799 #pragma omp target teams
8801 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams' region}}
8803 #pragma omp target teams
8805 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
8808 #pragma omp target teams
8810 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskloop' directive into a parallel region?}}
8811 for (int i
= 0; i
< 10; ++i
)
8814 #pragma omp target teams
8815 #pragma omp distribute
8816 for (int i
= 0; i
< 10; ++i
)
8818 #pragma omp target teams
8820 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' region}}
8823 #pragma omp target teams
8824 #pragma omp distribute parallel for
8825 for (int i
= 0; i
< 10; ++i
)
8827 #pragma omp target teams
8829 #pragma omp distribute parallel for
8830 for (int i
= 0; i
< 10; ++i
)
8832 #pragma omp distribute parallel for
8833 for (int j
= 0; j
< 10; ++j
)
8836 #pragma omp target teams
8838 #pragma omp distribute parallel for simd
8839 for (int i
= 0; i
< 10; ++i
)
8841 #pragma omp distribute parallel for simd
8842 for (int j
= 0; j
< 10; ++j
)
8845 #pragma omp target teams
8847 #pragma omp distribute simd
8848 for (int i
= 0; i
< 10; ++i
)
8850 #pragma omp distribute simd
8851 for (int j
= 0; j
< 10; ++j
)
8854 #pragma omp target teams
8856 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}}
8857 for (int i
= 0; i
< 10; ++i
)
8860 #pragma omp target teams
8862 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
8863 for (int i
= 0; i
< 10; ++i
)
8866 #pragma omp target teams
8868 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
8869 for (int i
= 0; i
< 10; ++i
)
8872 #pragma omp target teams
8874 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
8875 for (int i
= 0; i
< 10; ++i
)
8878 #pragma omp target teams
8880 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
8881 for (int i
= 0; i
< 10; ++i
)
8884 #pragma omp target teams
8886 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}}
8889 #pragma omp target teams
8891 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams' region}}
8892 for (int i
= 0; i
< 10; ++i
)
8895 #pragma omp target teams
8897 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams' region}}
8898 for (int i
= 0; i
< 10; ++i
)
8901 #pragma omp target teams
8903 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams' region}}
8904 for (int i
= 0; i
< 10; ++i
)
8907 #pragma omp target teams
8909 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams' region}}
8910 for (int i
= 0; i
< 10; ++i
)
8914 // TARGET TEAMS DISTRIBUTE DIRECTIVE
8915 #pragma omp target teams distribute // OK
8916 for (int i
= 0; i
< 10; ++i
)
8918 #pragma omp target teams distribute
8919 for (int i
= 0; i
< 10; ++i
) {
8920 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
8921 for (int i
= 0; i
< 10; ++i
)
8924 #pragma omp target teams distribute
8925 for (int i
= 0; i
< 10; ++i
) {
8926 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
8927 for (int i
= 0; i
< 10; ++i
)
8930 #pragma omp target teams distribute
8931 for (int i
= 0; i
< 10; ++i
) {
8932 #pragma omp for // OK
8933 for (int i
= 0; i
< 10; ++i
)
8936 #pragma omp target teams distribute
8937 for (int i
= 0; i
< 10; ++i
) {
8938 #pragma omp simd // OK
8939 for (int i
= 0; i
< 10; ++i
)
8942 #pragma omp target teams distribute
8943 for (int i
= 0; i
< 10; ++i
) {
8944 #pragma omp for simd // OK
8945 for (int i
= 0; i
< 10; ++i
)
8948 #pragma omp target teams distribute
8949 for (int i
= 0; i
< 10; ++i
) {
8950 #pragma omp parallel // OK
8951 for (int i
= 0; i
< 10; ++i
)
8954 #pragma omp target teams distribute
8955 for (int i
= 0; i
< 10; ++i
) {
8956 #pragma omp sections // OK
8961 #pragma omp target teams distribute
8962 for (int i
= 0; i
< 10; ++i
) {
8963 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams distribute region}}
8968 #pragma omp target teams distribute
8969 for (int i
= 0; i
< 10; ++i
) {
8970 #pragma omp single // OK
8975 #pragma omp target teams distribute
8976 for (int i
= 0; i
< 10; ++i
) {
8977 #pragma omp master // OK
8982 #pragma omp target teams distribute
8983 for (int i
= 0; i
< 10; ++i
) {
8984 #pragma omp critical // OK
8989 #pragma omp target teams distribute
8990 for (int i
= 0; i
< 10; ++i
) {
8991 #pragma omp parallel // OK
8999 #pragma omp target teams distribute
9000 for (int i
= 0; i
< 10; ++i
) {
9001 #pragma omp parallel for // OK
9002 for (int i
= 0; i
< 10; ++i
)
9005 #pragma omp target teams distribute
9006 for (int i
= 0; i
< 10; ++i
) {
9007 #pragma omp parallel for simd // OK
9008 for (int i
= 0; i
< 10; ++i
)
9011 #pragma omp target teams distribute
9012 for (int i
= 0; i
< 10; ++i
) {
9013 #pragma omp parallel sections // OK
9018 #pragma omp target teams distribute
9019 for (int i
= 0; i
< 10; ++i
) {
9020 #pragma omp task // OK
9025 #pragma omp target teams distribute
9026 for (int i
= 0; i
< 10; ++i
) {
9027 #pragma omp taskyield // OK
9030 #pragma omp target teams distribute
9031 for (int i
= 0; i
< 10; ++i
) {
9032 #pragma omp barrier // OK
9035 #pragma omp target teams distribute
9036 for (int i
= 0; i
< 10; ++i
) {
9037 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
9040 #pragma omp target teams distribute
9041 for (int i
= 0; i
< 10; ++i
) {
9042 #pragma omp taskwait // OK
9045 #pragma omp target teams distribute
9046 for (int i
= 0; i
< 10; ++i
) {
9047 #pragma omp flush // OK
9050 #pragma omp target teams distribute
9051 for (int i
= 0; i
< 10; ++i
) {
9052 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
9055 #pragma omp target teams distribute
9056 for (int i
= 0; i
< 10; ++i
) {
9057 #pragma omp atomic // OK
9060 #pragma omp target teams distribute
9061 for (int i
= 0; i
< 10; ++i
) {
9062 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9065 #pragma omp target teams distribute
9066 for (int i
= 0; i
< 10; ++i
) {
9067 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9070 #pragma omp target teams distribute
9071 for (int i
= 0; i
< 10; ++i
) {
9072 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9073 for (int i
= 0; i
< 10; ++i
)
9076 #pragma omp target teams distribute
9077 for (int i
= 0; i
< 10; ++i
) {
9078 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9081 #pragma omp target teams distribute
9082 for (int i
= 0; i
< 10; ++i
) {
9083 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9086 #pragma omp target teams distribute
9087 for (int i
= 0; i
< 10; ++i
) {
9088 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
9091 #pragma omp target teams distribute
9092 for (int i
= 0; i
< 10; ++i
) {
9093 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9096 #pragma omp target teams distribute
9097 for (int i
= 0; i
< 10; ++i
) {
9098 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
9099 for (int i
= 0; i
< 10; ++i
)
9102 #pragma omp target teams distribute
9103 for (int i
= 0; i
< 10; ++i
) {
9104 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9105 for (int i
= 0; i
< 10; ++i
)
9108 #pragma omp target teams distribute
9109 for (int i
= 0; i
< 10; ++i
) {
9110 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
9111 for (int i
= 0; i
< 10; ++i
)
9114 #pragma omp target teams distribute
9115 for (int i
= 0; i
< 10; ++i
) {
9116 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
9117 for (int i
= 0; i
< 10; ++i
)
9120 #pragma omp target teams distribute
9121 for (int i
= 0; i
< 10; ++i
) {
9122 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
9123 for (int i
= 0; i
< 10; ++i
)
9126 #pragma omp target teams distribute
9127 for (int i
= 0; i
< 10; ++i
) {
9128 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
9129 for (int i
= 0; i
< 10; ++i
)
9132 #pragma omp target teams distribute
9133 for (int i
= 0; i
< 10; ++i
) {
9134 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9137 #pragma omp target teams distribute
9138 for (int i
= 0; i
< 10; ++i
) {
9139 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9140 for (int i
= 0; i
< 10; ++i
)
9143 #pragma omp target teams distribute
9144 for (int i
= 0; i
< 10; ++i
) {
9145 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9146 for (int i
= 0; i
< 10; ++i
)
9149 #pragma omp target teams distribute
9150 for (int i
= 0; i
< 10; ++i
) {
9151 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9152 for (int i
= 0; i
< 10; ++i
)
9155 #pragma omp target teams distribute
9156 for (int i
= 0; i
< 10; ++i
) {
9157 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
9158 for (int i
= 0; i
< 10; ++i
)
9162 // TARGET TEAMS DISTRIBUTE PARALLEL FOR DIRECTIVE
9163 #pragma omp target teams distribute parallel for // OK
9164 for (int i
= 0; i
< 10; ++i
)
9166 #pragma omp target teams distribute parallel for
9167 for (int i
= 0; i
< 10; ++i
) {
9168 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
9169 for (int i
= 0; i
< 10; ++i
)
9172 #pragma omp target teams distribute parallel for
9173 for (int i
= 0; i
< 10; ++i
) {
9174 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
9175 for (int i
= 0; i
< 10; ++i
)
9178 #pragma omp target teams distribute parallel for
9179 for (int i
= 0; i
< 10; ++i
) {
9180 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
9181 for (int i
= 0; i
< 10; ++i
)
9184 #pragma omp target teams distribute parallel for
9185 for (int i
= 0; i
< 10; ++i
) {
9186 #pragma omp simd // OK
9187 for (int i
= 0; i
< 10; ++i
)
9190 #pragma omp target teams distribute parallel for
9191 for (int i
= 0; i
< 10; ++i
) {
9192 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
9193 for (int i
= 0; i
< 10; ++i
)
9196 #pragma omp target teams distribute parallel for
9197 for (int i
= 0; i
< 10; ++i
) {
9198 #pragma omp parallel // OK
9199 for (int i
= 0; i
< 10; ++i
)
9202 #pragma omp target teams distribute parallel for
9203 for (int i
= 0; i
< 10; ++i
) {
9204 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
9209 #pragma omp target teams distribute parallel for
9210 for (int i
= 0; i
< 10; ++i
) {
9211 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams distribute parallel for region}}
9216 #pragma omp target teams distribute parallel for
9217 for (int i
= 0; i
< 10; ++i
) {
9218 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
9223 #pragma omp target teams distribute parallel for
9224 for (int i
= 0; i
< 10; ++i
) {
9225 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
9230 #pragma omp target teams distribute parallel for
9231 for (int i
= 0; i
< 10; ++i
) {
9232 #pragma omp critical // OK
9237 #pragma omp target teams distribute parallel for
9238 for (int i
= 0; i
< 10; ++i
) {
9239 #pragma omp parallel // OK
9247 #pragma omp target teams distribute parallel for
9248 for (int i
= 0; i
< 10; ++i
) {
9249 #pragma omp parallel for // OK
9250 for (int i
= 0; i
< 10; ++i
)
9253 #pragma omp target teams distribute parallel for
9254 for (int i
= 0; i
< 10; ++i
) {
9255 #pragma omp parallel for simd // OK
9256 for (int i
= 0; i
< 10; ++i
)
9259 #pragma omp target teams distribute parallel for
9260 for (int i
= 0; i
< 10; ++i
) {
9261 #pragma omp parallel sections // OK
9266 #pragma omp target teams distribute parallel for
9267 for (int i
= 0; i
< 10; ++i
) {
9268 #pragma omp task // OK
9273 #pragma omp target teams distribute parallel for
9274 for (int i
= 0; i
< 10; ++i
) {
9275 #pragma omp taskyield // OK
9278 #pragma omp target teams distribute parallel for
9279 for (int i
= 0; i
< 10; ++i
) {
9280 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
9283 #pragma omp target teams distribute parallel for
9284 for (int i
= 0; i
< 10; ++i
) {
9285 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
9288 #pragma omp target teams distribute parallel for
9289 for (int i
= 0; i
< 10; ++i
) {
9290 #pragma omp taskwait // OK
9293 #pragma omp target teams distribute parallel for
9294 for (int i
= 0; i
< 10; ++i
) {
9295 #pragma omp flush // OK
9298 #pragma omp target teams distribute parallel for
9299 for (int i
= 0; i
< 10; ++i
) {
9300 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
9303 #pragma omp target teams distribute parallel for
9304 for (int i
= 0; i
< 10; ++i
) {
9305 #pragma omp atomic // OK
9308 #pragma omp target teams distribute parallel for
9309 for (int i
= 0; i
< 10; ++i
) {
9310 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9313 #pragma omp target teams distribute parallel for
9314 for (int i
= 0; i
< 10; ++i
) {
9315 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9318 #pragma omp target teams distribute parallel for
9319 for (int i
= 0; i
< 10; ++i
) {
9320 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9321 for (int i
= 0; i
< 10; ++i
)
9324 #pragma omp target teams distribute parallel for
9325 for (int i
= 0; i
< 10; ++i
) {
9326 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9329 #pragma omp target teams distribute parallel for
9330 for (int i
= 0; i
< 10; ++i
) {
9331 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9334 #pragma omp target teams distribute parallel for
9335 for (int i
= 0; i
< 10; ++i
) {
9336 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
9339 #pragma omp target teams distribute parallel for
9340 for (int i
= 0; i
< 10; ++i
) {
9341 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9344 #pragma omp target teams distribute parallel for
9345 for (int i
= 0; i
< 10; ++i
) {
9346 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
9347 for (int i
= 0; i
< 10; ++i
)
9350 #pragma omp target teams distribute parallel for
9351 for (int i
= 0; i
< 10; ++i
) {
9352 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9353 for (int i
= 0; i
< 10; ++i
)
9356 #pragma omp target teams distribute parallel for
9357 for (int i
= 0; i
< 10; ++i
) {
9358 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
9359 for (int i
= 0; i
< 10; ++i
)
9362 #pragma omp target teams distribute parallel for
9363 for (int i
= 0; i
< 10; ++i
) {
9364 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
9365 for (int i
= 0; i
< 10; ++i
)
9368 #pragma omp target teams distribute parallel for
9369 for (int i
= 0; i
< 10; ++i
) {
9370 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
9371 for (int i
= 0; i
< 10; ++i
)
9374 #pragma omp target teams distribute parallel for
9375 for (int i
= 0; i
< 10; ++i
) {
9376 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
9377 for (int i
= 0; i
< 10; ++i
)
9380 #pragma omp target teams distribute parallel for
9381 for (int i
= 0; i
< 10; ++i
) {
9382 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9385 #pragma omp target teams distribute parallel for
9386 for (int i
= 0; i
< 10; ++i
) {
9387 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9388 for (int i
= 0; i
< 10; ++i
)
9391 #pragma omp target teams distribute parallel for
9392 for (int i
= 0; i
< 10; ++i
) {
9393 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9394 for (int i
= 0; i
< 10; ++i
)
9397 #pragma omp target teams distribute parallel for
9398 for (int i
= 0; i
< 10; ++i
) {
9399 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9400 for (int i
= 0; i
< 10; ++i
)
9403 #pragma omp target teams distribute parallel for
9404 for (int i
= 0; i
< 10; ++i
) {
9405 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
9406 for (int i
= 0; i
< 10; ++i
)
9410 // TARGET TEAMS DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
9411 #pragma omp target teams distribute parallel for simd // OK
9412 for (int i
= 0; i
< 10; ++i
)
9414 #pragma omp target teams distribute parallel for simd
9415 for (int i
= 0; i
< 10; ++i
) {
9416 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9417 for (int i
= 0; i
< 10; ++i
)
9420 #pragma omp target teams distribute parallel for simd
9421 for (int i
= 0; i
< 10; ++i
) {
9422 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9423 for (int i
= 0; i
< 10; ++i
)
9426 #pragma omp target teams distribute parallel for simd
9427 for (int i
= 0; i
< 10; ++i
) {
9428 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9429 for (int i
= 0; i
< 10; ++i
)
9432 #pragma omp target teams distribute parallel for simd
9433 for (int i
= 0; i
< 10; ++i
) {
9434 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
9435 for (int i
= 0; i
< 10; ++i
)
9438 #pragma omp target teams distribute parallel for simd
9439 for (int i
= 0; i
< 10; ++i
) {
9440 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9441 for (int i
= 0; i
< 10; ++i
)
9444 #pragma omp target teams distribute parallel for simd
9445 for (int i
= 0; i
< 10; ++i
) {
9446 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9447 for (int i
= 0; i
< 10; ++i
)
9450 #pragma omp target teams distribute parallel for simd
9451 for (int i
= 0; i
< 10; ++i
) {
9452 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9457 #pragma omp target teams distribute parallel for simd
9458 for (int i
= 0; i
< 10; ++i
) {
9459 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9464 #pragma omp target teams distribute parallel for simd
9465 for (int i
= 0; i
< 10; ++i
) {
9466 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9471 #pragma omp target teams distribute parallel for simd
9472 for (int i
= 0; i
< 10; ++i
) {
9473 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9478 #pragma omp target teams distribute parallel for simd
9479 for (int i
= 0; i
< 10; ++i
) {
9480 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9485 #pragma omp target teams distribute parallel for simd
9486 for (int i
= 0; i
< 10; ++i
) {
9487 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9495 #pragma omp target teams distribute parallel for simd
9496 for (int i
= 0; i
< 10; ++i
) {
9497 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9498 for (int i
= 0; i
< 10; ++i
)
9501 #pragma omp target teams distribute parallel for simd
9502 for (int i
= 0; i
< 10; ++i
) {
9503 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9504 for (int i
= 0; i
< 10; ++i
)
9507 #pragma omp target teams distribute parallel for simd
9508 for (int i
= 0; i
< 10; ++i
) {
9509 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9514 #pragma omp target teams distribute parallel for simd
9515 for (int i
= 0; i
< 10; ++i
) {
9516 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9521 #pragma omp target teams distribute parallel for simd
9522 for (int i
= 0; i
< 10; ++i
) {
9523 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9526 #pragma omp target teams distribute parallel for simd
9527 for (int i
= 0; i
< 10; ++i
) {
9528 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9531 #pragma omp target teams distribute parallel for simd
9532 for (int i
= 0; i
< 10; ++i
) {
9533 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
9536 #pragma omp target teams distribute parallel for simd
9537 for (int i
= 0; i
< 10; ++i
) {
9538 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9541 #pragma omp target teams distribute parallel for simd
9542 for (int i
= 0; i
< 10; ++i
) {
9543 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9546 #pragma omp target teams distribute parallel for simd
9547 for (int i
= 0; i
< 10; ++i
) {
9548 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9551 #pragma omp target teams distribute parallel for simd
9552 for (int i
= 0; i
< 10; ++i
) {
9553 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
9556 #pragma omp target teams distribute parallel for simd
9557 for (int i
= 0; i
< 10; ++i
) {
9558 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9561 #pragma omp target teams distribute parallel for simd
9562 for (int i
= 0; i
< 10; ++i
) {
9563 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9566 #pragma omp target teams distribute parallel for simd
9567 for (int i
= 0; i
< 10; ++i
) {
9568 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9569 for (int i
= 0; i
< 10; ++i
)
9572 #pragma omp target teams distribute parallel for simd
9573 for (int i
= 0; i
< 10; ++i
) {
9574 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9577 #pragma omp target teams distribute parallel for simd
9578 for (int i
= 0; i
< 10; ++i
) {
9579 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9582 #pragma omp target teams distribute parallel for simd
9583 for (int i
= 0; i
< 10; ++i
) {
9584 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9587 #pragma omp target teams distribute parallel for simd
9588 for (int i
= 0; i
< 10; ++i
) {
9589 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9592 #pragma omp target teams distribute parallel for simd
9593 for (int i
= 0; i
< 10; ++i
) {
9594 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9595 for (int i
= 0; i
< 10; ++i
)
9598 #pragma omp target teams distribute parallel for simd
9599 for (int i
= 0; i
< 10; ++i
) {
9600 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9601 for (int i
= 0; i
< 10; ++i
)
9604 #pragma omp target teams distribute parallel for simd
9605 for (int i
= 0; i
< 10; ++i
) {
9606 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9607 for (int i
= 0; i
< 10; ++i
)
9610 #pragma omp target teams distribute parallel for simd
9611 for (int i
= 0; i
< 10; ++i
) {
9612 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9613 for (int i
= 0; i
< 10; ++i
)
9616 #pragma omp target teams distribute parallel for simd
9617 for (int i
= 0; i
< 10; ++i
) {
9618 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9619 for (int i
= 0; i
< 10; ++i
)
9622 #pragma omp target teams distribute parallel for simd
9623 for (int i
= 0; i
< 10; ++i
) {
9624 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9625 for (int i
= 0; i
< 10; ++i
)
9628 #pragma omp target teams distribute parallel for simd
9629 for (int i
= 0; i
< 10; ++i
) {
9630 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9633 #pragma omp target teams distribute parallel for simd
9634 for (int i
= 0; i
< 10; ++i
) {
9635 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9636 for (int i
= 0; i
< 10; ++i
)
9639 #pragma omp target teams distribute parallel for simd
9640 for (int i
= 0; i
< 10; ++i
) {
9641 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9642 for (int i
= 0; i
< 10; ++i
)
9645 #pragma omp target teams distribute parallel for simd
9646 for (int i
= 0; i
< 10; ++i
) {
9647 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9648 for (int i
= 0; i
< 10; ++i
)
9651 #pragma omp target teams distribute parallel for simd
9652 for (int i
= 0; i
< 10; ++i
) {
9653 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9654 for (int i
= 0; i
< 10; ++i
)
9658 // TARGET TEAMS DISTRIBUTE SIMD DIRECTIVE
9659 #pragma omp target teams distribute simd // OK
9660 for (int i
= 0; i
< 10; ++i
)
9662 #pragma omp target teams distribute simd
9663 for (int i
= 0; i
< 10; ++i
) {
9664 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9665 for (int i
= 0; i
< 10; ++i
)
9668 #pragma omp target teams distribute simd
9669 for (int i
= 0; i
< 10; ++i
) {
9670 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9671 for (int i
= 0; i
< 10; ++i
)
9674 #pragma omp target teams distribute simd
9675 for (int i
= 0; i
< 10; ++i
) {
9676 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9677 for (int i
= 0; i
< 10; ++i
)
9680 #pragma omp target teams distribute simd
9681 for (int i
= 0; i
< 10; ++i
) {
9682 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
9683 for (int i
= 0; i
< 10; ++i
)
9686 #pragma omp target teams distribute simd
9687 for (int i
= 0; i
< 10; ++i
) {
9688 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9689 for (int i
= 0; i
< 10; ++i
)
9692 #pragma omp target teams distribute simd
9693 for (int i
= 0; i
< 10; ++i
) {
9694 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9695 for (int i
= 0; i
< 10; ++i
)
9698 #pragma omp target teams distribute simd
9699 for (int i
= 0; i
< 10; ++i
) {
9700 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9705 #pragma omp target teams distribute simd
9706 for (int i
= 0; i
< 10; ++i
) {
9707 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9712 #pragma omp target teams distribute simd
9713 for (int i
= 0; i
< 10; ++i
) {
9714 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9719 #pragma omp target teams distribute simd
9720 for (int i
= 0; i
< 10; ++i
) {
9721 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9726 #pragma omp target teams distribute simd
9727 for (int i
= 0; i
< 10; ++i
) {
9728 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9733 #pragma omp target teams distribute simd
9734 for (int i
= 0; i
< 10; ++i
) {
9735 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9743 #pragma omp target teams distribute simd
9744 for (int i
= 0; i
< 10; ++i
) {
9745 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9746 for (int i
= 0; i
< 10; ++i
)
9749 #pragma omp target teams distribute simd
9750 for (int i
= 0; i
< 10; ++i
) {
9751 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9752 for (int i
= 0; i
< 10; ++i
)
9755 #pragma omp target teams distribute simd
9756 for (int i
= 0; i
< 10; ++i
) {
9757 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9762 #pragma omp target teams distribute simd
9763 for (int i
= 0; i
< 10; ++i
) {
9764 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9769 #pragma omp target teams distribute simd
9770 for (int i
= 0; i
< 10; ++i
) {
9771 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9774 #pragma omp target teams distribute simd
9775 for (int i
= 0; i
< 10; ++i
) {
9776 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9779 #pragma omp target teams distribute simd
9780 for (int i
= 0; i
< 10; ++i
) {
9781 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
9784 #pragma omp target teams distribute simd
9785 for (int i
= 0; i
< 10; ++i
) {
9786 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9789 #pragma omp target teams distribute simd
9790 for (int i
= 0; i
< 10; ++i
) {
9791 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9794 #pragma omp target teams distribute simd
9795 for (int i
= 0; i
< 10; ++i
) {
9796 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9799 #pragma omp target teams distribute simd
9800 for (int i
= 0; i
< 10; ++i
) {
9801 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
9804 #pragma omp target teams distribute simd
9805 for (int i
= 0; i
< 10; ++i
) {
9806 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9809 #pragma omp target teams distribute simd
9810 for (int i
= 0; i
< 10; ++i
) {
9811 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9814 #pragma omp target teams distribute simd
9815 for (int i
= 0; i
< 10; ++i
) {
9816 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9817 for (int i
= 0; i
< 10; ++i
)
9820 #pragma omp target teams distribute simd
9821 for (int i
= 0; i
< 10; ++i
) {
9822 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9825 #pragma omp target teams distribute simd
9826 for (int i
= 0; i
< 10; ++i
) {
9827 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9830 #pragma omp target teams distribute simd
9831 for (int i
= 0; i
< 10; ++i
) {
9832 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9835 #pragma omp target teams distribute simd
9836 for (int i
= 0; i
< 10; ++i
) {
9837 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9840 #pragma omp target teams distribute simd
9841 for (int i
= 0; i
< 10; ++i
) {
9842 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9843 for (int i
= 0; i
< 10; ++i
)
9846 #pragma omp target teams distribute simd
9847 for (int i
= 0; i
< 10; ++i
) {
9848 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9849 for (int i
= 0; i
< 10; ++i
)
9852 #pragma omp target teams distribute simd
9853 for (int i
= 0; i
< 10; ++i
) {
9854 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9855 for (int i
= 0; i
< 10; ++i
)
9858 #pragma omp target teams distribute simd
9859 for (int i
= 0; i
< 10; ++i
) {
9860 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9861 for (int i
= 0; i
< 10; ++i
)
9864 #pragma omp target teams distribute simd
9865 for (int i
= 0; i
< 10; ++i
) {
9866 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9867 for (int i
= 0; i
< 10; ++i
)
9870 #pragma omp target teams distribute simd
9871 for (int i
= 0; i
< 10; ++i
) {
9872 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9873 for (int i
= 0; i
< 10; ++i
)
9876 #pragma omp target teams distribute simd
9877 for (int i
= 0; i
< 10; ++i
) {
9878 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9881 #pragma omp target teams distribute simd
9882 for (int i
= 0; i
< 10; ++i
) {
9883 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9884 for (int i
= 0; i
< 10; ++i
)
9887 #pragma omp target teams distribute simd
9888 for (int i
= 0; i
< 10; ++i
) {
9889 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9890 for (int i
= 0; i
< 10; ++i
)
9893 #pragma omp target teams distribute simd
9894 for (int i
= 0; i
< 10; ++i
) {
9895 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9896 for (int i
= 0; i
< 10; ++i
)
9899 #pragma omp target teams distribute simd
9900 for (int i
= 0; i
< 10; ++i
) {
9901 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
9902 for (int i
= 0; i
< 10; ++i
)
9908 #pragma omp parallel // OK
9911 #pragma omp parallel for // OK
9912 for(int i
= 0; i
< 10; i
++)
9915 #pragma omp parallel for simd // OK
9916 for(int i
= 0; i
< 10; i
++)
9920 for (int i
= 0; i
< 10; ++i
)
9924 for (int i
= 0; i
< 10; ++i
)
9927 #pragma omp for simd
9928 for (int i
= 0; i
< 10; ++i
)
9931 #pragma omp sections
9936 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a scope region}}
9950 #pragma omp critical
9955 #pragma omp parallel sections
9960 #pragma omp parallel master
9965 #pragma omp parallel masked
9976 #pragma omp taskyield
9986 #pragma omp scan // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
9991 #pragma omp taskwait
10001 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
10011 #pragma omp target parallel
10016 #pragma omp target parallel for
10017 for (int i
= 0; i
< 10; ++i
)
10022 #pragma omp target enter data map(to: a)
10027 #pragma omp target exit data map(from: a)
10032 #pragma omp taskloop
10033 for (int i
= 0; i
< 10; ++i
)
10038 #pragma omp target // OK
10043 #pragma omp teams // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
10048 #pragma omp target teams // OK
10053 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
10054 for (int i
= 0; i
< 10; ++i
)
10059 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
10060 for (int i
= 0; i
< 10; ++i
)
10065 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
10066 for (int i
= 0; i
< 10; ++i
)
10071 #pragma omp target simd // OK
10072 for (int i
= 0; i
< 10; ++i
)
10077 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
10078 for (int i
= 0; i
< 10; ++i
)
10083 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
10084 for (int i
= 0; i
< 10; ++i
)
10089 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
10090 for (int i
= 0; i
< 10; ++i
)
10095 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
10096 for (int i
= 0; i
< 10; ++i
)
10101 #pragma omp target teams // OK
10106 #pragma omp target teams distribute // OK
10107 for (int i
= 0; i
< 10; ++i
)
10112 #pragma omp target teams distribute parallel for // OK
10113 for (int i
= 0; i
< 10; ++i
)
10118 #pragma omp target teams distribute parallel for simd // OK
10119 for (int i
= 0; i
< 10; ++i
)
10124 #pragma omp target teams distribute simd // OK
10125 for (int i
= 0; i
< 10; ++i
)
10129 for (int i
= 0; i
< 10; ++i
) {
10130 #pragma omp scope // expected-error {{region cannot be closely nested inside 'for' region}}
10134 #pragma omp for simd
10135 for (int i
= 0; i
< 10; ++i
) {
10136 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10140 #pragma omp sections
10142 #pragma omp scope // expected-error {{region cannot be closely nested inside 'sections' region}}
10146 #pragma omp sections
10148 #pragma omp section
10150 #pragma omp scope // expected-error {{region cannot be closely nested inside 'section' region}}
10157 #pragma omp scope // expected-error {{region cannot be closely nested inside 'single' region}}
10163 #pragma omp scope // expected-error {{region cannot be closely nested inside 'master' region}}
10167 #pragma omp critical
10169 #pragma omp scope // expected-error {{region cannot be closely nested inside 'critical' region}}
10173 #pragma omp parallel for
10174 for (int i
= 0; i
< 10; ++i
) {
10175 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel for' region}}
10179 #pragma omp parallel for simd
10180 for (int i
= 0; i
< 10; ++i
) {
10181 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10185 #pragma omp parallel master
10187 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel master' region}}
10191 #pragma omp parallel sections
10193 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
10199 #pragma omp scope // expected-error {{region cannot be closely nested inside 'task' region}}
10203 #pragma omp ordered
10205 #pragma omp scope // expected-error {{region cannot be closely nested inside 'ordered' region}}
10210 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
10211 // expected-note@+1 {{expected an expression statement}}
10213 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
10220 #pragma omp scope // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp scope' directive into a parallel region?}}
10224 #pragma omp taskloop
10225 for (int i
= 0; i
< 10; ++i
) {
10226 #pragma omp scope // expected-error {{region cannot be closely nested inside 'taskloop' region}}
10232 #pragma omp distribute parallel for
10233 for (int i
= 0; i
< 10; ++i
) {
10234 #pragma omp scope // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
10240 #pragma omp distribute parallel for simd
10241 for (int i
= 0; i
< 10; ++i
) {
10242 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10246 #pragma omp target simd
10247 for (int i
= 0; i
< 10; ++i
) {
10248 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10253 #pragma omp teams distribute simd
10254 for (int i
= 0; i
< 10; ++i
) {
10255 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10260 #pragma omp teams distribute parallel for simd
10261 for (int i
= 0; i
< 10; ++i
) {
10262 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10267 #pragma omp teams distribute parallel for
10268 for (int i
= 0; i
< 10; ++i
) {
10269 #pragma omp scope // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
10273 #pragma omp target teams
10275 #pragma omp scope // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp scope' directive into a parallel region?}}
10279 #pragma omp target teams distribute parallel for
10280 for (int i
= 0; i
< 10; ++i
) {
10281 #pragma omp scope // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
10285 #pragma omp target teams distribute parallel for simd
10286 for (int i
= 0; i
< 10; ++i
) {
10287 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10291 #pragma omp target teams distribute simd
10292 for (int i
= 0; i
< 10; ++i
) {
10293 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10298 for (int i
= 0; i
< 10; ++i
) {
10299 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10306 // PARALLEL DIRECTIVE
10307 #pragma omp parallel
10309 for (int i
= 0; i
< 10; ++i
)
10311 #pragma omp parallel
10313 for (int i
= 0; i
< 10; ++i
)
10315 #pragma omp parallel
10316 #pragma omp for simd
10317 for (int i
= 0; i
< 10; ++i
)
10319 #pragma omp parallel
10320 #pragma omp sections
10324 #pragma omp parallel
10325 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a parallel region}}
10329 #pragma omp parallel
10330 #pragma omp sections
10334 #pragma omp parallel
10337 #pragma omp parallel
10340 #pragma omp parallel master
10342 #pragma omp parallel masked
10344 #pragma omp parallel
10345 #pragma omp critical
10347 #pragma omp parallel
10348 #pragma omp parallel for
10349 for (int i
= 0; i
< 10; ++i
)
10351 #pragma omp parallel
10352 #pragma omp parallel for simd
10353 for (int i
= 0; i
< 10; ++i
)
10355 #pragma omp parallel
10356 #pragma omp parallel sections
10360 #pragma omp parallel
10365 #pragma omp parallel
10367 #pragma omp taskyield
10370 #pragma omp parallel
10372 #pragma omp barrier
10375 #pragma omp parallel
10377 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
10380 #pragma omp parallel
10382 #pragma omp taskwait
10385 #pragma omp parallel
10390 #pragma omp parallel
10392 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
10395 #pragma omp parallel
10400 #pragma omp parallel
10405 #pragma omp parallel
10407 #pragma omp target parallel
10410 #pragma omp parallel
10411 #pragma omp target parallel for
10412 for (int i
= 0; i
< 10; ++i
)
10414 #pragma omp parallel
10416 #pragma omp target enter data map(to: a)
10419 #pragma omp parallel
10421 #pragma omp target exit data map(from: a)
10424 #pragma omp parallel
10426 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
10429 #pragma omp parallel
10431 #pragma omp taskloop
10432 for (int i
= 0; i
< 10; ++i
)
10435 #pragma omp parallel
10437 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
10438 for (int i
= 0; i
< 10; ++i
)
10441 #pragma omp parallel
10443 #pragma omp target update to(a)
10446 #pragma omp parallel
10448 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
10449 for (int i
= 0; i
< 10; ++i
)
10452 #pragma omp parallel
10454 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
10455 for (int i
= 0; i
< 10; ++i
)
10458 #pragma omp parallel
10460 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
10461 for (int i
= 0; i
< 10; ++i
)
10464 #pragma omp parallel
10466 #pragma omp target simd // OK
10467 for (int i
= 0; i
< 10; ++i
)
10470 #pragma omp parallel
10472 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
10473 for (int i
= 0; i
< 10; ++i
)
10476 #pragma omp parallel
10478 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
10479 for (int i
= 0; i
< 10; ++i
)
10482 #pragma omp parallel
10484 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
10485 for (int i
= 0; i
< 10; ++i
)
10488 #pragma omp parallel
10490 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
10491 for (int i
= 0; i
< 10; ++i
)
10494 #pragma omp parallel
10496 #pragma omp target teams // OK
10499 #pragma omp parallel
10501 #pragma omp target teams distribute // OK
10502 for (int i
= 0; i
< 10; ++i
)
10505 #pragma omp parallel
10507 #pragma omp target teams distribute parallel for // OK
10508 for (int i
= 0; i
< 10; ++i
)
10511 #pragma omp parallel
10513 #pragma omp target teams distribute parallel for simd // OK
10514 for (int i
= 0; i
< 10; ++i
)
10517 #pragma omp parallel
10519 #pragma omp target teams distribute simd // OK
10520 for (int i
= 0; i
< 10; ++i
)
10526 for (int i
= 0; i
< 10; ++i
) {
10527 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10528 for (int i
= 0; i
< 10; ++i
)
10532 for (int i
= 0; i
< 10; ++i
) {
10533 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
10534 for (int i
= 0; i
< 10; ++i
)
10538 for (int i
= 0; i
< 10; ++i
) {
10539 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10540 for (int i
= 0; i
< 10; ++i
)
10544 for (int i
= 0; i
< 10; ++i
) {
10545 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10546 for (int i
= 0; i
< 10; ++i
)
10550 for (int i
= 0; i
< 10; ++i
) {
10551 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10557 for (int i
= 0; i
< 10; ++i
) {
10558 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10564 for (int i
= 0; i
< 10; ++i
) {
10565 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10567 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10571 for (int i
= 0; i
< 10; ++i
) {
10572 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10574 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10578 for (int i
= 0; i
< 10; ++i
) {
10579 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10580 for (int i
= 0; i
< 10; ++i
)
10584 for (int i
= 0; i
< 10; ++i
) {
10585 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10586 for (int i
= 0; i
< 10; ++i
)
10590 for (int i
= 0; i
< 10; ++i
) {
10591 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10597 for (int i
= 0; i
< 10; ++i
) {
10598 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10604 for (int i
= 0; i
< 10; ++i
) {
10605 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10609 for (int i
= 0; i
< 10; ++i
) {
10610 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10614 for (int i
= 0; i
< 10; ++i
) {
10615 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
10619 for (int i
= 0; i
< 10; ++i
) {
10620 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10624 for (int i
= 0; i
< 10; ++i
) {
10625 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10629 for (int i
= 0; i
< 10; ++i
) {
10630 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10634 for (int i
= 0; i
< 10; ++i
) {
10635 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
10639 for (int i
= 0; i
< 10; ++i
) {
10640 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10644 for (int i
= 0; i
< 10; ++i
) {
10645 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10649 for (int i
= 0; i
< 10; ++i
) {
10650 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10651 for (int i
= 0; i
< 10; ++i
)
10655 for (int i
= 0; i
< 10; ++i
) {
10656 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10660 for (int i
= 0; i
< 10; ++i
) {
10661 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10665 for (int i
= 0; i
< 10; ++i
) {
10666 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10670 for (int i
= 0; i
< 10; ++i
) {
10671 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10672 for (int i
= 0; i
< 10; ++i
)
10676 for (int i
= 0; i
< 10; ++i
) {
10677 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10678 for (int j
= 0; j
< 10; ++j
)
10682 for (int i
= 0; i
< 10; ++i
) {
10683 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10687 for (int i
= 0; i
< 10; ++i
) {
10688 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10689 for (int j
= 0; j
< 10; ++j
)
10693 for (int i
= 0; i
< 10; ++i
) {
10694 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10695 for (int j
= 0; j
< 10; ++j
)
10699 for (int i
= 0; i
< 10; ++i
) {
10700 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10701 for (int j
= 0; j
< 10; ++j
)
10705 for (int i
= 0; i
< 10; ++i
) {
10706 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10707 for (int j
= 0; j
< 10; ++j
)
10711 for (int i
= 0; i
< 10; ++i
) {
10712 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10713 for (int j
= 0; j
< 10; ++j
)
10717 for (int i
= 0; i
< 10; ++i
) {
10718 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10719 for (int j
= 0; j
< 10; ++j
)
10723 for (int i
= 0; i
< 10; ++i
) {
10724 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10725 for (int j
= 0; j
< 10; ++j
)
10729 for (int i
= 0; i
< 10; ++i
) {
10730 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10731 for (int j
= 0; j
< 10; ++j
)
10735 for (int i
= 0; i
< 10; ++i
) {
10736 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10740 for (int i
= 0; i
< 10; ++i
) {
10741 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10742 for (int j
= 0; j
< 10; ++j
)
10746 for (int i
= 0; i
< 10; ++i
) {
10747 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10748 for (int j
= 0; j
< 10; ++j
)
10752 for (int i
= 0; i
< 10; ++i
) {
10753 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10754 for (int j
= 0; j
< 10; ++j
)
10758 for (int i
= 0; i
< 10; ++i
) {
10759 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
10760 for (int j
= 0; j
< 10; ++j
)
10766 for (int i
= 0; i
< 10; ++i
) {
10767 #pragma omp for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
10768 for (int i
= 0; i
< 10; ++i
)
10772 for (int i
= 0; i
< 10; ++i
) {
10774 for (int i
= 0; i
< 10; ++i
)
10778 for (int i
= 0; i
< 10; ++i
) {
10779 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
10780 for (int i
= 0; i
< 10; ++i
)
10784 for (int i
= 0; i
< 10; ++i
) {
10785 #pragma omp parallel
10786 for (int i
= 0; i
< 10; ++i
)
10790 for (int i
= 0; i
< 10; ++i
) {
10791 #pragma omp sections // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
10797 for (int i
= 0; i
< 10; ++i
) {
10798 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a for region}}
10804 for (int i
= 0; i
< 10; ++i
) {
10805 #pragma omp single // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
10807 #pragma omp master // expected-error {{region cannot be closely nested inside 'for' region}}
10809 #pragma omp critical
10813 for (int i
= 0; i
< 10; ++i
) {
10814 #pragma omp parallel
10816 #pragma omp single // OK
10820 #pragma omp for // OK
10821 for (int i
= 0; i
< 10; ++i
)
10823 #pragma omp for simd // OK
10824 for (int i
= 0; i
< 10; ++i
)
10826 #pragma omp sections // OK
10833 for (int i
= 0; i
< 10; ++i
) {
10834 #pragma omp parallel for
10835 for (int i
= 0; i
< 10; ++i
)
10839 for (int i
= 0; i
< 10; ++i
) {
10840 #pragma omp parallel for simd
10841 for (int i
= 0; i
< 10; ++i
)
10845 for (int i
= 0; i
< 10; ++i
) {
10846 #pragma omp parallel sections
10852 for (int i
= 0; i
< 10; ++i
) {
10859 for (int i
= 0; i
< 10; ++i
) {
10860 #pragma omp taskyield
10864 for (int i
= 0; i
< 10; ++i
) {
10865 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'for' region}}
10869 for (int i
= 0; i
< 10; ++i
) {
10870 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'for' region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
10874 for (int i
= 0; i
< 10; ++i
) {
10875 #pragma omp taskwait
10879 for (int i
= 0; i
< 10; ++i
) {
10884 for (int i
= 0; i
< 10; ++i
) {
10885 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
10888 #pragma omp for ordered
10889 for (int i
= 0; i
< 10; ++i
) {
10890 #pragma omp ordered // OK
10894 for (int i
= 0; i
< 10; ++i
) {
10899 for (int i
= 0; i
< 10; ++i
) {
10904 for (int i
= 0; i
< 10; ++i
) {
10905 #pragma omp target parallel
10909 for (int i
= 0; i
< 10; ++i
) {
10910 #pragma omp target parallel for
10911 for (int i
= 0; i
< 10; ++i
)
10915 for (int i
= 0; i
< 10; ++i
) {
10916 #pragma omp target enter data map(to: a)
10920 for (int i
= 0; i
< 10; ++i
) {
10921 #pragma omp target exit data map(from: a)
10925 for (int i
= 0; i
< 10; ++i
) {
10926 #pragma omp teams // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
10930 for (int i
= 0; i
< 10; ++i
) {
10931 #pragma omp taskloop
10932 for (int i
= 0; i
< 10; ++i
)
10936 for (int i
= 0; i
< 10; ++i
) {
10937 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
10938 for (int j
= 0; j
< 10; ++j
)
10942 for (int i
= 0; i
< 10; ++i
) {
10943 #pragma omp target update to(a)
10947 for (int i
= 0; i
< 10; ++i
) {
10948 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
10949 for (int j
= 0; j
< 10; ++j
)
10953 for (int i
= 0; i
< 10; ++i
) {
10954 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
10955 for (int j
= 0; j
< 10; ++j
)
10959 for (int i
= 0; i
< 10; ++i
) {
10960 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
10961 for (int j
= 0; j
< 10; ++j
)
10965 for (int i
= 0; i
< 10; ++i
) {
10966 #pragma omp target simd // OK
10967 for (int j
= 0; j
< 10; ++j
)
10971 for (int i
= 0; i
< 10; ++i
) {
10972 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
10973 for (int j
= 0; j
< 10; ++j
)
10977 for (int i
= 0; i
< 10; ++i
) {
10978 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
10979 for (int j
= 0; j
< 10; ++j
)
10983 for (int i
= 0; i
< 10; ++i
) {
10984 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
10985 for (int j
= 0; j
< 10; ++j
)
10989 for (int i
= 0; i
< 10; ++i
) {
10990 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
10991 for (int j
= 0; j
< 10; ++j
)
10995 for (int i
= 0; i
< 10; ++i
) {
10996 #pragma omp target teams // OK
11000 for (int i
= 0; i
< 10; ++i
) {
11001 #pragma omp target teams distribute // OK
11002 for (int j
= 0; j
< 10; ++j
)
11006 for (int i
= 0; i
< 10; ++i
) {
11007 #pragma omp target teams distribute parallel for // OK
11008 for (int j
= 0; j
< 10; ++j
)
11012 for (int i
= 0; i
< 10; ++i
) {
11013 #pragma omp target teams distribute parallel for simd // OK
11014 for (int j
= 0; j
< 10; ++j
)
11018 for (int i
= 0; i
< 10; ++i
) {
11019 #pragma omp target teams distribute simd // OK
11020 for (int j
= 0; j
< 10; ++j
)
11024 // FOR SIMD DIRECTIVE
11025 #pragma omp for simd
11026 for (int i
= 0; i
< 10; ++i
) {
11027 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11028 for (int i
= 0; i
< 10; ++i
)
11031 #pragma omp for simd
11032 for (int i
= 0; i
< 10; ++i
) {
11033 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
11034 for (int i
= 0; i
< 10; ++i
)
11037 #pragma omp for simd
11038 for (int i
= 0; i
< 10; ++i
) {
11039 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11040 for (int i
= 0; i
< 10; ++i
)
11043 #pragma omp for simd
11044 for (int i
= 0; i
< 10; ++i
) {
11045 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11046 for (int i
= 0; i
< 10; ++i
)
11049 #pragma omp for simd
11050 for (int i
= 0; i
< 10; ++i
) {
11051 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11056 #pragma omp for simd
11057 for (int i
= 0; i
< 10; ++i
) {
11058 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11063 #pragma omp for simd
11064 for (int i
= 0; i
< 10; ++i
) {
11065 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11067 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11070 #pragma omp for simd
11071 for (int i
= 0; i
< 10; ++i
) {
11072 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11074 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11077 #pragma omp for simd
11078 for (int i
= 0; i
< 10; ++i
) {
11079 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11080 for (int i
= 0; i
< 10; ++i
)
11083 #pragma omp for simd
11084 for (int i
= 0; i
< 10; ++i
) {
11085 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11086 for (int i
= 0; i
< 10; ++i
)
11089 #pragma omp for simd
11090 for (int i
= 0; i
< 10; ++i
) {
11091 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11096 #pragma omp for simd
11097 for (int i
= 0; i
< 10; ++i
) {
11098 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11103 #pragma omp for simd
11104 for (int i
= 0; i
< 10; ++i
) {
11105 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11108 #pragma omp for simd
11109 for (int i
= 0; i
< 10; ++i
) {
11110 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11113 #pragma omp for simd
11114 for (int i
= 0; i
< 10; ++i
) {
11115 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
11118 #pragma omp for simd
11119 for (int i
= 0; i
< 10; ++i
) {
11120 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11123 #pragma omp for simd
11124 for (int i
= 0; i
< 10; ++i
) {
11125 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11128 #pragma omp for simd
11129 for (int i
= 0; i
< 10; ++i
) {
11130 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11133 #pragma omp for simd
11134 for (int i
= 0; i
< 10; ++i
) {
11135 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
11138 #pragma omp for simd
11139 for (int i
= 0; i
< 10; ++i
) {
11140 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11143 #pragma omp for simd
11144 for (int i
= 0; i
< 10; ++i
) {
11145 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11148 #pragma omp for simd
11149 for (int i
= 0; i
< 10; ++i
) {
11150 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11151 for (int i
= 0; i
< 10; ++i
)
11154 #pragma omp for simd
11155 for (int i
= 0; i
< 10; ++i
) {
11156 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11159 #pragma omp for simd
11160 for (int i
= 0; i
< 10; ++i
) {
11161 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11164 #pragma omp for simd
11165 for (int i
= 0; i
< 10; ++i
) {
11166 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11169 #pragma omp for simd
11170 for (int i
= 0; i
< 10; ++i
) {
11171 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11172 for (int i
= 0; i
< 10; ++i
)
11175 #pragma omp for simd
11176 for (int i
= 0; i
< 10; ++i
) {
11177 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11178 for (int j
= 0; j
< 10; ++j
)
11181 #pragma omp for simd
11182 for (int i
= 0; i
< 10; ++i
) {
11183 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11186 #pragma omp for simd
11187 for (int i
= 0; i
< 10; ++i
) {
11188 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11189 for (int j
= 0; j
< 10; ++j
)
11192 #pragma omp for simd
11193 for (int i
= 0; i
< 10; ++i
) {
11194 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11195 for (int j
= 0; j
< 10; ++j
)
11198 #pragma omp for simd
11199 for (int i
= 0; i
< 10; ++i
) {
11200 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11201 for (int j
= 0; j
< 10; ++j
)
11204 #pragma omp for simd
11205 for (int i
= 0; i
< 10; ++i
) {
11206 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11207 for (int j
= 0; j
< 10; ++j
)
11210 #pragma omp for simd
11211 for (int i
= 0; i
< 10; ++i
) {
11212 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11213 for (int j
= 0; j
< 10; ++j
)
11216 #pragma omp for simd
11217 for (int i
= 0; i
< 10; ++i
) {
11218 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11219 for (int j
= 0; j
< 10; ++j
)
11222 #pragma omp for simd
11223 for (int i
= 0; i
< 10; ++i
) {
11224 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11225 for (int j
= 0; j
< 10; ++j
)
11228 #pragma omp for simd
11229 for (int i
= 0; i
< 10; ++i
) {
11230 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11231 for (int j
= 0; j
< 10; ++j
)
11234 #pragma omp for simd
11235 for (int i
= 0; i
< 10; ++i
) {
11236 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11239 #pragma omp for simd
11240 for (int i
= 0; i
< 10; ++i
) {
11241 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11242 for (int j
= 0; j
< 10; ++j
)
11245 #pragma omp for simd
11246 for (int i
= 0; i
< 10; ++i
) {
11247 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11248 for (int j
= 0; j
< 10; ++j
)
11251 #pragma omp for simd
11252 for (int i
= 0; i
< 10; ++i
) {
11253 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11254 for (int j
= 0; j
< 10; ++j
)
11257 #pragma omp for simd
11258 for (int i
= 0; i
< 10; ++i
) {
11259 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
11260 for (int j
= 0; j
< 10; ++j
)
11264 // SECTIONS DIRECTIVE
11265 #pragma omp sections
11267 #pragma omp for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
11268 for (int i
= 0; i
< 10; ++i
)
11271 #pragma omp sections
11274 for (int i
= 0; i
< 10; ++i
)
11277 #pragma omp sections
11279 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
11280 for (int i
= 0; i
< 10; ++i
)
11283 #pragma omp sections
11285 #pragma omp parallel
11286 for (int i
= 0; i
< 10; ++i
)
11289 #pragma omp sections
11291 #pragma omp sections // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
11296 #pragma omp sections
11298 #pragma omp section
11303 #pragma omp sections
11305 #pragma omp critical
11307 #pragma omp single // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
11309 #pragma omp master // expected-error {{region cannot be closely nested inside 'sections' region}}
11312 #pragma omp sections
11314 #pragma omp parallel
11316 #pragma omp single // OK
11320 #pragma omp for // OK
11321 for (int i
= 0; i
< 10; ++i
)
11323 #pragma omp for simd // OK
11324 for (int i
= 0; i
< 10; ++i
)
11326 #pragma omp sections // OK
11332 #pragma omp sections
11334 #pragma omp parallel for
11335 for (int i
= 0; i
< 10; ++i
)
11338 #pragma omp sections
11340 #pragma omp parallel for simd
11341 for (int i
= 0; i
< 10; ++i
)
11344 #pragma omp sections
11346 #pragma omp parallel sections
11351 #pragma omp sections
11358 #pragma omp sections
11360 #pragma omp taskyield
11362 #pragma omp sections
11364 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'sections' region}}
11367 #pragma omp sections
11369 #pragma omp scan // expected-error {{region cannot be closely nested inside 'sections' region}}
11372 #pragma omp sections
11374 #pragma omp taskwait
11376 #pragma omp sections
11380 #pragma omp sections
11382 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
11385 #pragma omp sections
11390 #pragma omp sections
11395 #pragma omp sections
11397 #pragma omp target parallel
11400 #pragma omp sections
11402 #pragma omp target parallel for
11403 for (int i
= 0; i
< 10; ++i
)
11406 #pragma omp sections
11408 #pragma omp target enter data map(to: a)
11410 #pragma omp sections
11412 #pragma omp target exit data map(from: a)
11414 #pragma omp sections
11416 #pragma omp teams // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
11419 #pragma omp sections
11421 #pragma omp taskloop
11422 for (int i
= 0; i
< 10; ++i
)
11425 #pragma omp sections
11427 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
11428 for (int i
= 0; i
< 10; ++i
)
11431 #pragma omp sections
11433 #pragma omp target update to(a)
11435 #pragma omp sections
11437 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
11438 for (int i
= 0; i
< 10; ++i
)
11441 #pragma omp sections
11443 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
11444 for (int i
= 0; i
< 10; ++i
)
11447 #pragma omp sections
11449 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
11450 for (int i
= 0; i
< 10; ++i
)
11453 #pragma omp sections
11455 #pragma omp target simd // OK
11456 for (int i
= 0; i
< 10; ++i
)
11459 #pragma omp sections
11461 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
11462 for (int i
= 0; i
< 10; ++i
)
11465 #pragma omp sections
11467 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
11468 for (int i
= 0; i
< 10; ++i
)
11471 #pragma omp sections
11473 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
11474 for (int i
= 0; i
< 10; ++i
)
11477 #pragma omp sections
11479 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'sections' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
11480 for (int i
= 0; i
< 10; ++i
)
11483 #pragma omp sections
11485 #pragma omp target teams // OK
11488 #pragma omp sections
11490 #pragma omp target teams distribute // OK
11491 for (int i
= 0; i
< 10; ++i
)
11494 #pragma omp sections
11496 #pragma omp target teams distribute parallel for // OK
11497 for (int i
= 0; i
< 10; ++i
)
11500 #pragma omp sections
11502 #pragma omp target teams distribute parallel for simd // OK
11503 for (int i
= 0; i
< 10; ++i
)
11506 #pragma omp sections
11508 #pragma omp target teams distribute simd // OK
11509 for (int i
= 0; i
< 10; ++i
)
11513 // SECTION DIRECTIVE
11514 #pragma omp section // expected-error {{orphaned 'omp section' directives are prohibited, it must be closely nested to a sections region}}
11518 #pragma omp sections
11520 #pragma omp section
11522 #pragma omp for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
11523 for (int i
= 0; i
< 10; ++i
)
11527 #pragma omp sections
11529 #pragma omp section
11532 for (int i
= 0; i
< 10; ++i
)
11536 #pragma omp sections
11538 #pragma omp section
11540 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
11541 for (int i
= 0; i
< 10; ++i
)
11545 #pragma omp sections
11547 #pragma omp section
11549 #pragma omp parallel
11550 for (int i
= 0; i
< 10; ++i
)
11554 #pragma omp sections
11556 #pragma omp section
11558 #pragma omp sections // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
11564 #pragma omp sections
11566 #pragma omp section
11568 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a section region}}
11574 #pragma omp sections
11576 #pragma omp section
11578 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
11580 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}}
11582 #pragma omp critical
11586 #pragma omp sections
11588 #pragma omp section
11590 #pragma omp parallel
11592 #pragma omp single // OK
11596 #pragma omp for // OK
11597 for (int i
= 0; i
< 10; ++i
)
11599 #pragma omp for simd // OK
11600 for (int i
= 0; i
< 10; ++i
)
11602 #pragma omp sections // OK
11609 #pragma omp sections
11611 #pragma omp section
11613 #pragma omp parallel for
11614 for (int i
= 0; i
< 10; ++i
)
11618 #pragma omp sections
11620 #pragma omp section
11622 #pragma omp parallel for simd
11623 for (int i
= 0; i
< 10; ++i
)
11627 #pragma omp sections
11629 #pragma omp section
11631 #pragma omp parallel sections
11637 #pragma omp sections
11639 #pragma omp section
11647 #pragma omp sections
11649 #pragma omp section
11651 #pragma omp taskyield
11655 #pragma omp sections
11657 #pragma omp section
11659 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'section' region}}
11663 #pragma omp sections
11665 #pragma omp section
11667 #pragma omp scan // expected-error {{region cannot be closely nested inside 'section' region}}
11671 #pragma omp sections
11673 #pragma omp section
11675 #pragma omp taskwait
11679 #pragma omp sections
11681 #pragma omp section
11687 #pragma omp sections
11689 #pragma omp section
11691 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
11695 #pragma omp sections
11697 #pragma omp section
11703 #pragma omp sections
11705 #pragma omp section
11711 #pragma omp sections
11713 #pragma omp section
11715 #pragma omp target parallel
11719 #pragma omp sections
11721 #pragma omp section
11723 #pragma omp target parallel for
11724 for (int i
= 0; i
< 10; ++i
)
11728 #pragma omp sections
11730 #pragma omp section
11732 #pragma omp target enter data map(to: a)
11736 #pragma omp sections
11738 #pragma omp section
11740 #pragma omp target exit data map(from: a)
11744 #pragma omp sections
11746 #pragma omp section
11748 #pragma omp teams // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
11752 #pragma omp sections
11754 #pragma omp section
11756 #pragma omp taskloop
11757 for (int i
= 0; i
< 10; ++i
)
11761 #pragma omp sections
11763 #pragma omp section
11764 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
11765 for (int i
= 0; i
< 10; ++i
)
11768 #pragma omp sections
11770 #pragma omp section
11772 #pragma omp target update to(a)
11776 #pragma omp sections
11778 #pragma omp section
11779 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
11780 for (int i
= 0; i
< 10; ++i
)
11783 #pragma omp sections
11785 #pragma omp section
11786 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
11787 for (int i
= 0; i
< 10; ++i
)
11790 #pragma omp sections
11792 #pragma omp section
11793 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
11794 for (int i
= 0; i
< 10; ++i
)
11797 #pragma omp sections
11799 #pragma omp section
11800 #pragma omp target simd // OK
11801 for (int i
= 0; i
< 10; ++i
)
11804 #pragma omp sections
11806 #pragma omp section
11807 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
11808 for (int i
= 0; i
< 10; ++i
)
11811 #pragma omp sections
11813 #pragma omp section
11814 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
11815 for (int i
= 0; i
< 10; ++i
)
11818 #pragma omp sections
11820 #pragma omp section
11821 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
11822 for (int i
= 0; i
< 10; ++i
)
11825 #pragma omp sections
11827 #pragma omp section
11828 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
11829 for (int i
= 0; i
< 10; ++i
)
11832 #pragma omp sections
11834 #pragma omp section
11835 #pragma omp target teams // OK
11838 #pragma omp sections
11840 #pragma omp section
11841 #pragma omp target teams distribute // OK
11842 for (int i
= 0; i
< 10; ++i
)
11845 #pragma omp sections
11847 #pragma omp section
11848 #pragma omp target teams distribute parallel for // OK
11849 for (int i
= 0; i
< 10; ++i
)
11852 #pragma omp sections
11854 #pragma omp section
11855 #pragma omp target teams distribute parallel for simd // OK
11856 for (int i
= 0; i
< 10; ++i
)
11859 #pragma omp sections
11861 #pragma omp section
11862 #pragma omp target teams distribute simd // OK
11863 for (int i
= 0; i
< 10; ++i
)
11867 // SINGLE DIRECTIVE
11870 #pragma omp for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
11871 for (int i
= 0; i
< 10; ++i
)
11877 for (int i
= 0; i
< 10; ++i
)
11882 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
11883 for (int i
= 0; i
< 10; ++i
)
11888 #pragma omp parallel
11889 for (int i
= 0; i
< 10; ++i
)
11894 #pragma omp single // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
11898 #pragma omp master // expected-error {{region cannot be closely nested inside 'single' region}}
11900 #pragma omp critical
11905 #pragma omp sections // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
11912 #pragma omp parallel
11914 #pragma omp single // OK
11918 #pragma omp for // OK
11919 for (int i
= 0; i
< 10; ++i
)
11921 #pragma omp for simd // OK
11922 for (int i
= 0; i
< 10; ++i
)
11924 #pragma omp sections // OK
11932 #pragma omp parallel for
11933 for (int i
= 0; i
< 10; ++i
)
11938 #pragma omp parallel for simd
11939 for (int i
= 0; i
< 10; ++i
)
11944 #pragma omp parallel sections
11958 #pragma omp taskyield
11963 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'single' region}}
11968 #pragma omp scan // expected-error {{region cannot be closely nested inside 'single' region}}
11973 #pragma omp taskwait
11983 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
11998 #pragma omp target parallel
12003 #pragma omp target parallel for
12004 for (int i
= 0; i
< 10; ++i
)
12009 #pragma omp target enter data map(to: a)
12014 #pragma omp target exit data map(from: a)
12019 #pragma omp teams // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
12024 #pragma omp taskloop
12025 for (int i
= 0; i
< 10; ++i
)
12030 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
12031 for (int i
= 0; i
< 10; ++i
)
12036 #pragma omp target update to(a)
12041 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
12042 for (int i
= 0; i
< 10; ++i
)
12047 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
12048 for (int i
= 0; i
< 10; ++i
)
12053 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
12054 for (int i
= 0; i
< 10; ++i
)
12059 #pragma omp target simd // OK
12060 for (int i
= 0; i
< 10; ++i
)
12065 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
12066 for (int i
= 0; i
< 10; ++i
)
12071 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
12072 for (int i
= 0; i
< 10; ++i
)
12077 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
12078 for (int i
= 0; i
< 10; ++i
)
12083 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'single' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
12084 for (int i
= 0; i
< 10; ++i
)
12089 #pragma omp target teams // oK
12094 #pragma omp target teams distribute // OK
12095 for (int i
= 0; i
< 10; ++i
)
12100 #pragma omp target teams distribute parallel for // OK
12101 for (int i
= 0; i
< 10; ++i
)
12106 #pragma omp target teams distribute parallel for simd // OK
12107 for (int i
= 0; i
< 10; ++i
)
12112 #pragma omp target teams distribute simd // OK
12113 for (int i
= 0; i
< 10; ++i
)
12117 // MASTER DIRECTIVE
12120 #pragma omp for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
12121 for (int i
= 0; i
< 10; ++i
)
12127 for (int i
= 0; i
< 10; ++i
)
12132 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
12133 for (int i
= 0; i
< 10; ++i
)
12138 #pragma omp parallel
12139 for (int i
= 0; i
< 10; ++i
)
12142 #pragma omp parallel master
12144 for (int i
= 0; i
< 10; ++i
)
12149 #pragma omp single // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
12156 #pragma omp master // OK, though second 'master' is redundant
12163 #pragma omp critical
12170 #pragma omp sections // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
12177 #pragma omp parallel
12179 #pragma omp master // OK
12183 #pragma omp for // OK
12184 for (int i
= 0; i
< 10; ++i
)
12186 #pragma omp for simd // OK
12187 for (int i
= 0; i
< 10; ++i
)
12189 #pragma omp sections // OK
12197 #pragma omp parallel master
12204 #pragma omp parallel for
12205 for (int i
= 0; i
< 10; ++i
)
12210 #pragma omp parallel for simd
12211 for (int i
= 0; i
< 10; ++i
)
12216 #pragma omp parallel sections
12230 #pragma omp taskyield
12235 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'master' region}}
12240 #pragma omp scan // expected-error {{region cannot be closely nested inside 'master' region}}
12245 #pragma omp taskwait
12255 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
12270 #pragma omp target parallel
12275 #pragma omp target parallel for
12276 for (int i
= 0; i
< 10; ++i
)
12281 #pragma omp target enter data map(to: a)
12286 #pragma omp target exit data map(from: a)
12291 #pragma omp teams // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
12296 #pragma omp taskloop
12297 for (int i
= 0; i
< 10; ++i
)
12302 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
12303 for (int i
= 0; i
< 10; ++i
)
12308 #pragma omp target update to(a)
12313 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
12314 for (int i
= 0; i
< 10; ++i
)
12319 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
12320 for (int i
= 0; i
< 10; ++i
)
12325 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
12326 for (int i
= 0; i
< 10; ++i
)
12331 #pragma omp target simd // OK
12332 for (int i
= 0; i
< 10; ++i
)
12337 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
12338 for (int i
= 0; i
< 10; ++i
)
12343 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
12344 for (int i
= 0; i
< 10; ++i
)
12349 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
12350 for (int i
= 0; i
< 10; ++i
)
12355 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'master' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
12356 for (int i
= 0; i
< 10; ++i
)
12361 #pragma omp target teams // OK
12366 #pragma omp target teams distribute // OK
12367 for (int i
= 0; i
< 10; ++i
)
12372 #pragma omp target teams distribute parallel for // OK
12373 for (int i
= 0; i
< 10; ++i
)
12378 #pragma omp target teams distribute parallel for simd // OK
12379 for (int i
= 0; i
< 10; ++i
)
12384 #pragma omp target teams distribute simd // OK
12385 for (int i
= 0; i
< 10; ++i
)
12389 // CRITICAL DIRECTIVE
12390 #pragma omp critical
12392 #pragma omp for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
12393 for (int i
= 0; i
< 10; ++i
)
12396 #pragma omp critical
12399 for (int i
= 0; i
< 10; ++i
)
12402 #pragma omp critical
12404 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
12405 for (int i
= 0; i
< 10; ++i
)
12408 #pragma omp critical
12410 #pragma omp parallel
12411 for (int i
= 0; i
< 10; ++i
)
12414 #pragma omp critical
12416 #pragma omp single // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
12421 #pragma omp critical
12423 #pragma omp master // OK, though second 'master' is redundant
12428 #pragma omp critical
12430 #pragma omp critical
12435 #pragma omp critical
12437 #pragma omp sections // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
12442 #pragma omp critical
12444 #pragma omp parallel
12446 #pragma omp master // OK
12450 #pragma omp for // OK
12451 for (int i
= 0; i
< 10; ++i
)
12453 #pragma omp for simd // OK
12454 for (int i
= 0; i
< 10; ++i
)
12456 #pragma omp sections // OK
12462 #pragma omp critical
12464 #pragma omp parallel for
12465 for (int i
= 0; i
< 10; ++i
)
12468 #pragma omp critical
12470 #pragma omp parallel for simd
12471 for (int i
= 0; i
< 10; ++i
)
12474 #pragma omp critical
12476 #pragma omp parallel sections
12481 #pragma omp critical
12488 #pragma omp critical
12490 #pragma omp taskyield
12493 #pragma omp critical
12495 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'critical' region}}
12498 #pragma omp critical
12500 #pragma omp scan // expected-error {{region cannot be closely nested inside 'critical' region}}
12503 #pragma omp critical
12505 #pragma omp taskwait
12508 #pragma omp critical(Belka)
12510 #pragma omp critical(Strelka)
12513 #pragma omp critical(Tuzik) // expected-note {{previous 'critical' region starts here}}
12515 #pragma omp critical(grelka) // expected-note {{previous 'critical' region starts here}}
12517 #pragma omp critical(Tuzik) // expected-error {{cannot nest 'critical' regions having the same name 'Tuzik'}}
12519 #pragma omp parallel
12520 #pragma omp critical(grelka) // expected-error {{cannot nest 'critical' regions having the same name 'grelka'}}
12527 #pragma omp critical
12532 #pragma omp critical
12534 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
12537 #pragma omp critical
12542 #pragma omp critical
12547 #pragma omp critical
12549 #pragma omp target parallel
12552 #pragma omp critical
12554 #pragma omp target parallel for
12555 for (int i
= 0; i
< 10; ++i
)
12558 #pragma omp critical
12560 #pragma omp target enter data map(to: a)
12563 #pragma omp critical
12565 #pragma omp target exit data map(from: a)
12568 #pragma omp critical
12570 #pragma omp teams // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
12573 #pragma omp critical
12575 #pragma omp taskloop
12576 for (int i
= 0; i
< 10; ++i
)
12579 #pragma omp critical
12581 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
12582 for (int i
= 0; i
< 10; ++i
)
12585 #pragma omp critical
12587 #pragma omp target update to(a)
12590 #pragma omp critical
12592 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
12593 for (int i
= 0; i
< 10; ++i
)
12596 #pragma omp critical
12598 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
12599 for (int i
= 0; i
< 10; ++i
)
12602 #pragma omp critical
12604 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
12605 for (int i
= 0; i
< 10; ++i
)
12608 #pragma omp critical
12610 #pragma omp target simd // OK
12611 for (int i
= 0; i
< 10; ++i
)
12614 #pragma omp critical
12616 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
12617 for (int i
= 0; i
< 10; ++i
)
12620 #pragma omp critical
12622 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
12623 for (int i
= 0; i
< 10; ++i
)
12626 #pragma omp critical
12628 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
12629 for (int i
= 0; i
< 10; ++i
)
12632 #pragma omp critical
12634 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'critical' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
12635 for (int i
= 0; i
< 10; ++i
)
12638 #pragma omp critical
12640 #pragma omp target teams // OK
12643 #pragma omp critical
12645 #pragma omp target teams distribute // OK
12646 for (int i
= 0; i
< 10; ++i
)
12649 #pragma omp critical
12651 #pragma omp target teams distribute parallel for // OK
12652 for (int i
= 0; i
< 10; ++i
)
12655 #pragma omp critical
12657 #pragma omp target teams distribute parallel for simd // OK
12658 for (int i
= 0; i
< 10; ++i
)
12661 #pragma omp critical
12663 #pragma omp target teams distribute simd // OK
12664 for (int i
= 0; i
< 10; ++i
)
12668 // PARALLEL FOR DIRECTIVE
12669 #pragma omp parallel for
12670 for (int i
= 0; i
< 10; ++i
) {
12671 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
12672 for (int i
= 0; i
< 10; ++i
)
12675 #pragma omp parallel for
12676 for (int i
= 0; i
< 10; ++i
) {
12678 for (int i
= 0; i
< 10; ++i
)
12681 #pragma omp parallel for
12682 for (int i
= 0; i
< 10; ++i
) {
12683 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
12684 for (int i
= 0; i
< 10; ++i
)
12688 #pragma omp parallel for
12689 for (int i
= 0; i
< 10; ++i
) {
12690 #pragma omp parallel
12691 for (int i
= 0; i
< 10; ++i
)
12694 #pragma omp parallel for
12695 for (int i
= 0; i
< 10; ++i
) {
12696 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
12701 #pragma omp parallel for
12702 for (int i
= 0; i
< 10; ++i
) {
12703 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a parallel for region}}
12708 #pragma omp parallel for
12709 for (int i
= 0; i
< 10; ++i
) {
12710 #pragma omp single // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
12714 #pragma omp master // expected-error {{region cannot be closely nested inside 'parallel for' region}}
12718 #pragma omp critical
12723 #pragma omp parallel for
12724 for (int i
= 0; i
< 10; ++i
) {
12725 #pragma omp parallel
12727 #pragma omp single // OK
12731 #pragma omp master // OK
12735 #pragma omp critical // OK
12739 #pragma omp for // OK
12740 for (int i
= 0; i
< 10; ++i
)
12742 #pragma omp for simd // OK
12743 for (int i
= 0; i
< 10; ++i
)
12745 #pragma omp sections // OK
12751 #pragma omp parallel for
12752 for (int i
= 0; i
< 10; ++i
) {
12753 #pragma omp parallel for
12754 for (int i
= 0; i
< 10; ++i
)
12757 #pragma omp parallel for
12758 for (int i
= 0; i
< 10; ++i
) {
12759 #pragma omp parallel for simd
12760 for (int i
= 0; i
< 10; ++i
)
12763 #pragma omp parallel for
12764 for (int i
= 0; i
< 10; ++i
) {
12765 #pragma omp parallel sections
12770 #pragma omp parallel for
12771 for (int i
= 0; i
< 10; ++i
) {
12777 #pragma omp parallel for
12778 for (int i
= 0; i
< 10; ++i
) {
12779 #pragma omp taskyield
12782 #pragma omp parallel for
12783 for (int i
= 0; i
< 10; ++i
) {
12784 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel for' region}}
12787 #pragma omp parallel for
12788 for (int i
= 0; i
< 10; ++i
) {
12789 #pragma omp scan // omp45-error {{region cannot be closely nested inside 'parallel for' region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
12792 #pragma omp parallel for
12793 for (int i
= 0; i
< 10; ++i
) {
12794 #pragma omp taskwait
12797 #pragma omp parallel for
12798 for (int i
= 0; i
< 10; ++i
) {
12802 #pragma omp parallel for
12803 for (int i
= 0; i
< 10; ++i
) {
12804 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
12807 #pragma omp parallel for ordered
12808 for (int i
= 0; i
< 10; ++i
) {
12809 #pragma omp ordered // OK
12812 #pragma omp parallel for
12813 for (int i
= 0; i
< 10; ++i
) {
12817 #pragma omp parallel for
12818 for (int i
= 0; i
< 10; ++i
) {
12822 #pragma omp parallel for
12823 for (int i
= 0; i
< 10; ++i
) {
12824 #pragma omp target parallel
12827 #pragma omp parallel for
12828 for (int i
= 0; i
< 10; ++i
) {
12829 #pragma omp target parallel for
12830 for (int i
= 0; i
< 10; ++i
)
12833 #pragma omp parallel for
12834 for (int i
= 0; i
< 10; ++i
) {
12835 #pragma omp target enter data map(to: a)
12838 #pragma omp parallel for
12839 for (int i
= 0; i
< 10; ++i
) {
12840 #pragma omp target exit data map(from: a)
12843 #pragma omp parallel for
12844 for (int i
= 0; i
< 10; ++i
) {
12845 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
12848 #pragma omp parallel for
12849 for (int i
= 0; i
< 10; ++i
) {
12850 #pragma omp taskloop
12851 for (int i
= 0; i
< 10; ++i
)
12854 #pragma omp parallel for
12855 for (int i
= 0; i
< 10; ++i
) {
12856 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
12857 for (int j
= 0; j
< 10; ++j
)
12860 #pragma omp parallel for
12861 for (int i
= 0; i
< 10; ++i
) {
12862 #pragma omp target update to(a)
12865 #pragma omp parallel for
12866 for (int i
= 0; i
< 10; ++i
) {
12867 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
12868 for (int j
= 0; j
< 10; ++j
)
12871 #pragma omp parallel for
12872 for (int i
= 0; i
< 10; ++i
) {
12873 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
12874 for (int j
= 0; j
< 10; ++j
)
12877 #pragma omp parallel for
12878 for (int i
= 0; i
< 10; ++i
) {
12879 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
12880 for (int j
= 0; j
< 10; ++j
)
12883 #pragma omp parallel for
12884 for (int i
= 0; i
< 10; ++i
) {
12885 #pragma omp target simd // OK
12886 for (int j
= 0; j
< 10; ++j
)
12889 #pragma omp parallel for
12890 for (int i
= 0; i
< 10; ++i
) {
12891 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
12892 for (int j
= 0; j
< 10; ++j
)
12895 #pragma omp parallel for
12896 for (int i
= 0; i
< 10; ++i
) {
12897 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
12898 for (int j
= 0; j
< 10; ++j
)
12901 #pragma omp parallel for
12902 for (int i
= 0; i
< 10; ++i
) {
12903 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
12904 for (int j
= 0; j
< 10; ++j
)
12907 #pragma omp parallel for
12908 for (int i
= 0; i
< 10; ++i
) {
12909 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
12910 for (int j
= 0; j
< 10; ++j
)
12913 #pragma omp parallel for
12914 for (int i
= 0; i
< 10; ++i
) {
12915 #pragma omp target teams // OK
12918 #pragma omp parallel for
12919 for (int i
= 0; i
< 10; ++i
) {
12920 #pragma omp target teams distribute // OK
12921 for (int j
= 0; j
< 10; ++j
)
12924 #pragma omp parallel for
12925 for (int i
= 0; i
< 10; ++i
) {
12926 #pragma omp target teams distribute parallel for // OK
12927 for (int j
= 0; j
< 10; ++j
)
12930 #pragma omp parallel for
12931 for (int i
= 0; i
< 10; ++i
) {
12932 #pragma omp target teams distribute parallel for simd // OK
12933 for (int j
= 0; j
< 10; ++j
)
12936 #pragma omp parallel for
12937 for (int i
= 0; i
< 10; ++i
) {
12938 #pragma omp target teams distribute simd // OK
12939 for (int j
= 0; j
< 10; ++j
)
12943 // PARALLEL FOR SIMD DIRECTIVE
12944 #pragma omp parallel for simd
12945 for (int i
= 0; i
< 10; ++i
) {
12946 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12947 for (int i
= 0; i
< 10; ++i
)
12950 #pragma omp parallel for simd
12951 for (int i
= 0; i
< 10; ++i
) {
12952 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
12953 for (int i
= 0; i
< 10; ++i
)
12956 #pragma omp parallel for simd
12957 for (int i
= 0; i
< 10; ++i
) {
12958 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12959 for (int i
= 0; i
< 10; ++i
)
12962 #pragma omp parallel for simd
12963 for (int i
= 0; i
< 10; ++i
) {
12964 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12965 for (int i
= 0; i
< 10; ++i
)
12968 #pragma omp parallel for simd
12969 for (int i
= 0; i
< 10; ++i
) {
12970 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12975 #pragma omp parallel for simd
12976 for (int i
= 0; i
< 10; ++i
) {
12977 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12982 #pragma omp parallel for simd
12983 for (int i
= 0; i
< 10; ++i
) {
12984 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12990 #pragma omp parallel for simd
12991 for (int i
= 0; i
< 10; ++i
) {
12992 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
12998 #pragma omp parallel for simd
12999 for (int i
= 0; i
< 10; ++i
) {
13000 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13006 #pragma omp parallel for simd
13007 for (int i
= 0; i
< 10; ++i
) {
13008 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13015 for (int i
= 0; i
< 10; ++i
)
13017 #pragma omp for simd
13018 for (int i
= 0; i
< 10; ++i
)
13020 #pragma omp sections
13026 #pragma omp parallel for simd
13027 for (int i
= 0; i
< 10; ++i
) {
13028 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13029 for (int i
= 0; i
< 10; ++i
)
13032 #pragma omp parallel for simd
13033 for (int i
= 0; i
< 10; ++i
) {
13034 #pragma omp parallel for simd// expected-error {{OpenMP constructs may not be nested inside a simd region}}
13035 for (int i
= 0; i
< 10; ++i
)
13038 #pragma omp parallel for simd
13039 for (int i
= 0; i
< 10; ++i
) {
13040 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13045 #pragma omp parallel for simd
13046 for (int i
= 0; i
< 10; ++i
) {
13047 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13052 #pragma omp parallel for simd
13053 for (int i
= 0; i
< 10; ++i
) {
13054 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13057 #pragma omp parallel for simd
13058 for (int i
= 0; i
< 10; ++i
) {
13059 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13062 #pragma omp parallel for simd
13063 for (int i
= 0; i
< 10; ++i
) {
13064 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}} omp51-error {{exactly one of 'inclusive' or 'exclusive' clauses is expected}}
13067 #pragma omp parallel for simd
13068 for (int i
= 0; i
< 10; ++i
) {
13069 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13072 #pragma omp parallel for simd
13073 for (int i
= 0; i
< 10; ++i
) {
13074 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13077 #pragma omp parallel for simd
13078 for (int i
= 0; i
< 10; ++i
) {
13079 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13082 #pragma omp parallel for simd
13083 for (int i
= 0; i
< 10; ++i
) {
13084 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13087 #pragma omp parallel for simd
13088 for (int i
= 0; i
< 10; ++i
) {
13089 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
13092 #pragma omp parallel for simd
13093 for (int i
= 0; i
< 10; ++i
) {
13094 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13097 #pragma omp parallel for simd
13098 for (int i
= 0; i
< 10; ++i
) {
13099 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13102 #pragma omp parallel for simd
13103 for (int i
= 0; i
< 10; ++i
) {
13104 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13105 for (int i
= 0; i
< 10; ++i
)
13108 #pragma omp parallel for simd
13109 for (int i
= 0; i
< 10; ++i
) {
13110 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13113 #pragma omp parallel for simd
13114 for (int i
= 0; i
< 10; ++i
) {
13115 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13118 #pragma omp parallel for simd
13119 for (int i
= 0; i
< 10; ++i
) {
13120 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13123 #pragma omp parallel for simd
13124 for (int i
= 0; i
< 10; ++i
) {
13125 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13126 for (int i
= 0; i
< 10; ++i
)
13129 #pragma omp parallel for simd
13130 for (int i
= 0; i
< 10; ++i
) {
13131 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13132 for (int j
= 0; j
< 10; ++j
)
13135 #pragma omp parallel for simd
13136 for (int i
= 0; i
< 10; ++i
) {
13137 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13140 #pragma omp parallel for simd
13141 for (int i
= 0; i
< 10; ++i
) {
13142 #pragma omp distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13143 for (int j
= 0; j
< 10; ++j
)
13146 #pragma omp parallel for simd
13147 for (int i
= 0; i
< 10; ++i
) {
13148 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13149 for (int j
= 0; j
< 10; ++j
)
13152 #pragma omp parallel for simd
13153 for (int i
= 0; i
< 10; ++i
) {
13154 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13155 for (int j
= 0; j
< 10; ++j
)
13158 #pragma omp parallel for simd
13159 for (int i
= 0; i
< 10; ++i
) {
13160 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13161 for (int j
= 0; j
< 10; ++j
)
13164 #pragma omp parallel for simd
13165 for (int i
= 0; i
< 10; ++i
) {
13166 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13167 for (int j
= 0; j
< 10; ++j
)
13170 #pragma omp parallel for simd
13171 for (int i
= 0; i
< 10; ++i
) {
13172 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13173 for (int j
= 0; j
< 10; ++j
)
13176 #pragma omp parallel for simd
13177 for (int i
= 0; i
< 10; ++i
) {
13178 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13179 for (int j
= 0; j
< 10; ++j
)
13182 #pragma omp parallel for simd
13183 for (int i
= 0; i
< 10; ++i
) {
13184 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13185 for (int j
= 0; j
< 10; ++j
)
13188 #pragma omp parallel for simd
13189 for (int i
= 0; i
< 10; ++i
) {
13190 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13193 #pragma omp parallel for simd
13194 for (int i
= 0; i
< 10; ++i
) {
13195 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13196 for (int j
= 0; j
< 10; ++j
)
13199 #pragma omp parallel for simd
13200 for (int i
= 0; i
< 10; ++i
) {
13201 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13202 for (int j
= 0; j
< 10; ++j
)
13205 #pragma omp parallel for simd
13206 for (int i
= 0; i
< 10; ++i
) {
13207 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13208 for (int j
= 0; j
< 10; ++j
)
13211 #pragma omp parallel for simd
13212 for (int i
= 0; i
< 10; ++i
) {
13213 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
13214 for (int j
= 0; j
< 10; ++j
)
13218 // PARALLEL SECTIONS DIRECTIVE
13219 #pragma omp parallel sections
13221 #pragma omp for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
13222 for (int i
= 0; i
< 10; ++i
)
13225 #pragma omp parallel sections
13228 for (int i
= 0; i
< 10; ++i
)
13231 #pragma omp parallel sections
13233 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
13234 for (int i
= 0; i
< 10; ++i
)
13237 #pragma omp parallel sections
13239 #pragma omp parallel
13240 for (int i
= 0; i
< 10; ++i
)
13243 #pragma omp parallel sections
13245 #pragma omp sections // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
13250 #pragma omp parallel sections
13252 #pragma omp section
13257 #pragma omp parallel sections
13259 #pragma omp section
13261 #pragma omp single // expected-error {{region cannot be closely nested inside 'section' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
13263 #pragma omp master // expected-error {{region cannot be closely nested inside 'section' region}}
13265 #pragma omp critical
13269 #pragma omp parallel sections
13271 #pragma omp parallel
13273 #pragma omp single // OK
13277 #pragma omp master // OK
13281 #pragma omp critical // OK
13285 #pragma omp for // OK
13286 for (int i
= 0; i
< 10; ++i
)
13288 #pragma omp for simd // OK
13289 for (int i
= 0; i
< 10; ++i
)
13291 #pragma omp sections // OK
13297 #pragma omp parallel sections
13299 #pragma omp parallel for
13300 for (int i
= 0; i
< 10; ++i
)
13303 #pragma omp parallel sections
13305 #pragma omp parallel for simd
13306 for (int i
= 0; i
< 10; ++i
)
13309 #pragma omp parallel sections
13311 #pragma omp parallel sections
13316 #pragma omp parallel sections
13323 #pragma omp parallel sections
13325 #pragma omp taskyield
13327 #pragma omp parallel sections
13329 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
13331 #pragma omp parallel sections
13333 #pragma omp scan // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
13335 #pragma omp parallel sections
13337 #pragma omp taskwait
13339 #pragma omp parallel sections
13343 #pragma omp parallel sections
13345 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
13348 #pragma omp parallel sections
13353 #pragma omp parallel sections
13358 #pragma omp parallel sections
13360 #pragma omp target parallel
13363 #pragma omp parallel sections
13365 #pragma omp target parallel for
13366 for (int i
= 0; i
< 10; ++i
)
13369 #pragma omp parallel sections
13371 #pragma omp target enter data map(to: a)
13373 #pragma omp parallel sections
13375 #pragma omp target exit data map(from: a)
13377 #pragma omp parallel sections
13379 #pragma omp teams // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
13382 #pragma omp parallel sections
13384 #pragma omp taskloop
13385 for (int i
= 0; i
< 10; ++i
)
13388 #pragma omp parallel sections
13390 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
13391 for (int i
= 0; i
< 10; ++i
)
13394 #pragma omp parallel sections
13396 #pragma omp target update to(a)
13398 #pragma omp parallel sections
13400 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
13401 for (int i
= 0; i
< 10; ++i
)
13404 #pragma omp parallel sections
13406 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
13407 for (int i
= 0; i
< 10; ++i
)
13410 #pragma omp parallel sections
13412 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
13413 for (int i
= 0; i
< 10; ++i
)
13416 #pragma omp parallel sections
13418 #pragma omp target simd // OK
13419 for (int i
= 0; i
< 10; ++i
)
13422 #pragma omp parallel sections
13424 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
13425 for (int i
= 0; i
< 10; ++i
)
13428 #pragma omp parallel sections
13430 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
13431 for (int i
= 0; i
< 10; ++i
)
13434 #pragma omp parallel sections
13436 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
13437 for (int i
= 0; i
< 10; ++i
)
13440 #pragma omp parallel sections
13442 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'parallel sections' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
13443 for (int i
= 0; i
< 10; ++i
)
13446 #pragma omp parallel sections
13448 #pragma omp target teams // OK
13451 #pragma omp parallel sections
13453 #pragma omp target teams distribute // OK
13454 for (int i
= 0; i
< 10; ++i
)
13457 #pragma omp parallel sections
13459 #pragma omp target teams distribute parallel for // OK
13460 for (int i
= 0; i
< 10; ++i
)
13463 #pragma omp parallel sections
13465 #pragma omp target teams distribute parallel for simd // OK
13466 for (int i
= 0; i
< 10; ++i
)
13469 #pragma omp parallel sections
13471 #pragma omp target teams distribute simd // OK
13472 for (int i
= 0; i
< 10; ++i
)
13478 #pragma omp for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
13479 for (int i
= 0; i
< 10; ++i
)
13483 for (int i
= 0; i
< 10; ++i
)
13486 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
13487 for (int i
= 0; i
< 10; ++i
)
13490 #pragma omp sections // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
13495 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a task region}}
13500 #pragma omp single // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
13503 #pragma omp master // expected-error {{region cannot be closely nested inside 'task' region}}
13506 #pragma omp critical
13509 #pragma omp parallel for
13510 for (int i
= 0; i
< 10; ++i
)
13513 #pragma omp parallel for simd
13514 for (int i
= 0; i
< 10; ++i
)
13517 #pragma omp parallel sections
13528 #pragma omp taskyield
13533 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'task' region}}
13538 #pragma omp scan // expected-error {{region cannot be closely nested inside 'task' region}}
13543 #pragma omp taskwait
13553 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
13568 #pragma omp target parallel
13572 #pragma omp target parallel for
13573 for (int i
= 0; i
< 10; ++i
)
13577 #pragma omp target enter data map(to: a)
13582 #pragma omp target exit data map(from: a)
13587 #pragma omp teams // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
13592 #pragma omp taskloop
13593 for (int i
= 0; i
< 10; ++i
)
13598 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
13599 for (int i
= 0; i
< 10; ++i
)
13604 #pragma omp target update to(a)
13609 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
13610 for (int i
= 0; i
< 10; ++i
)
13615 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
13616 for (int i
= 0; i
< 10; ++i
)
13621 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
13622 for (int i
= 0; i
< 10; ++i
)
13627 #pragma omp target simd // OK
13628 for (int i
= 0; i
< 10; ++i
)
13633 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
13634 for (int i
= 0; i
< 10; ++i
)
13639 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
13640 for (int i
= 0; i
< 10; ++i
)
13645 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
13646 for (int i
= 0; i
< 10; ++i
)
13651 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'task' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
13652 for (int i
= 0; i
< 10; ++i
)
13657 #pragma omp target teams // OK
13662 #pragma omp target teams distribute // OK
13663 for (int i
= 0; i
< 10; ++i
)
13668 #pragma omp target teams distribute parallel for // OK
13669 for (int i
= 0; i
< 10; ++i
)
13674 #pragma omp target teams distribute parallel for simd // OK
13675 for (int i
= 0; i
< 10; ++i
)
13680 #pragma omp target teams distribute simd // OK
13681 for (int i
= 0; i
< 10; ++i
)
13685 // ATOMIC DIRECTIVE
13687 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13688 // expected-note@+1 {{expected an expression statement}}
13690 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13691 for (int i
= 0; i
< 10; ++i
)
13695 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13696 // expected-note@+1 {{expected an expression statement}}
13698 #pragma omp simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13699 for (int i
= 0; i
< 10; ++i
)
13703 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13704 // expected-note@+1 {{expected an expression statement}}
13706 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13707 for (int i
= 0; i
< 10; ++i
)
13711 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13712 // expected-note@+1 {{expected an expression statement}}
13714 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13715 for (int i
= 0; i
< 10; ++i
)
13719 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13720 // expected-note@+1 {{expected an expression statement}}
13722 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13728 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13729 // expected-note@+1 {{expected an expression statement}}
13731 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13737 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13738 // expected-note@+1 {{expected an expression statement}}
13740 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13746 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13747 // expected-note@+1 {{expected an expression statement}}
13749 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13755 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13756 // expected-note@+1 {{expected an expression statement}}
13758 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13764 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13765 // expected-note@+1 {{expected an expression statement}}
13767 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13768 for (int i
= 0; i
< 10; ++i
)
13772 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13773 // expected-note@+1 {{expected an expression statement}}
13775 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13776 for (int i
= 0; i
< 10; ++i
)
13780 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13781 // expected-note@+1 {{expected an expression statement}}
13783 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13789 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13790 // expected-note@+1 {{expected an expression statement}}
13792 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13798 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13799 // expected-note@+1 {{expected an expression statement}}
13801 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13805 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13806 // expected-note@+1 {{expected an expression statement}}
13808 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13812 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13813 // expected-note@+1 {{expected an expression statement}}
13815 #pragma omp scan // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13819 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13820 // expected-note@+1 {{expected an expression statement}}
13822 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13826 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13827 // expected-note@+1 {{expected an expression statement}}
13829 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13833 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13834 // expected-note@+1 {{expected an expression statement}}
13836 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13840 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13841 // expected-note@+1 {{expected an expression statement}}
13843 #pragma omp atomic // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13847 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13848 // expected-note@+1 {{expected an expression statement}}
13850 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13854 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13855 // expected-note@+1 {{expected an expression statement}}
13857 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13861 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13862 // expected-note@+1 {{expected an expression statement}}
13864 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13865 for (int i
= 0; i
< 10; ++i
)
13869 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13870 // expected-note@+1 {{expected an expression statement}}
13872 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13876 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13877 // expected-note@+1 {{expected an expression statement}}
13879 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13883 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13884 // expected-note@+1 {{expected an expression statement}}
13886 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13890 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13891 // expected-note@+1 {{expected an expression statement}}
13893 #pragma omp taskloop // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13894 for (int i
= 0; i
< 10; ++i
)
13898 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13899 // expected-note@+1 {{expected an expression statement}}
13901 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13902 for (int i
= 0; i
< 10; ++i
)
13906 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13907 // expected-note@+1 {{expected an expression statement}}
13909 #pragma omp target update // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13912 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13913 // expected-note@+1 {{expected an expression statement}}
13915 #pragma omp distribute parallel for// expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13916 for (int i
= 0; i
< 10; ++i
)
13920 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13921 // expected-note@+1 {{expected an expression statement}}
13923 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13924 for (int i
= 0; i
< 10; ++i
)
13928 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13929 // expected-note@+1 {{expected an expression statement}}
13931 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13932 for (int i
= 0; i
< 10; ++i
)
13936 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13937 // expected-note@+1 {{expected an expression statement}}
13939 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13940 for (int i
= 0; i
< 10; ++i
)
13944 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13945 // expected-note@+1 {{expected an expression statement}}
13947 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13948 for (int i
= 0; i
< 10; ++i
)
13952 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13953 // expected-note@+1 {{expected an expression statement}}
13955 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13956 for (int i
= 0; i
< 10; ++i
)
13960 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13961 // expected-note@+1 {{expected an expression statement}}
13963 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13964 for (int i
= 0; i
< 10; ++i
)
13968 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13969 // expected-note@+1 {{expected an expression statement}}
13971 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13972 for (int i
= 0; i
< 10; ++i
)
13976 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13977 // expected-note@+1 {{expected an expression statement}}
13979 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13983 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13984 // expected-note@+1 {{expected an expression statement}}
13986 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13987 for (int i
= 0; i
< 10; ++i
)
13991 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
13992 // expected-note@+1 {{expected an expression statement}}
13994 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
13995 for (int i
= 0; i
< 10; ++i
)
13999 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
14000 // expected-note@+1 {{expected an expression statement}}
14002 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
14003 for (int i
= 0; i
< 10; ++i
)
14007 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
14008 // expected-note@+1 {{expected an expression statement}}
14010 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
14011 for (int i
= 0; i
< 10; ++i
)
14015 // TARGET DIRECTIVE
14017 #pragma omp parallel
14021 for (int i
= 0; i
< 10; ++i
)
14025 for (int i
= 0; i
< 10; ++i
)
14028 #pragma omp for simd
14029 for (int i
= 0; i
< 10; ++i
)
14032 #pragma omp sections
14037 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target region}}
14051 #pragma omp critical
14056 #pragma omp parallel for
14057 for (int i
= 0; i
< 10; ++i
)
14060 #pragma omp parallel for simd
14061 for (int i
= 0; i
< 10; ++i
)
14064 #pragma omp parallel sections
14075 #pragma omp taskyield
14080 #pragma omp barrier
14085 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
14090 #pragma omp taskwait
14100 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
14110 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
14115 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
14119 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
14120 for (int i
= 0; i
< 10; ++i
)
14124 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
14128 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
14135 #pragma omp target // expected-error {{target construct with nested teams region contains statements outside of the teams construct}}
14137 #pragma omp teams // expected-note {{directive outside teams construct here}}
14139 #pragma omp teams // expected-note {{nested teams construct here}}
14142 #pragma omp target // expected-error {{target construct with nested teams region contains statements outside of the teams construct}}
14144 ++a
; // expected-note {{statement outside teams construct here}}
14145 #pragma omp teams // expected-note {{nested teams construct here}}
14150 #pragma omp taskloop
14151 for (int i
= 0; i
< 10; ++i
)
14156 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
14157 for (int i
= 0; i
< 10; ++i
)
14161 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
14162 // expected-note@+1 {{expected an expression statement}}
14164 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
14169 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
14170 for (int i
= 0; i
< 10; ++i
)
14175 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
14176 for (int i
= 0; i
< 10; ++i
)
14181 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
14182 for (int i
= 0; i
< 10; ++i
)
14187 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
14188 for (int i
= 0; i
< 10; ++i
)
14193 #pragma omp teams distribute // OK
14194 for (int i
= 0; i
< 10; ++i
)
14199 #pragma omp teams distribute simd // OK
14200 for (int i
= 0; i
< 10; ++i
)
14205 #pragma omp teams distribute parallel for simd // OK
14206 for (int i
= 0; i
< 10; ++i
)
14211 #pragma omp teams distribute parallel for // OK
14212 for (int i
= 0; i
< 10; ++i
)
14217 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
14222 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
14223 for (int i
= 0; i
< 10; ++i
)
14228 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
14229 for (int i
= 0; i
< 10; ++i
)
14234 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
14235 for (int i
= 0; i
< 10; ++i
)
14240 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
14241 for (int i
= 0; i
< 10; ++i
)
14245 // TARGET PARALLEL DIRECTIVE
14246 #pragma omp target parallel
14247 #pragma omp parallel
14249 #pragma omp target parallel
14251 for (int i
= 0; i
< 10; ++i
)
14253 #pragma omp target parallel
14255 for (int i
= 0; i
< 10; ++i
)
14257 #pragma omp target parallel
14258 #pragma omp for simd
14259 for (int i
= 0; i
< 10; ++i
)
14261 #pragma omp target parallel
14262 #pragma omp sections
14266 #pragma omp target parallel
14267 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target parallel region}}
14271 #pragma omp target parallel
14275 #pragma omp target parallel
14280 #pragma omp target parallel
14281 #pragma omp critical
14285 #pragma omp target parallel
14286 #pragma omp parallel for
14287 for (int i
= 0; i
< 10; ++i
)
14289 #pragma omp target parallel
14290 #pragma omp parallel for simd
14291 for (int i
= 0; i
< 10; ++i
)
14293 #pragma omp target parallel
14294 #pragma omp parallel sections
14298 #pragma omp target parallel
14303 #pragma omp target parallel
14305 #pragma omp taskyield
14308 #pragma omp target parallel
14310 #pragma omp barrier
14313 #pragma omp target parallel
14315 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
14318 #pragma omp target parallel
14320 #pragma omp taskwait
14323 #pragma omp target parallel
14328 #pragma omp target parallel
14330 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
14333 #pragma omp target parallel
14338 #pragma omp target parallel
14340 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel' region}}
14343 #pragma omp target parallel
14345 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel' region}}
14348 #pragma omp target parallel
14349 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel' region}}
14350 for (int i
= 0; i
< 10; ++i
)
14352 #pragma omp target parallel
14354 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
14357 #pragma omp target parallel
14360 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
14363 #pragma omp target parallel
14365 #pragma omp taskloop
14366 for (int i
= 0; i
< 10; ++i
)
14369 #pragma omp target parallel
14371 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
14372 for (int i
= 0; i
< 10; ++i
)
14375 #pragma omp target parallel
14377 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target parallel' region}}
14379 #pragma omp target parallel
14381 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target parallel' region}}
14383 #pragma omp target parallel
14385 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel' region}}
14387 #pragma omp target parallel
14389 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
14390 for (int i
= 0; i
< 10; ++i
)
14393 #pragma omp target parallel
14395 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
14396 for (int i
= 0; i
< 10; ++i
)
14399 #pragma omp target parallel
14401 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
14402 for (int i
= 0; i
< 10; ++i
)
14405 #pragma omp target parallel
14407 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel' regio}}
14408 for (int i
= 0; i
< 10; ++i
)
14411 #pragma omp target parallel
14413 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
14414 for (int i
= 0; i
< 10; ++i
)
14417 #pragma omp target parallel
14419 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
14420 for (int i
= 0; i
< 10; ++i
)
14423 #pragma omp target parallel
14425 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
14426 for (int i
= 0; i
< 10; ++i
)
14429 #pragma omp target parallel
14431 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
14432 for (int i
= 0; i
< 10; ++i
)
14435 #pragma omp target parallel
14437 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel' region}}
14440 #pragma omp target parallel
14442 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target parallel' region}}
14443 for (int i
= 0; i
< 10; ++i
)
14446 #pragma omp target parallel
14448 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target parallel' region}}
14449 for (int i
= 0; i
< 10; ++i
)
14452 #pragma omp target parallel
14454 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target parallel' region}}
14455 for (int i
= 0; i
< 10; ++i
)
14458 #pragma omp target parallel
14460 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target parallel' region}}
14461 for (int i
= 0; i
< 10; ++i
)
14465 // TARGET PARALLEL FOR DIRECTIVE
14466 #pragma omp target parallel for
14467 for (int i
= 0; i
< 10; ++i
) {
14468 #pragma omp for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
14469 for (int i
= 0; i
< 10; ++i
)
14472 #pragma omp target parallel for
14473 for (int i
= 0; i
< 10; ++i
) {
14475 for (int i
= 0; i
< 10; ++i
)
14478 #pragma omp target parallel for
14479 for (int i
= 0; i
< 10; ++i
) {
14480 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
14481 for (int i
= 0; i
< 10; ++i
)
14484 #pragma omp target parallel for
14485 for (int i
= 0; i
< 10; ++i
) {
14486 #pragma omp parallel
14487 for (int i
= 0; i
< 10; ++i
)
14490 #pragma omp target parallel for
14491 for (int i
= 0; i
< 10; ++i
) {
14492 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
14497 #pragma omp target parallel for
14498 for (int i
= 0; i
< 10; ++i
) {
14499 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target parallel for region}}
14504 #pragma omp target parallel for
14505 for (int i
= 0; i
< 10; ++i
) {
14506 #pragma omp single // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
14512 #pragma omp target parallel for
14513 for (int i
= 0; i
< 10; ++i
) {
14514 #pragma omp master // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
14520 #pragma omp target parallel for
14521 for (int i
= 0; i
< 10; ++i
) {
14522 #pragma omp critical
14528 #pragma omp target parallel for
14529 for (int i
= 0; i
< 10; ++i
) {
14530 #pragma omp parallel
14532 #pragma omp single // OK
14536 #pragma omp for // OK
14537 for (int i
= 0; i
< 10; ++i
)
14539 #pragma omp for simd // OK
14540 for (int i
= 0; i
< 10; ++i
)
14542 #pragma omp sections // OK
14548 #pragma omp target parallel for
14549 for (int i
= 0; i
< 10; ++i
) {
14550 #pragma omp parallel for
14551 for (int i
= 0; i
< 10; ++i
)
14554 #pragma omp target parallel for
14555 for (int i
= 0; i
< 10; ++i
) {
14556 #pragma omp parallel for simd
14557 for (int i
= 0; i
< 10; ++i
)
14560 #pragma omp target parallel for
14561 for (int i
= 0; i
< 10; ++i
) {
14562 #pragma omp parallel sections
14567 #pragma omp target parallel for
14568 for (int i
= 0; i
< 10; ++i
) {
14574 #pragma omp target parallel for
14575 for (int i
= 0; i
< 10; ++i
) {
14576 #pragma omp taskyield
14579 #pragma omp target parallel for
14580 for (int i
= 0; i
< 10; ++i
) {
14581 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
14584 #pragma omp target parallel for
14585 for (int i
= 0; i
< 10; ++i
) {
14586 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target parallel for' region}}
14589 #pragma omp target parallel for
14590 for (int i
= 0; i
< 10; ++i
) {
14591 #pragma omp taskwait
14594 #pragma omp target parallel for
14595 for (int i
= 0; i
< 10; ++i
) {
14599 #pragma omp target parallel for
14600 for (int i
= 0; i
< 10; ++i
) {
14601 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
14604 #pragma omp target parallel for ordered
14605 for (int i
= 0; i
< 10; ++i
) {
14606 #pragma omp ordered // OK
14609 #pragma omp target parallel for
14610 for (int i
= 0; i
< 10; ++i
) {
14614 #pragma omp target parallel for
14615 for (int i
= 0; i
< 10; ++i
) {
14616 #pragma omp target // expected-error {{region cannot be nested inside 'target parallel for' region}}
14619 #pragma omp target parallel for
14620 for (int i
= 0; i
< 10; ++i
) {
14621 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target parallel for' region}}
14624 #pragma omp target parallel for
14625 for (int i
= 0; i
< 10; ++i
) {
14626 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target parallel for' region}}
14627 for (int i
= 0; i
< 10; ++i
)
14630 #pragma omp target parallel for
14631 for (int i
= 0; i
< 10; ++i
) {
14632 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
14635 #pragma omp target parallel for
14636 for (int i
= 0; i
< 10; ++i
) {
14637 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
14640 #pragma omp target parallel for
14641 for (int i
= 0; i
< 10; ++i
) {
14642 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
14645 #pragma omp target parallel for
14646 for (int i
= 0; i
< 10; ++i
) {
14647 #pragma omp taskloop
14648 for (int i
= 0; i
< 10; ++i
)
14651 #pragma omp target parallel for
14652 for (int i
= 0; i
< 10; ++i
) {
14653 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
14654 for (int j
= 0; j
< 10; ++j
)
14657 #pragma omp target parallel for
14658 for (int i
= 0; i
< 10; ++i
) {
14659 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target parallel for' region}}
14662 #pragma omp target parallel for
14663 for (int i
= 0; i
< 10; ++i
) {
14664 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
14665 for (int j
= 0; j
< 10; ++j
)
14668 #pragma omp target parallel for
14669 for (int i
= 0; i
< 10; ++i
) {
14670 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
14671 for (int j
= 0; j
< 10; ++j
)
14674 #pragma omp target parallel for
14675 for (int i
= 0; i
< 10; ++i
) {
14676 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
14677 for (int j
= 0; j
< 10; ++j
)
14680 #pragma omp target parallel for
14681 for (int i
= 0; i
< 10; ++i
) {
14682 #pragma omp target simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
14683 for (int j
= 0; j
< 10; ++j
)
14686 #pragma omp target parallel for
14687 for (int i
= 0; i
< 10; ++i
) {
14688 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
14689 for (int j
= 0; j
< 10; ++j
)
14692 #pragma omp target parallel for
14693 for (int i
= 0; i
< 10; ++i
) {
14694 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
14695 for (int j
= 0; j
< 10; ++j
)
14698 #pragma omp target parallel for
14699 for (int i
= 0; i
< 10; ++i
) {
14700 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
14701 for (int j
= 0; j
< 10; ++j
)
14704 #pragma omp target parallel for
14705 for (int i
= 0; i
< 10; ++i
) {
14706 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
14707 for (int j
= 0; j
< 10; ++j
)
14710 #pragma omp target parallel for
14711 for (int i
= 0; i
< 10; ++i
) {
14712 #pragma omp target teams // expected-error {{region cannot be nested inside 'target parallel for' region}}
14715 #pragma omp target parallel for
14716 for (int i
= 0; i
< 10; ++i
) {
14717 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target parallel for' region}}
14718 for (int j
= 0; j
< 10; ++j
)
14721 #pragma omp target parallel for
14722 for (int i
= 0; i
< 10; ++i
) {
14723 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target parallel for' region}}
14724 for (int j
= 0; j
< 10; ++j
)
14727 #pragma omp target parallel for
14728 for (int i
= 0; i
< 10; ++i
) {
14729 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
14730 for (int j
= 0; j
< 10; ++j
)
14733 #pragma omp target parallel for
14734 for (int i
= 0; i
< 10; ++i
) {
14735 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target parallel for' region}}
14736 for (int j
= 0; j
< 10; ++j
)
14743 #pragma omp parallel
14747 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
14748 for (int i
= 0; i
< 10; ++i
)
14752 #pragma omp simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp simd' directive into a parallel region?}}
14753 for (int i
= 0; i
< 10; ++i
)
14757 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
14758 for (int i
= 0; i
< 10; ++i
)
14762 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
14768 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams region}}
14774 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
14779 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp master' directive into a parallel region?}}
14785 #pragma omp critical // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp critical' directive into a parallel region?}}
14791 #pragma omp parallel for
14792 for (int i
= 0; i
< 10; ++i
)
14796 #pragma omp parallel for simd
14797 for (int i
= 0; i
< 10; ++i
)
14801 #pragma omp parallel sections
14807 #pragma omp task // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp task' directive into a parallel region?}}
14814 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskyield' directive into a parallel region?}}
14820 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp barrier' directive into a parallel region?}}
14826 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
14832 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskwait' directive into a parallel region?}}
14838 #pragma omp flush // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp flush' directive into a parallel region?}}
14844 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
14850 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp atomic' directive into a parallel region?}}
14856 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
14862 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
14867 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
14868 for (int i
= 0; i
< 10; ++i
)
14873 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
14878 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
14883 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
14889 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp taskloop' directive into a parallel region?}}
14890 for (int i
= 0; i
< 10; ++i
)
14895 #pragma omp distribute
14896 for (int i
= 0; i
< 10; ++i
)
14900 #pragma omp distribute
14901 for (int i
= 0; i
< 10; ++i
)
14903 #pragma omp distribute
14904 for (int j
= 0; j
< 10; ++j
)
14909 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
14914 #pragma omp distribute parallel for
14915 for (int i
= 0; i
< 10; ++i
)
14920 #pragma omp distribute parallel for
14921 for (int i
= 0; i
< 10; ++i
)
14923 #pragma omp distribute parallel for
14924 for (int j
= 0; j
< 10; ++j
)
14930 #pragma omp distribute parallel for simd
14931 for (int i
= 0; i
< 10; ++i
)
14933 #pragma omp distribute parallel for simd
14934 for (int j
= 0; j
< 10; ++j
)
14940 #pragma omp distribute simd
14941 for (int i
= 0; i
< 10; ++i
)
14943 #pragma omp distribute simd
14944 for (int j
= 0; j
< 10; ++j
)
14950 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
14951 for (int i
= 0; i
< 10; ++i
)
14957 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
14958 for (int i
= 0; i
< 10; ++i
)
14964 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
14965 for (int i
= 0; i
< 10; ++i
)
14971 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
14972 for (int i
= 0; i
< 10; ++i
)
14978 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
14979 for (int i
= 0; i
< 10; ++i
)
14985 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
14991 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
14992 for (int i
= 0; i
< 10; ++i
)
14998 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
14999 for (int i
= 0; i
< 10; ++i
)
15005 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
15006 for (int i
= 0; i
< 10; ++i
)
15012 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
15013 for (int i
= 0; i
< 10; ++i
)
15017 // TASKLOOP DIRECTIVE
15018 #pragma omp taskloop
15019 for (int i
= 0; i
< 10; ++i
) {
15020 #pragma omp for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
15021 for (int i
= 0; i
< 10; ++i
)
15024 #pragma omp taskloop
15025 for (int i
= 0; i
< 10; ++i
) {
15027 for (int i
= 0; i
< 10; ++i
)
15030 #pragma omp taskloop
15031 for (int i
= 0; i
< 10; ++i
) {
15032 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
15033 for (int i
= 0; i
< 10; ++i
)
15036 #pragma omp taskloop
15037 for (int i
= 0; i
< 10; ++i
) {
15038 #pragma omp parallel
15039 for (int i
= 0; i
< 10; ++i
)
15042 #pragma omp taskloop
15043 for (int i
= 0; i
< 10; ++i
) {
15044 #pragma omp sections // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
15049 #pragma omp taskloop
15050 for (int i
= 0; i
< 10; ++i
) {
15051 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a taskloop region}}
15056 #pragma omp taskloop
15057 for (int i
= 0; i
< 10; ++i
) {
15058 #pragma omp single // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
15064 #pragma omp taskloop
15065 for (int i
= 0; i
< 10; ++i
) {
15066 #pragma omp master // expected-error {{region cannot be closely nested inside 'taskloop' region}}
15071 #pragma omp taskloop
15072 for (int i
= 0; i
< 10; ++i
) {
15073 #pragma omp critical
15078 #pragma omp taskloop
15079 for (int i
= 0; i
< 10; ++i
) {
15080 #pragma omp parallel
15082 #pragma omp single // OK
15086 #pragma omp for // OK
15087 for (int i
= 0; i
< 10; ++i
)
15089 #pragma omp sections // OK
15095 #pragma omp taskloop
15096 for (int i
= 0; i
< 10; ++i
) {
15097 #pragma omp parallel for
15098 for (int i
= 0; i
< 10; ++i
)
15101 #pragma omp taskloop
15102 for (int i
= 0; i
< 10; ++i
) {
15103 #pragma omp parallel for simd
15104 for (int i
= 0; i
< 10; ++i
)
15107 #pragma omp taskloop
15108 for (int i
= 0; i
< 10; ++i
) {
15109 #pragma omp parallel sections
15114 #pragma omp taskloop
15115 for (int i
= 0; i
< 10; ++i
) {
15121 #pragma omp taskloop
15122 for (int i
= 0; i
< 10; ++i
) {
15123 #pragma omp taskyield
15126 #pragma omp taskloop
15127 for (int i
= 0; i
< 10; ++i
) {
15128 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'taskloop' region}}
15131 #pragma omp taskloop
15132 for (int i
= 0; i
< 10; ++i
) {
15133 #pragma omp scan // expected-error {{region cannot be closely nested inside 'taskloop' region}}
15136 #pragma omp taskloop
15137 for (int i
= 0; i
< 10; ++i
) {
15138 #pragma omp taskwait
15141 #pragma omp taskloop
15142 for (int i
= 0; i
< 10; ++i
) {
15146 #pragma omp taskloop
15147 for (int i
= 0; i
< 10; ++i
) {
15148 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
15151 #pragma omp taskloop
15152 for (int i
= 0; i
< 10; ++i
) {
15156 #pragma omp taskloop
15157 for (int i
= 0; i
< 10; ++i
) {
15161 #pragma omp taskloop
15162 for (int i
= 0; i
< 10; ++i
) {
15163 #pragma omp target parallel
15166 #pragma omp taskloop
15167 for (int i
= 0; i
< 10; ++i
) {
15168 #pragma omp target parallel for
15169 for (int i
= 0; i
< 10; ++i
)
15172 #pragma omp taskloop
15173 for (int i
= 0; i
< 10; ++i
) {
15174 #pragma omp target enter data map(to: a)
15177 #pragma omp taskloop
15178 for (int i
= 0; i
< 10; ++i
) {
15179 #pragma omp target exit data map(from: a)
15182 #pragma omp taskloop
15183 for (int i
= 0; i
< 10; ++i
) {
15184 #pragma omp teams // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
15187 #pragma omp taskloop
15188 for (int i
= 0; i
< 10; ++i
) {
15189 #pragma omp taskloop
15190 for (int i
= 0; i
< 10; ++i
)
15193 #pragma omp taskloop
15194 for (int i
= 0; i
< 10; ++i
) {
15195 #pragma omp target update to(a)
15198 #pragma omp taskloop
15199 for (int i
= 0; i
< 10; ++i
) {
15200 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
15201 for (int i
= 0; i
< 10; ++i
)
15204 #pragma omp taskloop
15205 for (int i
= 0; i
< 10; ++i
) {
15206 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
15207 for (int i
= 0; i
< 10; ++i
)
15210 #pragma omp taskloop
15211 for (int i
= 0; i
< 10; ++i
) {
15212 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
15213 for (int i
= 0; i
< 10; ++i
)
15216 #pragma omp taskloop
15217 for (int i
= 0; i
< 10; ++i
) {
15218 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
15219 for (int i
= 0; i
< 10; ++i
)
15222 #pragma omp taskloop
15223 for (int i
= 0; i
< 10; ++i
) {
15224 #pragma omp target simd // OK
15225 for (int i
= 0; i
< 10; ++i
)
15228 #pragma omp taskloop
15229 for (int i
= 0; i
< 10; ++i
) {
15230 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
15231 for (int i
= 0; i
< 10; ++i
)
15234 #pragma omp taskloop
15235 for (int i
= 0; i
< 10; ++i
) {
15236 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
15237 for (int i
= 0; i
< 10; ++i
)
15240 #pragma omp taskloop
15241 for (int i
= 0; i
< 10; ++i
) {
15242 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
15243 for (int i
= 0; i
< 10; ++i
)
15246 #pragma omp taskloop
15247 for (int i
= 0; i
< 10; ++i
) {
15248 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'taskloop' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
15249 for (int i
= 0; i
< 10; ++i
)
15252 #pragma omp taskloop
15253 for (int i
= 0; i
< 10; ++i
) {
15254 #pragma omp target teams // OK
15257 #pragma omp taskloop
15258 for (int i
= 0; i
< 10; ++i
) {
15259 #pragma omp target teams distribute // OK
15260 for (int i
= 0; i
< 10; ++i
)
15263 #pragma omp taskloop
15264 for (int i
= 0; i
< 10; ++i
) {
15265 #pragma omp target teams distribute parallel for // OK
15266 for (int i
= 0; i
< 10; ++i
)
15269 #pragma omp taskloop
15270 for (int i
= 0; i
< 10; ++i
) {
15271 #pragma omp target teams distribute parallel for simd // OK
15272 for (int i
= 0; i
< 10; ++i
)
15275 #pragma omp taskloop
15276 for (int i
= 0; i
< 10; ++i
) {
15277 #pragma omp target teams distribute simd // OK
15278 for (int i
= 0; i
< 10; ++i
)
15282 // DISTRIBUTE DIRECTIVE
15285 #pragma omp distribute
15286 for (int i
= 0; i
< 10; ++i
) {
15287 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
15288 for (int i
= 0; i
< 10; ++i
)
15293 #pragma omp distribute
15294 for (int i
= 0; i
< 10; ++i
) {
15296 for (int i
= 0; i
< 10; ++i
)
15301 #pragma omp distribute
15302 for (int i
= 0; i
< 10; ++i
) {
15304 for (int i
= 0; i
< 10; ++i
)
15309 #pragma omp distribute
15310 for (int i
= 0; i
< 10; ++i
) {
15311 #pragma omp for simd
15312 for (int i
= 0; i
< 10; ++i
)
15317 #pragma omp distribute
15318 for (int i
= 0; i
< 10; ++i
) {
15319 #pragma omp parallel
15320 for (int i
= 0; i
< 10; ++i
)
15325 #pragma omp distribute
15326 for (int i
= 0; i
< 10; ++i
) {
15327 #pragma omp sections
15334 #pragma omp distribute
15335 for (int i
= 0; i
< 10; ++i
) {
15336 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a distribute region}}
15343 #pragma omp distribute
15344 for (int i
= 0; i
< 10; ++i
) {
15352 #pragma omp distribute
15353 for (int i
= 0; i
< 10; ++i
) {
15361 #pragma omp distribute
15362 for (int i
= 0; i
< 10; ++i
) {
15363 #pragma omp critical
15370 #pragma omp distribute
15371 for (int i
= 0; i
< 10; ++i
) {
15372 #pragma omp parallel
15382 #pragma omp distribute
15383 for (int i
= 0; i
< 10; ++i
) {
15384 #pragma omp parallel for
15385 for (int i
= 0; i
< 10; ++i
)
15390 #pragma omp distribute
15391 for (int i
= 0; i
< 10; ++i
) {
15392 #pragma omp parallel for simd
15393 for (int i
= 0; i
< 10; ++i
)
15398 #pragma omp distribute
15399 for (int i
= 0; i
< 10; ++i
) {
15400 #pragma omp parallel sections
15407 #pragma omp distribute
15408 for (int i
= 0; i
< 10; ++i
) {
15416 #pragma omp distribute
15417 for (int i
= 0; i
< 10; ++i
) {
15418 #pragma omp taskyield
15423 #pragma omp distribute
15424 for (int i
= 0; i
< 10; ++i
) {
15425 #pragma omp barrier
15430 #pragma omp distribute
15431 for (int i
= 0; i
< 10; ++i
) {
15432 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
15437 #pragma omp distribute
15438 for (int i
= 0; i
< 10; ++i
) {
15439 #pragma omp taskwait
15444 #pragma omp distribute
15445 for (int i
= 0; i
< 10; ++i
) {
15451 #pragma omp distribute
15452 for (int i
= 0; i
< 10; ++i
) {
15453 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
15458 #pragma omp distribute
15459 for (int i
= 0; i
< 10; ++i
) {
15465 #pragma omp distribute
15466 for (int i
= 0; i
< 10; ++i
) {
15467 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
15472 #pragma omp distribute
15473 for (int i
= 0; i
< 10; ++i
) {
15474 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
15479 #pragma omp distribute
15480 for (int i
= 0; i
< 10; ++i
) {
15481 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
15482 for (int i
= 0; i
< 10; ++i
)
15487 #pragma omp distribute
15488 for (int i
= 0; i
< 10; ++i
) {
15489 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
15494 #pragma omp distribute
15495 for (int i
= 0; i
< 10; ++i
) {
15496 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
15501 #pragma omp distribute
15502 for (int i
= 0; i
< 10; ++i
) {
15503 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
15508 #pragma omp distribute
15509 for (int i
= 0; i
< 10; ++i
) {
15510 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
15515 #pragma omp distribute
15516 for (int i
= 0; i
< 10; ++i
) {
15517 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
15518 for (int i
= 0; i
< 10; ++i
)
15523 #pragma omp distribute
15524 for (int i
= 0; i
< 10; ++i
) {
15525 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
15526 for (int i
= 0; i
< 10; ++i
)
15531 #pragma omp distribute
15532 for (int i
= 0; i
< 10; ++i
) {
15533 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
15534 for (int i
= 0; i
< 10; ++i
)
15539 #pragma omp distribute
15540 for (int i
= 0; i
< 10; ++i
) {
15541 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
15542 for (int i
= 0; i
< 10; ++i
)
15547 #pragma omp distribute
15548 for (int i
= 0; i
< 10; ++i
) {
15549 #pragma omp target parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
15550 for (int i
= 0; i
< 10; ++i
)
15555 #pragma omp distribute
15556 for (int i
= 0; i
< 10; ++i
) {
15557 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
15558 for (int i
= 0; i
< 10; ++i
)
15563 #pragma omp distribute
15564 for (int i
= 0; i
< 10; ++i
) {
15565 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
15566 for (int i
= 0; i
< 10; ++i
)
15571 #pragma omp distribute
15572 for (int i
= 0; i
< 10; ++i
) {
15573 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
15574 for (int i
= 0; i
< 10; ++i
)
15579 #pragma omp distribute
15580 for (int i
= 0; i
< 10; ++i
) {
15581 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
15582 for (int i
= 0; i
< 10; ++i
)
15587 #pragma omp distribute
15588 for (int i
= 0; i
< 10; ++i
) {
15589 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
15590 for (int i
= 0; i
< 10; ++i
)
15595 #pragma omp distribute
15596 for (int i
= 0; i
< 10; ++i
) {
15597 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
15598 for (int i
= 0; i
< 10; ++i
)
15602 // DISTRIBUTE PARALLEL FOR DIRECTIVE
15605 #pragma omp distribute parallel for
15606 for (int i
= 0; i
< 10; ++i
) {
15607 #pragma omp distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for' directive into a teams region?}}
15608 for (int i
= 0; i
< 10; ++i
)
15614 #pragma omp distribute parallel for
15615 for (int i
= 0; i
< 10; ++i
) {
15616 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
15617 for (int i
= 0; i
< 10; ++i
)
15622 #pragma omp distribute parallel for
15623 for (int i
= 0; i
< 10; ++i
) {
15624 #pragma omp for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
15625 for (int i
= 0; i
< 10; ++i
)
15630 #pragma omp distribute parallel for
15631 for (int i
= 0; i
< 10; ++i
) {
15633 for (int i
= 0; i
< 10; ++i
)
15638 #pragma omp distribute parallel for
15639 for (int i
= 0; i
< 10; ++i
) {
15640 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
15641 for (int i
= 0; i
< 10; ++i
)
15646 #pragma omp distribute parallel for
15647 for (int i
= 0; i
< 10; ++i
) {
15648 #pragma omp parallel
15649 for (int i
= 0; i
< 10; ++i
)
15654 #pragma omp distribute parallel for
15655 for (int i
= 0; i
< 10; ++i
) {
15656 #pragma omp sections // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
15663 #pragma omp distribute parallel for
15664 for (int i
= 0; i
< 10; ++i
) {
15665 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a distribute parallel for region}}
15672 #pragma omp distribute parallel for
15673 for (int i
= 0; i
< 10; ++i
) {
15674 #pragma omp single // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
15681 #pragma omp distribute parallel for
15682 for (int i
= 0; i
< 10; ++i
) {
15683 #pragma omp master // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
15690 #pragma omp distribute parallel for
15691 for (int i
= 0; i
< 10; ++i
) {
15692 #pragma omp critical
15699 #pragma omp distribute parallel for
15700 for (int i
= 0; i
< 10; ++i
) {
15701 #pragma omp parallel
15711 #pragma omp distribute parallel for
15712 for (int i
= 0; i
< 10; ++i
) {
15713 #pragma omp parallel for
15714 for (int i
= 0; i
< 10; ++i
)
15719 #pragma omp distribute parallel for
15720 for (int i
= 0; i
< 10; ++i
) {
15721 #pragma omp parallel for simd
15722 for (int i
= 0; i
< 10; ++i
)
15727 #pragma omp distribute parallel for
15728 for (int i
= 0; i
< 10; ++i
) {
15729 #pragma omp parallel sections
15736 #pragma omp distribute parallel for
15737 for (int i
= 0; i
< 10; ++i
) {
15745 #pragma omp distribute parallel for
15746 for (int i
= 0; i
< 10; ++i
) {
15747 #pragma omp taskyield
15752 #pragma omp distribute parallel for
15753 for (int i
= 0; i
< 10; ++i
) {
15754 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
15759 #pragma omp distribute parallel for
15760 for (int i
= 0; i
< 10; ++i
) {
15761 #pragma omp scan // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
15766 #pragma omp distribute parallel for
15767 for (int i
= 0; i
< 10; ++i
) {
15768 #pragma omp taskwait
15773 #pragma omp distribute parallel for
15774 for (int i
= 0; i
< 10; ++i
) {
15780 #pragma omp distribute parallel for
15781 for (int i
= 0; i
< 10; ++i
) {
15782 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
15787 #pragma omp distribute parallel for
15788 for (int i
= 0; i
< 10; ++i
) {
15794 #pragma omp distribute parallel for
15795 for (int i
= 0; i
< 10; ++i
) {
15796 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
15801 #pragma omp distribute parallel for
15802 for (int i
= 0; i
< 10; ++i
) {
15803 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
15808 #pragma omp distribute parallel for
15809 for (int i
= 0; i
< 10; ++i
) {
15810 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
15811 for (int i
= 0; i
< 10; ++i
)
15816 #pragma omp distribute parallel for
15817 for (int i
= 0; i
< 10; ++i
) {
15818 #pragma omp teams // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
15823 #pragma omp distribute parallel for
15824 for (int i
= 0; i
< 10; ++i
) {
15825 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
15830 #pragma omp distribute parallel for
15831 for (int i
= 0; i
< 10; ++i
) {
15832 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
15837 #pragma omp distribute parallel for
15838 for (int i
= 0; i
< 10; ++i
) {
15839 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
15844 #pragma omp distribute parallel for
15845 for (int i
= 0; i
< 10; ++i
) {
15846 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
15847 for (int i
= 0; i
< 10; ++i
)
15852 #pragma omp distribute parallel for
15853 for (int i
= 0; i
< 10; ++i
) {
15854 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
15855 for (int i
= 0; i
< 10; ++i
)
15860 #pragma omp distribute parallel for
15861 for (int i
= 0; i
< 10; ++i
) {
15862 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
15863 for (int i
= 0; i
< 10; ++i
)
15868 #pragma omp distribute parallel for
15869 for (int i
= 0; i
< 10; ++i
) {
15870 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
15871 for (int i
= 0; i
< 10; ++i
)
15876 #pragma omp distribute parallel for
15877 for (int i
= 0; i
< 10; ++i
) {
15878 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
15879 for (int i
= 0; i
< 10; ++i
)
15884 #pragma omp distribute parallel for
15885 for (int i
= 0; i
< 10; ++i
) {
15886 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
15887 for (int i
= 0; i
< 10; ++i
)
15892 #pragma omp distribute parallel for
15893 for (int i
= 0; i
< 10; ++i
) {
15894 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
15899 #pragma omp distribute parallel for
15900 for (int i
= 0; i
< 10; ++i
) {
15901 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
15902 for (int i
= 0; i
< 10; ++i
)
15907 #pragma omp distribute parallel for
15908 for (int i
= 0; i
< 10; ++i
) {
15909 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
15910 for (int i
= 0; i
< 10; ++i
)
15915 #pragma omp distribute parallel for
15916 for (int i
= 0; i
< 10; ++i
) {
15917 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
15918 for (int i
= 0; i
< 10; ++i
)
15923 #pragma omp distribute parallel for
15924 for (int i
= 0; i
< 10; ++i
) {
15925 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
15926 for (int i
= 0; i
< 10; ++i
)
15930 // DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
15933 #pragma omp distribute parallel for simd
15934 for (int i
= 0; i
< 10; ++i
) {
15935 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15936 for (int i
= 0; i
< 10; ++i
)
15941 #pragma omp distribute parallel for simd
15942 for (int i
= 0; i
< 10; ++i
) {
15943 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15944 for (int i
= 0; i
< 10; ++i
)
15949 #pragma omp distribute parallel for simd
15950 for (int i
= 0; i
< 10; ++i
) {
15951 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15952 for (int i
= 0; i
< 10; ++i
)
15957 #pragma omp distribute parallel for simd
15958 for (int i
= 0; i
< 10; ++i
) {
15959 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
15960 for (int i
= 0; i
< 10; ++i
)
15965 #pragma omp distribute parallel for simd
15966 for (int i
= 0; i
< 10; ++i
) {
15967 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15968 for (int i
= 0; i
< 10; ++i
)
15973 #pragma omp distribute parallel for simd
15974 for (int i
= 0; i
< 10; ++i
) {
15975 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15976 for (int i
= 0; i
< 10; ++i
)
15981 #pragma omp distribute parallel for simd
15982 for (int i
= 0; i
< 10; ++i
) {
15983 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15990 #pragma omp distribute parallel for simd
15991 for (int i
= 0; i
< 10; ++i
) {
15992 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
15999 #pragma omp distribute parallel for simd
16000 for (int i
= 0; i
< 10; ++i
) {
16001 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16008 #pragma omp distribute parallel for simd
16009 for (int i
= 0; i
< 10; ++i
) {
16010 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16017 #pragma omp distribute parallel for simd
16018 for (int i
= 0; i
< 10; ++i
) {
16019 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16026 #pragma omp distribute parallel for simd
16027 for (int i
= 0; i
< 10; ++i
) {
16028 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16038 #pragma omp distribute parallel for simd
16039 for (int i
= 0; i
< 10; ++i
) {
16040 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16041 for (int i
= 0; i
< 10; ++i
)
16046 #pragma omp distribute parallel for simd
16047 for (int i
= 0; i
< 10; ++i
) {
16048 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16049 for (int i
= 0; i
< 10; ++i
)
16054 #pragma omp distribute parallel for simd
16055 for (int i
= 0; i
< 10; ++i
) {
16056 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16063 #pragma omp distribute parallel for simd
16064 for (int i
= 0; i
< 10; ++i
) {
16065 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16072 #pragma omp distribute parallel for simd
16073 for (int i
= 0; i
< 10; ++i
) {
16074 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16079 #pragma omp distribute parallel for simd
16080 for (int i
= 0; i
< 10; ++i
) {
16081 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16086 #pragma omp distribute parallel for simd
16087 for (int i
= 0; i
< 10; ++i
) {
16088 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
16093 #pragma omp distribute parallel for simd
16094 for (int i
= 0; i
< 10; ++i
) {
16095 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16100 #pragma omp distribute parallel for simd
16101 for (int i
= 0; i
< 10; ++i
) {
16102 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16107 #pragma omp distribute parallel for simd
16108 for (int i
= 0; i
< 10; ++i
) {
16109 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16114 #pragma omp distribute parallel for simd
16115 for (int i
= 0; i
< 10; ++i
) {
16116 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
16121 #pragma omp distribute parallel for simd
16122 for (int i
= 0; i
< 10; ++i
) {
16123 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16128 #pragma omp distribute parallel for simd
16129 for (int i
= 0; i
< 10; ++i
) {
16130 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16135 #pragma omp distribute parallel for simd
16136 for (int i
= 0; i
< 10; ++i
) {
16137 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16142 #pragma omp distribute parallel for simd
16143 for (int i
= 0; i
< 10; ++i
) {
16144 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16149 #pragma omp distribute parallel for simd
16150 for (int i
= 0; i
< 10; ++i
) {
16151 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16156 #pragma omp distribute parallel for simd
16157 for (int i
= 0; i
< 10; ++i
) {
16158 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16163 #pragma omp distribute parallel for simd
16164 for (int i
= 0; i
< 10; ++i
) {
16165 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16166 for (int i
= 0; i
< 10; ++i
)
16171 #pragma omp distribute parallel for simd
16172 for (int i
= 0; i
< 10; ++i
) {
16173 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16174 for (int i
= 0; i
< 10; ++i
)
16179 #pragma omp distribute parallel for simd
16180 for (int i
= 0; i
< 10; ++i
) {
16181 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16182 for (int i
= 0; i
< 10; ++i
)
16187 #pragma omp distribute parallel for simd
16188 for (int i
= 0; i
< 10; ++i
) {
16189 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16190 for (int i
= 0; i
< 10; ++i
)
16195 #pragma omp distribute parallel for simd
16196 for (int i
= 0; i
< 10; ++i
) {
16197 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16198 for (int i
= 0; i
< 10; ++i
)
16203 #pragma omp distribute parallel for simd
16204 for (int i
= 0; i
< 10; ++i
) {
16205 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16206 for (int i
= 0; i
< 10; ++i
)
16211 #pragma omp distribute parallel for simd
16212 for (int i
= 0; i
< 10; ++i
) {
16213 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16218 #pragma omp distribute parallel for simd
16219 for (int i
= 0; i
< 10; ++i
) {
16220 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16221 for (int i
= 0; i
< 10; ++i
)
16226 #pragma omp distribute parallel for simd
16227 for (int i
= 0; i
< 10; ++i
) {
16228 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16229 for (int i
= 0; i
< 10; ++i
)
16234 #pragma omp distribute parallel for simd
16235 for (int i
= 0; i
< 10; ++i
) {
16236 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16237 for (int i
= 0; i
< 10; ++i
)
16242 #pragma omp distribute parallel for simd
16243 for (int i
= 0; i
< 10; ++i
) {
16244 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16245 for (int i
= 0; i
< 10; ++i
)
16249 // DISTRIBUTE SIMD DIRECTIVE
16252 #pragma omp distribute simd
16253 for (int i
= 0; i
< 10; ++i
) {
16254 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16255 for (int i
= 0; i
< 10; ++i
)
16260 #pragma omp distribute simd
16261 for (int i
= 0; i
< 10; ++i
) {
16262 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16263 for (int i
= 0; i
< 10; ++i
)
16268 #pragma omp distribute simd
16269 for (int i
= 0; i
< 10; ++i
) {
16270 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16271 for (int i
= 0; i
< 10; ++i
)
16276 #pragma omp distribute simd
16277 for (int i
= 0; i
< 10; ++i
) {
16278 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
16279 for (int i
= 0; i
< 10; ++i
)
16284 #pragma omp distribute simd
16285 for (int i
= 0; i
< 10; ++i
) {
16286 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16287 for (int i
= 0; i
< 10; ++i
)
16292 #pragma omp distribute simd
16293 for (int i
= 0; i
< 10; ++i
) {
16294 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16295 for (int i
= 0; i
< 10; ++i
)
16300 #pragma omp distribute simd
16301 for (int i
= 0; i
< 10; ++i
) {
16302 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16309 #pragma omp distribute simd
16310 for (int i
= 0; i
< 10; ++i
) {
16311 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16318 #pragma omp distribute simd
16319 for (int i
= 0; i
< 10; ++i
) {
16320 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16327 #pragma omp distribute simd
16328 for (int i
= 0; i
< 10; ++i
) {
16329 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16336 #pragma omp distribute simd
16337 for (int i
= 0; i
< 10; ++i
) {
16338 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16345 #pragma omp distribute simd
16346 for (int i
= 0; i
< 10; ++i
) {
16347 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16357 #pragma omp distribute simd
16358 for (int i
= 0; i
< 10; ++i
) {
16359 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16360 for (int i
= 0; i
< 10; ++i
)
16365 #pragma omp distribute simd
16366 for (int i
= 0; i
< 10; ++i
) {
16367 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16368 for (int i
= 0; i
< 10; ++i
)
16373 #pragma omp distribute simd
16374 for (int i
= 0; i
< 10; ++i
) {
16375 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16382 #pragma omp distribute simd
16383 for (int i
= 0; i
< 10; ++i
) {
16384 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16391 #pragma omp distribute simd
16392 for (int i
= 0; i
< 10; ++i
) {
16393 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16398 #pragma omp distribute simd
16399 for (int i
= 0; i
< 10; ++i
) {
16400 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16405 #pragma omp distribute simd
16406 for (int i
= 0; i
< 10; ++i
) {
16407 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
16412 #pragma omp distribute simd
16413 for (int i
= 0; i
< 10; ++i
) {
16414 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16419 #pragma omp distribute simd
16420 for (int i
= 0; i
< 10; ++i
) {
16421 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16426 #pragma omp distribute simd
16427 for (int i
= 0; i
< 10; ++i
) {
16428 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16433 #pragma omp distribute simd
16434 for (int i
= 0; i
< 10; ++i
) {
16435 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
16440 #pragma omp distribute simd
16441 for (int i
= 0; i
< 10; ++i
) {
16442 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16447 #pragma omp distribute simd
16448 for (int i
= 0; i
< 10; ++i
) {
16449 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16454 #pragma omp distribute simd
16455 for (int i
= 0; i
< 10; ++i
) {
16456 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16461 #pragma omp distribute simd
16462 for (int i
= 0; i
< 10; ++i
) {
16463 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16468 #pragma omp distribute simd
16469 for (int i
= 0; i
< 10; ++i
) {
16470 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16475 #pragma omp distribute simd
16476 for (int i
= 0; i
< 10; ++i
) {
16477 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16482 #pragma omp distribute simd
16483 for (int i
= 0; i
< 10; ++i
) {
16484 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16485 for (int i
= 0; i
< 10; ++i
)
16490 #pragma omp distribute simd
16491 for (int i
= 0; i
< 10; ++i
) {
16492 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16493 for (int i
= 0; i
< 10; ++i
)
16498 #pragma omp distribute simd
16499 for (int i
= 0; i
< 10; ++i
) {
16500 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16501 for (int i
= 0; i
< 10; ++i
)
16506 #pragma omp distribute simd
16507 for (int i
= 0; i
< 10; ++i
) {
16508 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16509 for (int i
= 0; i
< 10; ++i
)
16514 #pragma omp distribute simd
16515 for (int i
= 0; i
< 10; ++i
) {
16516 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16517 for (int i
= 0; i
< 10; ++i
)
16522 #pragma omp distribute simd
16523 for (int i
= 0; i
< 10; ++i
) {
16524 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16525 for (int i
= 0; i
< 10; ++i
)
16530 #pragma omp distribute simd
16531 for (int i
= 0; i
< 10; ++i
) {
16532 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16537 #pragma omp distribute simd
16538 for (int i
= 0; i
< 10; ++i
) {
16539 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16540 for (int i
= 0; i
< 10; ++i
)
16545 #pragma omp distribute simd
16546 for (int i
= 0; i
< 10; ++i
) {
16547 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16548 for (int i
= 0; i
< 10; ++i
)
16553 #pragma omp distribute simd
16554 for (int i
= 0; i
< 10; ++i
) {
16555 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16556 for (int i
= 0; i
< 10; ++i
)
16561 #pragma omp distribute simd
16562 for (int i
= 0; i
< 10; ++i
) {
16563 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16564 for (int i
= 0; i
< 10; ++i
)
16568 // TARGET SIMD DIRECTIVE
16569 #pragma omp target simd
16570 for (int i
= 0; i
< 10; ++i
) {
16571 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16572 for (int i
= 0; i
< 10; ++i
)
16575 #pragma omp target simd
16576 for (int i
= 0; i
< 10; ++i
) {
16577 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16578 for (int i
= 0; i
< 10; ++i
)
16581 #pragma omp target simd
16582 for (int i
= 0; i
< 10; ++i
) {
16583 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16584 for (int i
= 0; i
< 10; ++i
)
16587 #pragma omp target simd
16588 for (int i
= 0; i
< 10; ++i
) {
16589 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
16590 for (int i
= 0; i
< 10; ++i
)
16593 #pragma omp target simd
16594 for (int i
= 0; i
< 10; ++i
) {
16595 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16596 for (int i
= 0; i
< 10; ++i
)
16599 #pragma omp target simd
16600 for (int i
= 0; i
< 10; ++i
) {
16601 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16602 for (int i
= 0; i
< 10; ++i
)
16605 #pragma omp target simd
16606 for (int i
= 0; i
< 10; ++i
) {
16607 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16612 #pragma omp target simd
16613 for (int i
= 0; i
< 10; ++i
) {
16614 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16619 #pragma omp target simd
16620 for (int i
= 0; i
< 10; ++i
) {
16621 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16626 #pragma omp target simd
16627 for (int i
= 0; i
< 10; ++i
) {
16628 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16633 #pragma omp target simd
16634 for (int i
= 0; i
< 10; ++i
) {
16635 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16640 #pragma omp target simd
16641 for (int i
= 0; i
< 10; ++i
) {
16642 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16650 #pragma omp target simd
16651 for (int i
= 0; i
< 10; ++i
) {
16652 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16653 for (int i
= 0; i
< 10; ++i
)
16656 #pragma omp target simd
16657 for (int i
= 0; i
< 10; ++i
) {
16658 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16659 for (int i
= 0; i
< 10; ++i
)
16662 #pragma omp target simd
16663 for (int i
= 0; i
< 10; ++i
) {
16664 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16669 #pragma omp target simd
16670 for (int i
= 0; i
< 10; ++i
) {
16671 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16676 #pragma omp target simd
16677 for (int i
= 0; i
< 10; ++i
) {
16678 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16681 #pragma omp target simd
16682 for (int i
= 0; i
< 10; ++i
) {
16683 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16686 #pragma omp target simd
16687 for (int i
= 0; i
< 10; ++i
) {
16688 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
16691 #pragma omp target simd
16692 for (int i
= 0; i
< 10; ++i
) {
16693 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16696 #pragma omp target simd
16697 for (int i
= 0; i
< 10; ++i
) {
16698 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16701 #pragma omp target simd
16702 for (int i
= 0; i
< 10; ++i
) {
16703 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16706 #pragma omp target simd
16707 for (int i
= 0; i
< 10; ++i
) {
16708 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
16711 #pragma omp target simd
16712 for (int i
= 0; i
< 10; ++i
) {
16713 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16716 #pragma omp target simd
16717 for (int i
= 0; i
< 10; ++i
) {
16718 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16721 #pragma omp target simd
16722 for (int i
= 0; i
< 10; ++i
) {
16723 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16726 #pragma omp target simd
16727 for (int i
= 0; i
< 10; ++i
) {
16728 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16731 #pragma omp target simd
16732 for (int i
= 0; i
< 10; ++i
) {
16733 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16736 #pragma omp target simd
16737 for (int i
= 0; i
< 10; ++i
) {
16738 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16741 #pragma omp target simd
16742 for (int i
= 0; i
< 10; ++i
) {
16743 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16744 for (int i
= 0; i
< 10; ++i
)
16747 #pragma omp target simd
16748 for (int i
= 0; i
< 10; ++i
) {
16749 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16750 for (int i
= 0; i
< 10; ++i
)
16753 #pragma omp target simd
16754 for (int i
= 0; i
< 10; ++i
) {
16755 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16756 for (int i
= 0; i
< 10; ++i
)
16759 #pragma omp target simd
16760 for (int i
= 0; i
< 10; ++i
) {
16761 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16762 for (int i
= 0; i
< 10; ++i
)
16765 #pragma omp target simd
16766 for (int i
= 0; i
< 10; ++i
) {
16767 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16768 for (int i
= 0; i
< 10; ++i
)
16771 #pragma omp target simd
16772 for (int i
= 0; i
< 10; ++i
) {
16773 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16774 for (int i
= 0; i
< 10; ++i
)
16777 #pragma omp target simd
16778 for (int i
= 0; i
< 10; ++i
) {
16779 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16782 #pragma omp target simd
16783 for (int i
= 0; i
< 10; ++i
) {
16784 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16785 for (int i
= 0; i
< 10; ++i
)
16788 #pragma omp target simd
16789 for (int i
= 0; i
< 10; ++i
) {
16790 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16791 for (int i
= 0; i
< 10; ++i
)
16794 #pragma omp target simd
16795 for (int i
= 0; i
< 10; ++i
) {
16796 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16797 for (int i
= 0; i
< 10; ++i
)
16800 #pragma omp target simd
16801 for (int i
= 0; i
< 10; ++i
) {
16802 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
16803 for (int i
= 0; i
< 10; ++i
)
16807 // TEAMS DISTRIBUTE DIRECTIVE
16808 #pragma omp teams distribute // omp45-error {{orphaned 'omp teams distribute' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
16809 for (int i
= 0; i
< 10; ++i
)
16812 #pragma omp teams distribute
16813 for (int i
= 0; i
< 10; ++i
) {
16814 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
16815 for (int i
= 0; i
< 10; ++i
)
16819 #pragma omp teams distribute
16820 for (int i
= 0; i
< 10; ++i
) {
16821 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
16822 for (int i
= 0; i
< 10; ++i
)
16826 #pragma omp teams distribute
16827 for (int i
= 0; i
< 10; ++i
) {
16828 #pragma omp for // OK
16829 for (int i
= 0; i
< 10; ++i
)
16833 #pragma omp teams distribute
16834 for (int i
= 0; i
< 10; ++i
) {
16835 #pragma omp simd // OK
16836 for (int i
= 0; i
< 10; ++i
)
16840 #pragma omp teams distribute
16841 for (int i
= 0; i
< 10; ++i
) {
16842 #pragma omp for simd // OK
16843 for (int i
= 0; i
< 10; ++i
)
16847 #pragma omp teams distribute
16848 for (int i
= 0; i
< 10; ++i
) {
16849 #pragma omp parallel // OK
16850 for (int i
= 0; i
< 10; ++i
)
16854 #pragma omp teams distribute
16855 for (int i
= 0; i
< 10; ++i
) {
16856 #pragma omp sections // OK
16862 #pragma omp teams distribute
16863 for (int i
= 0; i
< 10; ++i
) {
16864 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams distribute region}}
16870 #pragma omp teams distribute
16871 for (int i
= 0; i
< 10; ++i
) {
16872 #pragma omp single // OK
16878 #pragma omp teams distribute
16879 for (int i
= 0; i
< 10; ++i
) {
16880 #pragma omp master // OK
16886 #pragma omp teams distribute
16887 for (int i
= 0; i
< 10; ++i
) {
16888 #pragma omp critical // OK
16894 #pragma omp teams distribute
16895 for (int i
= 0; i
< 10; ++i
) {
16896 #pragma omp parallel // OK
16905 #pragma omp teams distribute
16906 for (int i
= 0; i
< 10; ++i
) {
16907 #pragma omp parallel for // OK
16908 for (int i
= 0; i
< 10; ++i
)
16912 #pragma omp teams distribute
16913 for (int i
= 0; i
< 10; ++i
) {
16914 #pragma omp parallel for simd // OK
16915 for (int i
= 0; i
< 10; ++i
)
16919 #pragma omp teams distribute
16920 for (int i
= 0; i
< 10; ++i
) {
16921 #pragma omp parallel sections // OK
16927 #pragma omp teams distribute
16928 for (int i
= 0; i
< 10; ++i
) {
16929 #pragma omp task // OK
16935 #pragma omp teams distribute
16936 for (int i
= 0; i
< 10; ++i
) {
16937 #pragma omp taskyield // OK
16941 #pragma omp teams distribute
16942 for (int i
= 0; i
< 10; ++i
) {
16943 #pragma omp barrier // OK
16947 #pragma omp teams distribute
16948 for (int i
= 0; i
< 10; ++i
) {
16949 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
16953 #pragma omp teams distribute
16954 for (int i
= 0; i
< 10; ++i
) {
16955 #pragma omp taskwait // OK
16959 #pragma omp teams distribute
16960 for (int i
= 0; i
< 10; ++i
) {
16961 #pragma omp flush // OK
16965 #pragma omp teams distribute
16966 for (int i
= 0; i
< 10; ++i
) {
16967 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
16971 #pragma omp teams distribute
16972 for (int i
= 0; i
< 10; ++i
) {
16973 #pragma omp atomic // OK
16977 #pragma omp teams distribute
16978 for (int i
= 0; i
< 10; ++i
) {
16979 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
16983 #pragma omp teams distribute
16984 for (int i
= 0; i
< 10; ++i
) {
16985 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
16989 #pragma omp teams distribute
16990 for (int i
= 0; i
< 10; ++i
) {
16991 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
16992 for (int i
= 0; i
< 10; ++i
)
16996 #pragma omp teams distribute
16997 for (int i
= 0; i
< 10; ++i
) {
16998 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
17002 #pragma omp teams distribute
17003 for (int i
= 0; i
< 10; ++i
) {
17004 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
17008 #pragma omp teams distribute
17009 for (int i
= 0; i
< 10; ++i
) {
17010 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
17014 #pragma omp teams distribute
17015 for (int i
= 0; i
< 10; ++i
) {
17016 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
17020 #pragma omp teams distribute
17021 for (int i
= 0; i
< 10; ++i
) {
17022 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
17023 for (int i
= 0; i
< 10; ++i
)
17027 #pragma omp teams distribute
17028 for (int i
= 0; i
< 10; ++i
) {
17029 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
17030 for (int i
= 0; i
< 10; ++i
)
17034 #pragma omp teams distribute
17035 for (int i
= 0; i
< 10; ++i
) {
17036 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
17037 for (int i
= 0; i
< 10; ++i
)
17041 #pragma omp teams distribute
17042 for (int i
= 0; i
< 10; ++i
) {
17043 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
17044 for (int i
= 0; i
< 10; ++i
)
17048 #pragma omp teams distribute
17049 for (int i
= 0; i
< 10; ++i
) {
17050 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
17051 for (int i
= 0; i
< 10; ++i
)
17055 #pragma omp teams distribute
17056 for (int i
= 0; i
< 10; ++i
) {
17057 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
17058 for (int i
= 0; i
< 10; ++i
)
17062 #pragma omp teams distribute
17063 for (int i
= 0; i
< 10; ++i
) {
17064 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
17068 #pragma omp teams distribute
17069 for (int i
= 0; i
< 10; ++i
) {
17070 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
17071 for (int i
= 0; i
< 10; ++i
)
17075 #pragma omp teams distribute
17076 for (int i
= 0; i
< 10; ++i
) {
17077 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
17078 for (int i
= 0; i
< 10; ++i
)
17082 #pragma omp teams distribute
17083 for (int i
= 0; i
< 10; ++i
) {
17084 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
17085 for (int i
= 0; i
< 10; ++i
)
17089 #pragma omp teams distribute
17090 for (int i
= 0; i
< 10; ++i
) {
17091 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
17092 for (int i
= 0; i
< 10; ++i
)
17096 // TEAMS DISTRIBUTE SIMD DIRECTIVE
17097 #pragma omp teams distribute simd // omp45-error {{orphaned 'omp teams distribute simd' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
17098 for (int i
= 0; i
< 10; ++i
)
17101 #pragma omp teams distribute simd
17102 for (int i
= 0; i
< 10; ++i
) {
17103 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17104 for (int i
= 0; i
< 10; ++i
)
17108 #pragma omp teams distribute simd
17109 for (int i
= 0; i
< 10; ++i
) {
17110 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17111 for (int i
= 0; i
< 10; ++i
)
17115 #pragma omp teams distribute simd
17116 for (int i
= 0; i
< 10; ++i
) {
17117 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17118 for (int i
= 0; i
< 10; ++i
)
17122 #pragma omp teams distribute simd
17123 for (int i
= 0; i
< 10; ++i
) {
17124 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
17125 for (int i
= 0; i
< 10; ++i
)
17129 #pragma omp teams distribute simd
17130 for (int i
= 0; i
< 10; ++i
) {
17131 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17132 for (int i
= 0; i
< 10; ++i
)
17136 #pragma omp teams distribute simd
17137 for (int i
= 0; i
< 10; ++i
) {
17138 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17139 for (int i
= 0; i
< 10; ++i
)
17143 #pragma omp teams distribute simd
17144 for (int i
= 0; i
< 10; ++i
) {
17145 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17151 #pragma omp teams distribute simd
17152 for (int i
= 0; i
< 10; ++i
) {
17153 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17159 #pragma omp teams distribute simd
17160 for (int i
= 0; i
< 10; ++i
) {
17161 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17167 #pragma omp teams distribute simd
17168 for (int i
= 0; i
< 10; ++i
) {
17169 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17175 #pragma omp teams distribute simd
17176 for (int i
= 0; i
< 10; ++i
) {
17177 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17183 #pragma omp teams distribute simd
17184 for (int i
= 0; i
< 10; ++i
) {
17185 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17194 #pragma omp teams distribute simd
17195 for (int i
= 0; i
< 10; ++i
) {
17196 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17197 for (int i
= 0; i
< 10; ++i
)
17201 #pragma omp teams distribute simd
17202 for (int i
= 0; i
< 10; ++i
) {
17203 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17204 for (int i
= 0; i
< 10; ++i
)
17208 #pragma omp teams distribute simd
17209 for (int i
= 0; i
< 10; ++i
) {
17210 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17216 #pragma omp teams distribute simd
17217 for (int i
= 0; i
< 10; ++i
) {
17218 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17224 #pragma omp teams distribute simd
17225 for (int i
= 0; i
< 10; ++i
) {
17226 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17230 #pragma omp teams distribute simd
17231 for (int i
= 0; i
< 10; ++i
) {
17232 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17236 #pragma omp teams distribute simd
17237 for (int i
= 0; i
< 10; ++i
) {
17238 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
17242 #pragma omp teams distribute simd
17243 for (int i
= 0; i
< 10; ++i
) {
17244 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17248 #pragma omp teams distribute simd
17249 for (int i
= 0; i
< 10; ++i
) {
17250 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17254 #pragma omp teams distribute simd
17255 for (int i
= 0; i
< 10; ++i
) {
17256 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17260 #pragma omp teams distribute simd
17261 for (int i
= 0; i
< 10; ++i
) {
17262 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
17266 #pragma omp teams distribute simd
17267 for (int i
= 0; i
< 10; ++i
) {
17268 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17272 #pragma omp teams distribute simd
17273 for (int i
= 0; i
< 10; ++i
) {
17274 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17278 #pragma omp teams distribute simd
17279 for (int i
= 0; i
< 10; ++i
) {
17280 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17281 for (int i
= 0; i
< 10; ++i
)
17285 #pragma omp teams distribute simd
17286 for (int i
= 0; i
< 10; ++i
) {
17287 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17291 #pragma omp teams distribute simd
17292 for (int i
= 0; i
< 10; ++i
) {
17293 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17297 #pragma omp teams distribute simd
17298 for (int i
= 0; i
< 10; ++i
) {
17299 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17303 #pragma omp teams distribute simd
17304 for (int i
= 0; i
< 10; ++i
) {
17305 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17309 #pragma omp teams distribute simd
17310 for (int i
= 0; i
< 10; ++i
) {
17311 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17312 for (int i
= 0; i
< 10; ++i
)
17316 #pragma omp teams distribute simd
17317 for (int i
= 0; i
< 10; ++i
) {
17318 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17319 for (int i
= 0; i
< 10; ++i
)
17323 #pragma omp teams distribute simd
17324 for (int i
= 0; i
< 10; ++i
) {
17325 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17326 for (int i
= 0; i
< 10; ++i
)
17330 #pragma omp teams distribute simd
17331 for (int i
= 0; i
< 10; ++i
) {
17332 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17333 for (int i
= 0; i
< 10; ++i
)
17337 #pragma omp teams distribute simd
17338 for (int i
= 0; i
< 10; ++i
) {
17339 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17340 for (int i
= 0; i
< 10; ++i
)
17344 #pragma omp teams distribute simd
17345 for (int i
= 0; i
< 10; ++i
) {
17346 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17347 for (int i
= 0; i
< 10; ++i
)
17351 #pragma omp teams distribute simd
17352 for (int i
= 0; i
< 10; ++i
) {
17353 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17357 #pragma omp teams distribute simd
17358 for (int i
= 0; i
< 10; ++i
) {
17359 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17360 for (int i
= 0; i
< 10; ++i
)
17364 #pragma omp teams distribute simd
17365 for (int i
= 0; i
< 10; ++i
) {
17366 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17367 for (int i
= 0; i
< 10; ++i
)
17371 #pragma omp teams distribute simd
17372 for (int i
= 0; i
< 10; ++i
) {
17373 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17374 for (int i
= 0; i
< 10; ++i
)
17378 #pragma omp teams distribute simd
17379 for (int i
= 0; i
< 10; ++i
) {
17380 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17381 for (int i
= 0; i
< 10; ++i
)
17385 // TEAMS DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
17386 #pragma omp teams distribute parallel for simd // omp45-error {{orphaned 'omp teams distribute parallel for simd' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
17387 for (int i
= 0; i
< 10; ++i
)
17390 #pragma omp teams distribute parallel for simd
17391 for (int i
= 0; i
< 10; ++i
) {
17392 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17393 for (int i
= 0; i
< 10; ++i
)
17397 #pragma omp teams distribute parallel for simd
17398 for (int i
= 0; i
< 10; ++i
) {
17399 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17400 for (int i
= 0; i
< 10; ++i
)
17404 #pragma omp teams distribute parallel for simd
17405 for (int i
= 0; i
< 10; ++i
) {
17406 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17407 for (int i
= 0; i
< 10; ++i
)
17411 #pragma omp teams distribute parallel for simd
17412 for (int i
= 0; i
< 10; ++i
) {
17413 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
17414 for (int i
= 0; i
< 10; ++i
)
17418 #pragma omp teams distribute parallel for simd
17419 for (int i
= 0; i
< 10; ++i
) {
17420 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17421 for (int i
= 0; i
< 10; ++i
)
17425 #pragma omp teams distribute parallel for simd
17426 for (int i
= 0; i
< 10; ++i
) {
17427 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17428 for (int i
= 0; i
< 10; ++i
)
17432 #pragma omp teams distribute parallel for simd
17433 for (int i
= 0; i
< 10; ++i
) {
17434 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17440 #pragma omp teams distribute parallel for simd
17441 for (int i
= 0; i
< 10; ++i
) {
17442 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17448 #pragma omp teams distribute parallel for simd
17449 for (int i
= 0; i
< 10; ++i
) {
17450 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17456 #pragma omp teams distribute parallel for simd
17457 for (int i
= 0; i
< 10; ++i
) {
17458 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17464 #pragma omp teams distribute parallel for simd
17465 for (int i
= 0; i
< 10; ++i
) {
17466 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17472 #pragma omp teams distribute parallel for simd
17473 for (int i
= 0; i
< 10; ++i
) {
17474 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17483 #pragma omp teams distribute parallel for simd
17484 for (int i
= 0; i
< 10; ++i
) {
17485 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17486 for (int i
= 0; i
< 10; ++i
)
17490 #pragma omp teams distribute parallel for simd
17491 for (int i
= 0; i
< 10; ++i
) {
17492 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17493 for (int i
= 0; i
< 10; ++i
)
17497 #pragma omp teams distribute parallel for simd
17498 for (int i
= 0; i
< 10; ++i
) {
17499 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17505 #pragma omp teams distribute parallel for simd
17506 for (int i
= 0; i
< 10; ++i
) {
17507 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17513 #pragma omp teams distribute parallel for simd
17514 for (int i
= 0; i
< 10; ++i
) {
17515 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17519 #pragma omp teams distribute parallel for simd
17520 for (int i
= 0; i
< 10; ++i
) {
17521 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17525 #pragma omp teams distribute parallel for simd
17526 for (int i
= 0; i
< 10; ++i
) {
17527 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
17531 #pragma omp teams distribute parallel for simd
17532 for (int i
= 0; i
< 10; ++i
) {
17533 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17537 #pragma omp teams distribute parallel for simd
17538 for (int i
= 0; i
< 10; ++i
) {
17539 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17543 #pragma omp teams distribute parallel for simd
17544 for (int i
= 0; i
< 10; ++i
) {
17545 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17549 #pragma omp teams distribute parallel for simd
17550 for (int i
= 0; i
< 10; ++i
) {
17551 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
17555 #pragma omp teams distribute parallel for simd
17556 for (int i
= 0; i
< 10; ++i
) {
17557 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17561 #pragma omp teams distribute parallel for simd
17562 for (int i
= 0; i
< 10; ++i
) {
17563 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17567 #pragma omp teams distribute parallel for simd
17568 for (int i
= 0; i
< 10; ++i
) {
17569 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17570 for (int i
= 0; i
< 10; ++i
)
17574 #pragma omp teams distribute parallel for simd
17575 for (int i
= 0; i
< 10; ++i
) {
17576 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17580 #pragma omp teams distribute parallel for simd
17581 for (int i
= 0; i
< 10; ++i
) {
17582 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17586 #pragma omp teams distribute parallel for simd
17587 for (int i
= 0; i
< 10; ++i
) {
17588 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17592 #pragma omp teams distribute parallel for simd
17593 for (int i
= 0; i
< 10; ++i
) {
17594 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17598 #pragma omp teams distribute parallel for simd
17599 for (int i
= 0; i
< 10; ++i
) {
17600 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17601 for (int i
= 0; i
< 10; ++i
)
17605 #pragma omp teams distribute parallel for simd
17606 for (int i
= 0; i
< 10; ++i
) {
17607 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17608 for (int i
= 0; i
< 10; ++i
)
17612 #pragma omp teams distribute parallel for simd
17613 for (int i
= 0; i
< 10; ++i
) {
17614 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17615 for (int i
= 0; i
< 10; ++i
)
17619 #pragma omp teams distribute parallel for simd
17620 for (int i
= 0; i
< 10; ++i
) {
17621 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17622 for (int i
= 0; i
< 10; ++i
)
17626 #pragma omp teams distribute parallel for simd
17627 for (int i
= 0; i
< 10; ++i
) {
17628 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17629 for (int i
= 0; i
< 10; ++i
)
17633 #pragma omp teams distribute parallel for simd
17634 for (int i
= 0; i
< 10; ++i
) {
17635 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17636 for (int i
= 0; i
< 10; ++i
)
17640 #pragma omp teams distribute parallel for simd
17641 for (int i
= 0; i
< 10; ++i
) {
17642 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17646 #pragma omp teams distribute parallel for simd
17647 for (int i
= 0; i
< 10; ++i
) {
17648 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17649 for (int i
= 0; i
< 10; ++i
)
17653 #pragma omp teams distribute parallel for simd
17654 for (int i
= 0; i
< 10; ++i
) {
17655 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17656 for (int i
= 0; i
< 10; ++i
)
17660 #pragma omp teams distribute parallel for simd
17661 for (int i
= 0; i
< 10; ++i
) {
17662 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17663 for (int i
= 0; i
< 10; ++i
)
17667 #pragma omp teams distribute parallel for simd
17668 for (int i
= 0; i
< 10; ++i
) {
17669 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
17670 for (int i
= 0; i
< 10; ++i
)
17674 // TEAMS DISTRIBUTE PARALLEL FOR DIRECTIVE
17675 #pragma omp teams distribute parallel for // omp45-error {{orphaned 'omp teams distribute parallel for' directives are prohibited; perhaps you forget to enclose the directive into a target region?}}
17676 for (int i
= 0; i
< 10; ++i
)
17679 #pragma omp teams distribute parallel for
17680 for (int i
= 0; i
< 10; ++i
) {
17681 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
17682 for (int i
= 0; i
< 10; ++i
)
17686 #pragma omp teams distribute parallel for
17687 for (int i
= 0; i
< 10; ++i
) {
17688 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
17689 for (int i
= 0; i
< 10; ++i
)
17693 #pragma omp teams distribute parallel for
17694 for (int i
= 0; i
< 10; ++i
) {
17695 #pragma omp for // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
17696 for (int i
= 0; i
< 10; ++i
)
17700 #pragma omp teams distribute parallel for
17701 for (int i
= 0; i
< 10; ++i
) {
17702 #pragma omp simd // OK
17703 for (int i
= 0; i
< 10; ++i
)
17707 #pragma omp teams distribute parallel for
17708 for (int i
= 0; i
< 10; ++i
) {
17709 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
17710 for (int i
= 0; i
< 10; ++i
)
17714 #pragma omp teams distribute parallel for
17715 for (int i
= 0; i
< 10; ++i
) {
17716 #pragma omp parallel // OK
17717 for (int i
= 0; i
< 10; ++i
)
17721 #pragma omp teams distribute parallel for
17722 for (int i
= 0; i
< 10; ++i
) {
17723 #pragma omp sections // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
17729 #pragma omp teams distribute parallel for
17730 for (int i
= 0; i
< 10; ++i
) {
17731 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a teams distribute parallel for region}}
17737 #pragma omp teams distribute parallel for
17738 for (int i
= 0; i
< 10; ++i
) {
17739 #pragma omp single // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
17745 #pragma omp teams distribute parallel for
17746 for (int i
= 0; i
< 10; ++i
) {
17747 #pragma omp master // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
17753 #pragma omp teams distribute parallel for
17754 for (int i
= 0; i
< 10; ++i
) {
17755 #pragma omp critical // OK
17761 #pragma omp teams distribute parallel for
17762 for (int i
= 0; i
< 10; ++i
) {
17763 #pragma omp parallel // OK
17772 #pragma omp teams distribute parallel for
17773 for (int i
= 0; i
< 10; ++i
) {
17774 #pragma omp parallel for // OK
17775 for (int i
= 0; i
< 10; ++i
)
17779 #pragma omp teams distribute parallel for
17780 for (int i
= 0; i
< 10; ++i
) {
17781 #pragma omp parallel for simd // OK
17782 for (int i
= 0; i
< 10; ++i
)
17786 #pragma omp teams distribute parallel for
17787 for (int i
= 0; i
< 10; ++i
) {
17788 #pragma omp parallel sections // OK
17794 #pragma omp teams distribute parallel for
17795 for (int i
= 0; i
< 10; ++i
) {
17796 #pragma omp task // OK
17802 #pragma omp teams distribute parallel for
17803 for (int i
= 0; i
< 10; ++i
) {
17804 #pragma omp taskyield // OK
17808 #pragma omp teams distribute parallel for
17809 for (int i
= 0; i
< 10; ++i
) {
17810 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
17814 #pragma omp teams distribute parallel for
17815 for (int i
= 0; i
< 10; ++i
) {
17816 #pragma omp scan // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
17820 #pragma omp teams distribute parallel for
17821 for (int i
= 0; i
< 10; ++i
) {
17822 #pragma omp taskwait // OK
17826 #pragma omp teams distribute parallel for
17827 for (int i
= 0; i
< 10; ++i
) {
17828 #pragma omp flush // OK
17832 #pragma omp teams distribute parallel for
17833 for (int i
= 0; i
< 10; ++i
) {
17834 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
17838 #pragma omp teams distribute parallel for
17839 for (int i
= 0; i
< 10; ++i
) {
17840 #pragma omp atomic // OK
17844 #pragma omp teams distribute parallel for
17845 for (int i
= 0; i
< 10; ++i
) {
17846 #pragma omp target // expected-error {{region cannot be nested inside 'target' region}}
17850 #pragma omp teams distribute parallel for
17851 for (int i
= 0; i
< 10; ++i
) {
17852 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target' region}}
17856 #pragma omp teams distribute parallel for
17857 for (int i
= 0; i
< 10; ++i
) {
17858 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target' region}}
17859 for (int i
= 0; i
< 10; ++i
)
17863 #pragma omp teams distribute parallel for
17864 for (int i
= 0; i
< 10; ++i
) {
17865 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target' region}}
17869 #pragma omp teams distribute parallel for
17870 for (int i
= 0; i
< 10; ++i
) {
17871 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target' region}}
17875 #pragma omp teams distribute parallel for
17876 for (int i
= 0; i
< 10; ++i
) {
17877 #pragma omp teams // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
17881 #pragma omp teams distribute parallel for
17882 for (int i
= 0; i
< 10; ++i
) {
17883 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target' region}}
17887 #pragma omp teams distribute parallel for
17888 for (int i
= 0; i
< 10; ++i
) {
17889 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
17890 for (int i
= 0; i
< 10; ++i
)
17894 #pragma omp teams distribute parallel for
17895 for (int i
= 0; i
< 10; ++i
) {
17896 #pragma omp target simd // expected-error {{region cannot be nested inside 'target' region}}
17897 for (int i
= 0; i
< 10; ++i
)
17901 #pragma omp teams distribute parallel for
17902 for (int i
= 0; i
< 10; ++i
) {
17903 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
17904 for (int i
= 0; i
< 10; ++i
)
17908 #pragma omp teams distribute parallel for
17909 for (int i
= 0; i
< 10; ++i
) {
17910 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
17911 for (int i
= 0; i
< 10; ++i
)
17915 #pragma omp teams distribute parallel for
17916 for (int i
= 0; i
< 10; ++i
) {
17917 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
17918 for (int i
= 0; i
< 10; ++i
)
17922 #pragma omp teams distribute parallel for
17923 for (int i
= 0; i
< 10; ++i
) {
17924 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
17925 for (int i
= 0; i
< 10; ++i
)
17929 #pragma omp teams distribute parallel for
17930 for (int i
= 0; i
< 10; ++i
) {
17931 #pragma omp target teams // expected-error {{region cannot be nested inside 'target' region}}
17935 #pragma omp teams distribute parallel for
17936 for (int i
= 0; i
< 10; ++i
) {
17937 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target' region}}
17938 for (int i
= 0; i
< 10; ++i
)
17942 #pragma omp teams distribute parallel for
17943 for (int i
= 0; i
< 10; ++i
) {
17944 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target' region}}
17945 for (int i
= 0; i
< 10; ++i
)
17949 #pragma omp teams distribute parallel for
17950 for (int i
= 0; i
< 10; ++i
) {
17951 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target' region}}
17952 for (int i
= 0; i
< 10; ++i
)
17956 #pragma omp teams distribute parallel for
17957 for (int i
= 0; i
< 10; ++i
) {
17958 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target' region}}
17959 for (int i
= 0; i
< 10; ++i
)
17963 // TARGET TEAMS DIRECTIVE
17964 #pragma omp target teams
17965 #pragma omp parallel
17967 #pragma omp target teams
17968 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
17969 for (int i
= 0; i
< 10; ++i
)
17971 #pragma omp target teams
17972 #pragma omp simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp simd' directive into a parallel region?}}
17973 for (int i
= 0; i
< 10; ++i
)
17975 #pragma omp target teams
17976 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
17977 for (int i
= 0; i
< 10; ++i
)
17979 #pragma omp target teams
17980 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
17984 #pragma omp target teams
17985 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams region}}
17989 #pragma omp target teams
17990 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp single' directive into a parallel region?}}
17993 #pragma omp target teams
17994 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp master' directive into a parallel region?}}
17998 #pragma omp target teams
17999 #pragma omp critical // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp critical' directive into a parallel region?}}
18003 #pragma omp target teams
18004 #pragma omp parallel for
18005 for (int i
= 0; i
< 10; ++i
)
18007 #pragma omp target teams
18008 #pragma omp parallel for simd
18009 for (int i
= 0; i
< 10; ++i
)
18011 #pragma omp target teams
18012 #pragma omp parallel sections
18016 #pragma omp target teams
18017 #pragma omp task // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp task' directive into a parallel region?}}
18021 #pragma omp target teams
18023 #pragma omp taskyield // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskyield' directive into a parallel region?}}
18026 #pragma omp target teams
18028 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp barrier' directive into a parallel region?}}
18031 #pragma omp target teams
18033 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
18036 #pragma omp target teams
18038 #pragma omp taskwait // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskwait' directive into a parallel region?}}
18041 #pragma omp target teams
18043 #pragma omp flush // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp flush' directive into a parallel region?}}
18046 #pragma omp target teams
18048 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
18051 #pragma omp target teams
18053 #pragma omp atomic // omp-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp atomic' directive into a parallel region?}}
18056 #pragma omp target teams
18058 #pragma omp target // expected-error {{region cannot be nested inside 'target teams' region}}
18061 #pragma omp target teams
18063 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams' region}}
18066 #pragma omp target teams
18067 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams' region}}
18068 for (int i
= 0; i
< 10; ++i
)
18070 #pragma omp target teams
18072 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams' region}}
18074 #pragma omp target teams
18076 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams' region}}
18078 #pragma omp target teams
18080 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
18083 #pragma omp target teams
18085 #pragma omp taskloop // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp taskloop' directive into a parallel region?}}
18086 for (int i
= 0; i
< 10; ++i
)
18089 #pragma omp target teams
18090 #pragma omp distribute
18091 for (int i
= 0; i
< 10; ++i
)
18093 #pragma omp target teams
18095 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams' region}}
18098 #pragma omp target teams
18099 #pragma omp distribute parallel for
18100 for (int i
= 0; i
< 10; ++i
)
18102 #pragma omp target teams
18104 #pragma omp distribute parallel for
18105 for (int i
= 0; i
< 10; ++i
)
18107 #pragma omp distribute parallel for
18108 for (int j
= 0; j
< 10; ++j
)
18111 #pragma omp target teams
18113 #pragma omp distribute parallel for simd
18114 for (int i
= 0; i
< 10; ++i
)
18116 #pragma omp distribute parallel for simd
18117 for (int j
= 0; j
< 10; ++j
)
18120 #pragma omp target teams
18122 #pragma omp distribute simd
18123 for (int i
= 0; i
< 10; ++i
)
18125 #pragma omp distribute simd
18126 for (int j
= 0; j
< 10; ++j
)
18129 #pragma omp target teams
18131 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams' region}}
18132 for (int i
= 0; i
< 10; ++i
)
18135 #pragma omp target teams
18137 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
18138 for (int i
= 0; i
< 10; ++i
)
18141 #pragma omp target teams
18143 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
18144 for (int i
= 0; i
< 10; ++i
)
18147 #pragma omp target teams
18149 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
18150 for (int i
= 0; i
< 10; ++i
)
18153 #pragma omp target teams
18155 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
18156 for (int i
= 0; i
< 10; ++i
)
18159 #pragma omp target teams
18161 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams' region}}
18164 #pragma omp target teams
18166 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams' region}}
18167 for (int i
= 0; i
< 10; ++i
)
18170 #pragma omp target teams
18172 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams' region}}
18173 for (int i
= 0; i
< 10; ++i
)
18176 #pragma omp target teams
18178 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams' region}}
18179 for (int i
= 0; i
< 10; ++i
)
18182 #pragma omp target teams
18184 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams' region}}
18185 for (int i
= 0; i
< 10; ++i
)
18189 // TARGET TEAMS DISTRIBUTE DIRECTIVE
18190 #pragma omp target teams distribute // OK
18191 for (int i
= 0; i
< 10; ++i
)
18193 #pragma omp target teams distribute
18194 for (int i
= 0; i
< 10; ++i
) {
18195 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
18196 for (int i
= 0; i
< 10; ++i
)
18199 #pragma omp target teams distribute
18200 for (int i
= 0; i
< 10; ++i
) {
18201 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
18202 for (int i
= 0; i
< 10; ++i
)
18205 #pragma omp target teams distribute
18206 for (int i
= 0; i
< 10; ++i
) {
18207 #pragma omp for // OK
18208 for (int i
= 0; i
< 10; ++i
)
18211 #pragma omp target teams distribute
18212 for (int i
= 0; i
< 10; ++i
) {
18213 #pragma omp simd // OK
18214 for (int i
= 0; i
< 10; ++i
)
18217 #pragma omp target teams distribute
18218 for (int i
= 0; i
< 10; ++i
) {
18219 #pragma omp for simd // OK
18220 for (int i
= 0; i
< 10; ++i
)
18223 #pragma omp target teams distribute
18224 for (int i
= 0; i
< 10; ++i
) {
18225 #pragma omp parallel // OK
18226 for (int i
= 0; i
< 10; ++i
)
18229 #pragma omp target teams distribute
18230 for (int i
= 0; i
< 10; ++i
) {
18231 #pragma omp sections // OK
18236 #pragma omp target teams distribute
18237 for (int i
= 0; i
< 10; ++i
) {
18238 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams distribute region}}
18243 #pragma omp target teams distribute
18244 for (int i
= 0; i
< 10; ++i
) {
18245 #pragma omp single // OK
18250 #pragma omp target teams distribute
18251 for (int i
= 0; i
< 10; ++i
) {
18252 #pragma omp master // OK
18257 #pragma omp target teams distribute
18258 for (int i
= 0; i
< 10; ++i
) {
18259 #pragma omp critical // OK
18264 #pragma omp target teams distribute
18265 for (int i
= 0; i
< 10; ++i
) {
18266 #pragma omp parallel // OK
18274 #pragma omp target teams distribute
18275 for (int i
= 0; i
< 10; ++i
) {
18276 #pragma omp parallel for // OK
18277 for (int i
= 0; i
< 10; ++i
)
18280 #pragma omp target teams distribute
18281 for (int i
= 0; i
< 10; ++i
) {
18282 #pragma omp parallel for simd // OK
18283 for (int i
= 0; i
< 10; ++i
)
18286 #pragma omp target teams distribute
18287 for (int i
= 0; i
< 10; ++i
) {
18288 #pragma omp parallel sections // OK
18293 #pragma omp target teams distribute
18294 for (int i
= 0; i
< 10; ++i
) {
18295 #pragma omp task // OK
18300 #pragma omp target teams distribute
18301 for (int i
= 0; i
< 10; ++i
) {
18302 #pragma omp taskyield // OK
18305 #pragma omp target teams distribute
18306 for (int i
= 0; i
< 10; ++i
) {
18307 #pragma omp barrier // OK
18310 #pragma omp target teams distribute
18311 for (int i
= 0; i
< 10; ++i
) {
18312 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
18315 #pragma omp target teams distribute
18316 for (int i
= 0; i
< 10; ++i
) {
18317 #pragma omp taskwait // OK
18320 #pragma omp target teams distribute
18321 for (int i
= 0; i
< 10; ++i
) {
18322 #pragma omp flush // OK
18325 #pragma omp target teams distribute
18326 for (int i
= 0; i
< 10; ++i
) {
18327 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
18330 #pragma omp target teams distribute
18331 for (int i
= 0; i
< 10; ++i
) {
18332 #pragma omp atomic // OK
18335 #pragma omp target teams distribute
18336 for (int i
= 0; i
< 10; ++i
) {
18337 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18340 #pragma omp target teams distribute
18341 for (int i
= 0; i
< 10; ++i
) {
18342 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18345 #pragma omp target teams distribute
18346 for (int i
= 0; i
< 10; ++i
) {
18347 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18348 for (int i
= 0; i
< 10; ++i
)
18351 #pragma omp target teams distribute
18352 for (int i
= 0; i
< 10; ++i
) {
18353 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18356 #pragma omp target teams distribute
18357 for (int i
= 0; i
< 10; ++i
) {
18358 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18361 #pragma omp target teams distribute
18362 for (int i
= 0; i
< 10; ++i
) {
18363 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
18366 #pragma omp target teams distribute
18367 for (int i
= 0; i
< 10; ++i
) {
18368 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18371 #pragma omp target teams distribute
18372 for (int i
= 0; i
< 10; ++i
) {
18373 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
18374 for (int i
= 0; i
< 10; ++i
)
18377 #pragma omp target teams distribute
18378 for (int i
= 0; i
< 10; ++i
) {
18379 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18380 for (int i
= 0; i
< 10; ++i
)
18383 #pragma omp target teams distribute
18384 for (int i
= 0; i
< 10; ++i
) {
18385 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
18386 for (int i
= 0; i
< 10; ++i
)
18389 #pragma omp target teams distribute
18390 for (int i
= 0; i
< 10; ++i
) {
18391 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
18392 for (int i
= 0; i
< 10; ++i
)
18395 #pragma omp target teams distribute
18396 for (int i
= 0; i
< 10; ++i
) {
18397 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
18398 for (int i
= 0; i
< 10; ++i
)
18401 #pragma omp target teams distribute
18402 for (int i
= 0; i
< 10; ++i
) {
18403 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams distribute' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
18404 for (int i
= 0; i
< 10; ++i
)
18407 #pragma omp target teams distribute
18408 for (int i
= 0; i
< 10; ++i
) {
18409 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18412 #pragma omp target teams distribute
18413 for (int i
= 0; i
< 10; ++i
) {
18414 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18415 for (int i
= 0; i
< 10; ++i
)
18418 #pragma omp target teams distribute
18419 for (int i
= 0; i
< 10; ++i
) {
18420 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18421 for (int i
= 0; i
< 10; ++i
)
18424 #pragma omp target teams distribute
18425 for (int i
= 0; i
< 10; ++i
) {
18426 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18427 for (int i
= 0; i
< 10; ++i
)
18430 #pragma omp target teams distribute
18431 for (int i
= 0; i
< 10; ++i
) {
18432 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams distribute' region}}
18433 for (int i
= 0; i
< 10; ++i
)
18437 // TARGET TEAMS DISTRIBUTE PARALLEL FOR DIRECTIVE
18438 #pragma omp target teams distribute parallel for // OK
18439 for (int i
= 0; i
< 10; ++i
)
18441 #pragma omp target teams distribute parallel for
18442 for (int i
= 0; i
< 10; ++i
) {
18443 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
18444 for (int i
= 0; i
< 10; ++i
)
18447 #pragma omp target teams distribute parallel for
18448 for (int i
= 0; i
< 10; ++i
) {
18449 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
18450 for (int i
= 0; i
< 10; ++i
)
18453 #pragma omp target teams distribute parallel for
18454 for (int i
= 0; i
< 10; ++i
) {
18455 #pragma omp for // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp for' directive into a parallel region?}}
18456 for (int i
= 0; i
< 10; ++i
)
18459 #pragma omp target teams distribute parallel for
18460 for (int i
= 0; i
< 10; ++i
) {
18461 #pragma omp simd // OK
18462 for (int i
= 0; i
< 10; ++i
)
18465 #pragma omp target teams distribute parallel for
18466 for (int i
= 0; i
< 10; ++i
) {
18467 #pragma omp for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp for simd' directive into a parallel region?}}
18468 for (int i
= 0; i
< 10; ++i
)
18471 #pragma omp target teams distribute parallel for
18472 for (int i
= 0; i
< 10; ++i
) {
18473 #pragma omp parallel // OK
18474 for (int i
= 0; i
< 10; ++i
)
18477 #pragma omp target teams distribute parallel for
18478 for (int i
= 0; i
< 10; ++i
) {
18479 #pragma omp sections // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp sections' directive into a parallel region?}}
18484 #pragma omp target teams distribute parallel for
18485 for (int i
= 0; i
< 10; ++i
) {
18486 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a target teams distribute parallel for region}}
18491 #pragma omp target teams distribute parallel for
18492 for (int i
= 0; i
< 10; ++i
) {
18493 #pragma omp single // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
18498 #pragma omp target teams distribute parallel for
18499 for (int i
= 0; i
< 10; ++i
) {
18500 #pragma omp master // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
18505 #pragma omp target teams distribute parallel for
18506 for (int i
= 0; i
< 10; ++i
) {
18507 #pragma omp critical // OK
18512 #pragma omp target teams distribute parallel for
18513 for (int i
= 0; i
< 10; ++i
) {
18514 #pragma omp parallel // OK
18522 #pragma omp target teams distribute parallel for
18523 for (int i
= 0; i
< 10; ++i
) {
18524 #pragma omp parallel for // OK
18525 for (int i
= 0; i
< 10; ++i
)
18528 #pragma omp target teams distribute parallel for
18529 for (int i
= 0; i
< 10; ++i
) {
18530 #pragma omp parallel for simd // OK
18531 for (int i
= 0; i
< 10; ++i
)
18534 #pragma omp target teams distribute parallel for
18535 for (int i
= 0; i
< 10; ++i
) {
18536 #pragma omp parallel sections // OK
18541 #pragma omp target teams distribute parallel for
18542 for (int i
= 0; i
< 10; ++i
) {
18543 #pragma omp task // OK
18548 #pragma omp target teams distribute parallel for
18549 for (int i
= 0; i
< 10; ++i
) {
18550 #pragma omp taskyield // OK
18553 #pragma omp target teams distribute parallel for
18554 for (int i
= 0; i
< 10; ++i
) {
18555 #pragma omp barrier // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
18558 #pragma omp target teams distribute parallel for
18559 for (int i
= 0; i
< 10; ++i
) {
18560 #pragma omp scan // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
18563 #pragma omp target teams distribute parallel for
18564 for (int i
= 0; i
< 10; ++i
) {
18565 #pragma omp taskwait // OK
18568 #pragma omp target teams distribute parallel for
18569 for (int i
= 0; i
< 10; ++i
) {
18570 #pragma omp flush // OK
18573 #pragma omp target teams distribute parallel for
18574 for (int i
= 0; i
< 10; ++i
) {
18575 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
18578 #pragma omp target teams distribute parallel for
18579 for (int i
= 0; i
< 10; ++i
) {
18580 #pragma omp atomic // OK
18583 #pragma omp target teams distribute parallel for
18584 for (int i
= 0; i
< 10; ++i
) {
18585 #pragma omp target // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18588 #pragma omp target teams distribute parallel for
18589 for (int i
= 0; i
< 10; ++i
) {
18590 #pragma omp target parallel // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18593 #pragma omp target teams distribute parallel for
18594 for (int i
= 0; i
< 10; ++i
) {
18595 #pragma omp target parallel for // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18596 for (int i
= 0; i
< 10; ++i
)
18599 #pragma omp target teams distribute parallel for
18600 for (int i
= 0; i
< 10; ++i
) {
18601 #pragma omp target enter data map(to: a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18604 #pragma omp target teams distribute parallel for
18605 for (int i
= 0; i
< 10; ++i
) {
18606 #pragma omp target exit data map(from: a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18609 #pragma omp target teams distribute parallel for
18610 for (int i
= 0; i
< 10; ++i
) {
18611 #pragma omp teams // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
18614 #pragma omp target teams distribute parallel for
18615 for (int i
= 0; i
< 10; ++i
) {
18616 #pragma omp target update to(a) // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18619 #pragma omp target teams distribute parallel for
18620 for (int i
= 0; i
< 10; ++i
) {
18621 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
18622 for (int i
= 0; i
< 10; ++i
)
18625 #pragma omp target teams distribute parallel for
18626 for (int i
= 0; i
< 10; ++i
) {
18627 #pragma omp target simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18628 for (int i
= 0; i
< 10; ++i
)
18631 #pragma omp target teams distribute parallel for
18632 for (int i
= 0; i
< 10; ++i
) {
18633 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
18634 for (int i
= 0; i
< 10; ++i
)
18637 #pragma omp target teams distribute parallel for
18638 for (int i
= 0; i
< 10; ++i
) {
18639 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
18640 for (int i
= 0; i
< 10; ++i
)
18643 #pragma omp target teams distribute parallel for
18644 for (int i
= 0; i
< 10; ++i
) {
18645 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
18646 for (int i
= 0; i
< 10; ++i
)
18649 #pragma omp target teams distribute parallel for
18650 for (int i
= 0; i
< 10; ++i
) {
18651 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
18652 for (int i
= 0; i
< 10; ++i
)
18655 #pragma omp target teams distribute parallel for
18656 for (int i
= 0; i
< 10; ++i
) {
18657 #pragma omp target teams // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18660 #pragma omp target teams distribute parallel for
18661 for (int i
= 0; i
< 10; ++i
) {
18662 #pragma omp target teams distribute // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18663 for (int i
= 0; i
< 10; ++i
)
18666 #pragma omp target teams distribute parallel for
18667 for (int i
= 0; i
< 10; ++i
) {
18668 #pragma omp target teams distribute parallel for // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18669 for (int i
= 0; i
< 10; ++i
)
18672 #pragma omp target teams distribute parallel for
18673 for (int i
= 0; i
< 10; ++i
) {
18674 #pragma omp target teams distribute parallel for simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18675 for (int i
= 0; i
< 10; ++i
)
18678 #pragma omp target teams distribute parallel for
18679 for (int i
= 0; i
< 10; ++i
) {
18680 #pragma omp target teams distribute simd // expected-error {{region cannot be nested inside 'target teams distribute parallel for' region}}
18681 for (int i
= 0; i
< 10; ++i
)
18685 // TARGET TEAMS DISTRIBUTE PARALLEL FOR SIMD DIRECTIVE
18686 #pragma omp target teams distribute parallel for simd // OK
18687 for (int i
= 0; i
< 10; ++i
)
18689 #pragma omp target teams distribute parallel for simd
18690 for (int i
= 0; i
< 10; ++i
) {
18691 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18692 for (int i
= 0; i
< 10; ++i
)
18695 #pragma omp target teams distribute parallel for simd
18696 for (int i
= 0; i
< 10; ++i
) {
18697 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18698 for (int i
= 0; i
< 10; ++i
)
18701 #pragma omp target teams distribute parallel for simd
18702 for (int i
= 0; i
< 10; ++i
) {
18703 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18704 for (int i
= 0; i
< 10; ++i
)
18707 #pragma omp target teams distribute parallel for simd
18708 for (int i
= 0; i
< 10; ++i
) {
18709 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
18710 for (int i
= 0; i
< 10; ++i
)
18713 #pragma omp target teams distribute parallel for simd
18714 for (int i
= 0; i
< 10; ++i
) {
18715 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18716 for (int i
= 0; i
< 10; ++i
)
18719 #pragma omp target teams distribute parallel for simd
18720 for (int i
= 0; i
< 10; ++i
) {
18721 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18722 for (int i
= 0; i
< 10; ++i
)
18725 #pragma omp target teams distribute parallel for simd
18726 for (int i
= 0; i
< 10; ++i
) {
18727 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18732 #pragma omp target teams distribute parallel for simd
18733 for (int i
= 0; i
< 10; ++i
) {
18734 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18739 #pragma omp target teams distribute parallel for simd
18740 for (int i
= 0; i
< 10; ++i
) {
18741 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18746 #pragma omp target teams distribute parallel for simd
18747 for (int i
= 0; i
< 10; ++i
) {
18748 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18753 #pragma omp target teams distribute parallel for simd
18754 for (int i
= 0; i
< 10; ++i
) {
18755 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18760 #pragma omp target teams distribute parallel for simd
18761 for (int i
= 0; i
< 10; ++i
) {
18762 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18770 #pragma omp target teams distribute parallel for simd
18771 for (int i
= 0; i
< 10; ++i
) {
18772 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18773 for (int i
= 0; i
< 10; ++i
)
18776 #pragma omp target teams distribute parallel for simd
18777 for (int i
= 0; i
< 10; ++i
) {
18778 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18779 for (int i
= 0; i
< 10; ++i
)
18782 #pragma omp target teams distribute parallel for simd
18783 for (int i
= 0; i
< 10; ++i
) {
18784 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18789 #pragma omp target teams distribute parallel for simd
18790 for (int i
= 0; i
< 10; ++i
) {
18791 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18796 #pragma omp target teams distribute parallel for simd
18797 for (int i
= 0; i
< 10; ++i
) {
18798 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18801 #pragma omp target teams distribute parallel for simd
18802 for (int i
= 0; i
< 10; ++i
) {
18803 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18806 #pragma omp target teams distribute parallel for simd
18807 for (int i
= 0; i
< 10; ++i
) {
18808 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target teams distribute parallel for simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
18811 #pragma omp target teams distribute parallel for simd
18812 for (int i
= 0; i
< 10; ++i
) {
18813 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18816 #pragma omp target teams distribute parallel for simd
18817 for (int i
= 0; i
< 10; ++i
) {
18818 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18821 #pragma omp target teams distribute parallel for simd
18822 for (int i
= 0; i
< 10; ++i
) {
18823 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18826 #pragma omp target teams distribute parallel for simd
18827 for (int i
= 0; i
< 10; ++i
) {
18828 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
18831 #pragma omp target teams distribute parallel for simd
18832 for (int i
= 0; i
< 10; ++i
) {
18833 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18836 #pragma omp target teams distribute parallel for simd
18837 for (int i
= 0; i
< 10; ++i
) {
18838 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18841 #pragma omp target teams distribute parallel for simd
18842 for (int i
= 0; i
< 10; ++i
) {
18843 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18844 for (int i
= 0; i
< 10; ++i
)
18847 #pragma omp target teams distribute parallel for simd
18848 for (int i
= 0; i
< 10; ++i
) {
18849 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18852 #pragma omp target teams distribute parallel for simd
18853 for (int i
= 0; i
< 10; ++i
) {
18854 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18857 #pragma omp target teams distribute parallel for simd
18858 for (int i
= 0; i
< 10; ++i
) {
18859 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18862 #pragma omp target teams distribute parallel for simd
18863 for (int i
= 0; i
< 10; ++i
) {
18864 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18867 #pragma omp target teams distribute parallel for simd
18868 for (int i
= 0; i
< 10; ++i
) {
18869 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18870 for (int i
= 0; i
< 10; ++i
)
18873 #pragma omp target teams distribute parallel for simd
18874 for (int i
= 0; i
< 10; ++i
) {
18875 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18876 for (int i
= 0; i
< 10; ++i
)
18879 #pragma omp target teams distribute parallel for simd
18880 for (int i
= 0; i
< 10; ++i
) {
18881 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18882 for (int i
= 0; i
< 10; ++i
)
18885 #pragma omp target teams distribute parallel for simd
18886 for (int i
= 0; i
< 10; ++i
) {
18887 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18888 for (int i
= 0; i
< 10; ++i
)
18891 #pragma omp target teams distribute parallel for simd
18892 for (int i
= 0; i
< 10; ++i
) {
18893 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18894 for (int i
= 0; i
< 10; ++i
)
18897 #pragma omp target teams distribute parallel for simd
18898 for (int i
= 0; i
< 10; ++i
) {
18899 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18900 for (int i
= 0; i
< 10; ++i
)
18903 #pragma omp target teams distribute parallel for simd
18904 for (int i
= 0; i
< 10; ++i
) {
18905 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18908 #pragma omp target teams distribute parallel for simd
18909 for (int i
= 0; i
< 10; ++i
) {
18910 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18911 for (int i
= 0; i
< 10; ++i
)
18914 #pragma omp target teams distribute parallel for simd
18915 for (int i
= 0; i
< 10; ++i
) {
18916 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18917 for (int i
= 0; i
< 10; ++i
)
18920 #pragma omp target teams distribute parallel for simd
18921 for (int i
= 0; i
< 10; ++i
) {
18922 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18923 for (int i
= 0; i
< 10; ++i
)
18926 #pragma omp target teams distribute parallel for simd
18927 for (int i
= 0; i
< 10; ++i
) {
18928 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18929 for (int i
= 0; i
< 10; ++i
)
18933 // TARGET TEAMS DISTRIBUTE SIMD DIRECTIVE
18934 #pragma omp target teams distribute simd // OK
18935 for (int i
= 0; i
< 10; ++i
)
18937 #pragma omp target teams distribute simd
18938 for (int i
= 0; i
< 10; ++i
) {
18939 #pragma omp distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18940 for (int i
= 0; i
< 10; ++i
)
18943 #pragma omp target teams distribute simd
18944 for (int i
= 0; i
< 10; ++i
) {
18945 #pragma omp distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18946 for (int i
= 0; i
< 10; ++i
)
18949 #pragma omp target teams distribute simd
18950 for (int i
= 0; i
< 10; ++i
) {
18951 #pragma omp for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18952 for (int i
= 0; i
< 10; ++i
)
18955 #pragma omp target teams distribute simd
18956 for (int i
= 0; i
< 10; ++i
) {
18957 #pragma omp simd // omp45warn-warning {{OpenMP only allows an ordered construct with the simd clause nested in a simd construct}}
18958 for (int i
= 0; i
< 10; ++i
)
18961 #pragma omp target teams distribute simd
18962 for (int i
= 0; i
< 10; ++i
) {
18963 #pragma omp for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18964 for (int i
= 0; i
< 10; ++i
)
18967 #pragma omp target teams distribute simd
18968 for (int i
= 0; i
< 10; ++i
) {
18969 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18970 for (int i
= 0; i
< 10; ++i
)
18973 #pragma omp target teams distribute simd
18974 for (int i
= 0; i
< 10; ++i
) {
18975 #pragma omp sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18980 #pragma omp target teams distribute simd
18981 for (int i
= 0; i
< 10; ++i
) {
18982 #pragma omp section // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18987 #pragma omp target teams distribute simd
18988 for (int i
= 0; i
< 10; ++i
) {
18989 #pragma omp single // expected-error {{OpenMP constructs may not be nested inside a simd region}}
18994 #pragma omp target teams distribute simd
18995 for (int i
= 0; i
< 10; ++i
) {
18996 #pragma omp master // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19001 #pragma omp target teams distribute simd
19002 for (int i
= 0; i
< 10; ++i
) {
19003 #pragma omp critical // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19008 #pragma omp target teams distribute simd
19009 for (int i
= 0; i
< 10; ++i
) {
19010 #pragma omp parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19018 #pragma omp target teams distribute simd
19019 for (int i
= 0; i
< 10; ++i
) {
19020 #pragma omp parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19021 for (int i
= 0; i
< 10; ++i
)
19024 #pragma omp target teams distribute simd
19025 for (int i
= 0; i
< 10; ++i
) {
19026 #pragma omp parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19027 for (int i
= 0; i
< 10; ++i
)
19030 #pragma omp target teams distribute simd
19031 for (int i
= 0; i
< 10; ++i
) {
19032 #pragma omp parallel sections // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19037 #pragma omp target teams distribute simd
19038 for (int i
= 0; i
< 10; ++i
) {
19039 #pragma omp task // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19044 #pragma omp target teams distribute simd
19045 for (int i
= 0; i
< 10; ++i
) {
19046 #pragma omp taskyield // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19049 #pragma omp target teams distribute simd
19050 for (int i
= 0; i
< 10; ++i
) {
19051 #pragma omp barrier // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19054 #pragma omp target teams distribute simd
19055 for (int i
= 0; i
< 10; ++i
) {
19056 #pragma omp scan // omp45-error {{OpenMP constructs may not be nested inside a simd region}} omp50-error {{region cannot be closely nested inside 'target teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}} omp51-error {{region cannot be closely nested inside 'target teams distribute simd' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
19059 #pragma omp target teams distribute simd
19060 for (int i
= 0; i
< 10; ++i
) {
19061 #pragma omp taskwait // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19064 #pragma omp target teams distribute simd
19065 for (int i
= 0; i
< 10; ++i
) {
19066 #pragma omp flush // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19069 #pragma omp target teams distribute simd
19070 for (int i
= 0; i
< 10; ++i
) {
19071 #pragma omp ordered // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19074 #pragma omp target teams distribute simd
19075 for (int i
= 0; i
< 10; ++i
) {
19076 #pragma omp atomic // omp45-error {{OpenMP constructs may not be nested inside a simd region}}
19079 #pragma omp target teams distribute simd
19080 for (int i
= 0; i
< 10; ++i
) {
19081 #pragma omp target // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19084 #pragma omp target teams distribute simd
19085 for (int i
= 0; i
< 10; ++i
) {
19086 #pragma omp target parallel // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19089 #pragma omp target teams distribute simd
19090 for (int i
= 0; i
< 10; ++i
) {
19091 #pragma omp target parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19092 for (int i
= 0; i
< 10; ++i
)
19095 #pragma omp target teams distribute simd
19096 for (int i
= 0; i
< 10; ++i
) {
19097 #pragma omp target enter data map(to: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19100 #pragma omp target teams distribute simd
19101 for (int i
= 0; i
< 10; ++i
) {
19102 #pragma omp target exit data map(from: a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19105 #pragma omp target teams distribute simd
19106 for (int i
= 0; i
< 10; ++i
) {
19107 #pragma omp teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19110 #pragma omp target teams distribute simd
19111 for (int i
= 0; i
< 10; ++i
) {
19112 #pragma omp target update to(a) // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19115 #pragma omp target teams distribute simd
19116 for (int i
= 0; i
< 10; ++i
) {
19117 #pragma omp distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19118 for (int i
= 0; i
< 10; ++i
)
19121 #pragma omp target teams distribute simd
19122 for (int i
= 0; i
< 10; ++i
) {
19123 #pragma omp target simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19124 for (int i
= 0; i
< 10; ++i
)
19127 #pragma omp target teams distribute simd
19128 for (int i
= 0; i
< 10; ++i
) {
19129 #pragma omp teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19130 for (int i
= 0; i
< 10; ++i
)
19133 #pragma omp target teams distribute simd
19134 for (int i
= 0; i
< 10; ++i
) {
19135 #pragma omp teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19136 for (int i
= 0; i
< 10; ++i
)
19139 #pragma omp target teams distribute simd
19140 for (int i
= 0; i
< 10; ++i
) {
19141 #pragma omp teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19142 for (int i
= 0; i
< 10; ++i
)
19145 #pragma omp target teams distribute simd
19146 for (int i
= 0; i
< 10; ++i
) {
19147 #pragma omp teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19148 for (int i
= 0; i
< 10; ++i
)
19151 #pragma omp target teams distribute simd
19152 for (int i
= 0; i
< 10; ++i
) {
19153 #pragma omp target teams // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19156 #pragma omp target teams distribute simd
19157 for (int i
= 0; i
< 10; ++i
) {
19158 #pragma omp target teams distribute // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19159 for (int i
= 0; i
< 10; ++i
)
19162 #pragma omp target teams distribute simd
19163 for (int i
= 0; i
< 10; ++i
) {
19164 #pragma omp target teams distribute parallel for // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19165 for (int i
= 0; i
< 10; ++i
)
19168 #pragma omp target teams distribute simd
19169 for (int i
= 0; i
< 10; ++i
) {
19170 #pragma omp target teams distribute parallel for simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19171 for (int i
= 0; i
< 10; ++i
)
19174 #pragma omp target teams distribute simd
19175 for (int i
= 0; i
< 10; ++i
) {
19176 #pragma omp target teams distribute simd // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19177 for (int i
= 0; i
< 10; ++i
)
19183 #pragma omp parallel // OK
19186 #pragma omp parallel for // OK
19187 for(int i
= 0; i
< 10; i
++)
19190 #pragma omp parallel for simd // OK
19191 for(int i
= 0; i
< 10; i
++)
19195 for (int i
= 0; i
< 10; ++i
)
19199 for (int i
= 0; i
< 10; ++i
)
19202 #pragma omp for simd
19203 for (int i
= 0; i
< 10; ++i
)
19206 #pragma omp sections
19211 #pragma omp section // expected-error {{'omp section' directive must be closely nested to a sections region, not a scope region}}
19225 #pragma omp critical
19230 #pragma omp parallel sections
19235 #pragma omp parallel master
19240 #pragma omp parallel masked
19251 #pragma omp taskyield
19256 #pragma omp barrier
19261 #pragma omp scan // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp scan' directive into a for, simd, for simd, parallel for, or parallel for simd region?}}
19266 #pragma omp taskwait
19276 #pragma omp ordered // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp ordered' directive into a for or a parallel for region with 'ordered' clause?}}
19286 #pragma omp target parallel
19291 #pragma omp target parallel for
19292 for (int i
= 0; i
< 10; ++i
)
19297 #pragma omp target enter data map(to: a)
19302 #pragma omp target exit data map(from: a)
19307 #pragma omp taskloop
19308 for (int i
= 0; i
< 10; ++i
)
19313 #pragma omp target // OK
19318 #pragma omp teams // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams' directive into a target region?}}
19323 #pragma omp target teams // OK
19328 #pragma omp distribute // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute' directive into a teams region?}}
19329 for (int i
= 0; i
< 10; ++i
)
19334 #pragma omp distribute parallel for simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute parallel for simd' directive into a teams region?}}
19335 for (int i
= 0; i
< 10; ++i
)
19340 #pragma omp distribute simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp distribute simd' directive into a teams region?}}
19341 for (int i
= 0; i
< 10; ++i
)
19346 #pragma omp target simd // OK
19347 for (int i
= 0; i
< 10; ++i
)
19352 #pragma omp teams distribute // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute' directive into a target region?}}
19353 for (int i
= 0; i
< 10; ++i
)
19358 #pragma omp teams distribute simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute simd' directive into a target region?}}
19359 for (int i
= 0; i
< 10; ++i
)
19364 #pragma omp teams distribute parallel for simd // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute parallel for simd' directive into a target region?}}
19365 for (int i
= 0; i
< 10; ++i
)
19370 #pragma omp teams distribute parallel for // expected-error {{region cannot be closely nested inside 'scope' region; perhaps you forget to enclose 'omp teams distribute parallel for' directive into a target region?}}
19371 for (int i
= 0; i
< 10; ++i
)
19376 #pragma omp target teams // OK
19381 #pragma omp target teams distribute // OK
19382 for (int i
= 0; i
< 10; ++i
)
19387 #pragma omp target teams distribute parallel for // OK
19388 for (int i
= 0; i
< 10; ++i
)
19393 #pragma omp target teams distribute parallel for simd // OK
19394 for (int i
= 0; i
< 10; ++i
)
19399 #pragma omp target teams distribute simd // OK
19400 for (int i
= 0; i
< 10; ++i
)
19404 for (int i
= 0; i
< 10; ++i
) {
19405 #pragma omp scope // expected-error {{region cannot be closely nested inside 'for' region}}
19409 #pragma omp for simd
19410 for (int i
= 0; i
< 10; ++i
) {
19411 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19415 #pragma omp sections
19417 #pragma omp scope // expected-error {{region cannot be closely nested inside 'sections' region}}
19421 #pragma omp sections
19423 #pragma omp section
19425 #pragma omp scope // expected-error {{region cannot be closely nested inside 'section' region}}
19432 #pragma omp scope // expected-error {{region cannot be closely nested inside 'single' region}}
19438 #pragma omp scope // expected-error {{region cannot be closely nested inside 'master' region}}
19442 #pragma omp critical
19444 #pragma omp scope // expected-error {{region cannot be closely nested inside 'critical' region}}
19448 #pragma omp parallel for
19449 for (int i
= 0; i
< 10; ++i
) {
19450 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel for' region}}
19454 #pragma omp parallel for simd
19455 for (int i
= 0; i
< 10; ++i
) {
19456 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19460 #pragma omp parallel master
19462 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel master' region}}
19466 #pragma omp parallel sections
19468 #pragma omp scope // expected-error {{region cannot be closely nested inside 'parallel sections' region}}
19474 #pragma omp scope // expected-error {{region cannot be closely nested inside 'task' region}}
19478 #pragma omp ordered
19480 #pragma omp scope // expected-error {{region cannot be closely nested inside 'ordered' region}}
19485 // expected-error@+2 {{the statement for 'atomic' must be an expression statement of form '++x;', '--x;', 'x++;', 'x--;', 'x binop= expr;', 'x = x binop expr' or 'x = expr binop x', where x is an lvalue expression with scalar type}}
19486 // expected-note@+1 {{expected an expression statement}}
19488 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside an atomic region}}
19495 #pragma omp scope // expected-error {{region cannot be closely nested inside 'teams' region; perhaps you forget to enclose 'omp scope' directive into a parallel region?}}
19499 #pragma omp taskloop
19500 for (int i
= 0; i
< 10; ++i
) {
19501 #pragma omp scope // expected-error {{region cannot be closely nested inside 'taskloop' region}}
19507 #pragma omp distribute parallel for
19508 for (int i
= 0; i
< 10; ++i
) {
19509 #pragma omp scope // expected-error {{region cannot be closely nested inside 'distribute parallel for' region}}
19515 #pragma omp distribute parallel for simd
19516 for (int i
= 0; i
< 10; ++i
) {
19517 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19521 #pragma omp target simd
19522 for (int i
= 0; i
< 10; ++i
) {
19523 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19528 #pragma omp teams distribute simd
19529 for (int i
= 0; i
< 10; ++i
) {
19530 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19535 #pragma omp teams distribute parallel for simd
19536 for (int i
= 0; i
< 10; ++i
) {
19537 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19542 #pragma omp teams distribute parallel for
19543 for (int i
= 0; i
< 10; ++i
) {
19544 #pragma omp scope // expected-error {{region cannot be closely nested inside 'teams distribute parallel for' region}}
19548 #pragma omp target teams
19550 #pragma omp scope // expected-error {{region cannot be closely nested inside 'target teams' region; perhaps you forget to enclose 'omp scope' directive into a parallel region?}}
19554 #pragma omp target teams distribute parallel for
19555 for (int i
= 0; i
< 10; ++i
) {
19556 #pragma omp scope // expected-error {{region cannot be closely nested inside 'target teams distribute parallel for' region}}
19560 #pragma omp target teams distribute parallel for simd
19561 for (int i
= 0; i
< 10; ++i
) {
19562 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19566 #pragma omp target teams distribute simd
19567 for (int i
= 0; i
< 10; ++i
) {
19568 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}
19573 for (int i
= 0; i
< 10; ++i
) {
19574 #pragma omp scope // expected-error {{OpenMP constructs may not be nested inside a simd region}}