CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
114 lines
2.8 KiB
Fortran
114 lines
2.8 KiB
Fortran
! RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=50
|
|
|
|
! OpenMP Version 5.0
|
|
! Check OpenMP construct validity for the following directives:
|
|
! 2.7 Teams Construct
|
|
|
|
program main
|
|
integer :: i, j, N = 10
|
|
real :: a, b, c
|
|
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
|
|
!$omp target
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end target
|
|
|
|
!$omp target
|
|
!$omp parallel
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end parallel
|
|
!$omp end target
|
|
|
|
!$omp parallel
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end parallel
|
|
|
|
!$omp do
|
|
do i = 1, N
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
end do
|
|
|
|
!$omp master
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end master
|
|
|
|
!$omp target parallel
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end target parallel
|
|
|
|
!$omp target
|
|
!$omp teams
|
|
!ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end teams
|
|
!$omp end target
|
|
|
|
!$omp target teams
|
|
!ERROR: Only `DISTRIBUTE`, `PARALLEL`, or `LOOP` regions are allowed to be strictly nested inside `TEAMS` region.
|
|
!ERROR: TEAMS region can only be strictly nested within the implicit parallel region or TARGET region
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end target teams
|
|
|
|
!ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
|
|
!$omp target
|
|
do i = 1, N
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
enddo
|
|
!$omp end target
|
|
|
|
!ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
|
|
!$omp target
|
|
if (i .GT. 1) then
|
|
if (j .GT. 1) then
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
end if
|
|
end if
|
|
!$omp end target
|
|
|
|
!ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
|
|
!$omp target
|
|
b = 3.14
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
!$omp end target
|
|
|
|
!ERROR: TARGET construct with nested TEAMS region contains statements or directives outside of the TEAMS construct
|
|
!$omp target
|
|
!$omp teams
|
|
a = 3.14
|
|
!$omp end teams
|
|
c = 3.14
|
|
!$omp end target
|
|
|
|
end program main
|