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
119 lines
2.7 KiB
Fortran
119 lines
2.7 KiB
Fortran
!REQUIRES: openmp_runtime
|
|
!RUN: %python %S/../test_errors.py %s %flang %openmp_flags -fopenmp -fopenmp-version=60
|
|
|
|
module m
|
|
use omp_lib
|
|
|
|
implicit none
|
|
! Not in omp_lib yet.
|
|
integer, parameter :: omp_not_impex = 0
|
|
integer, parameter :: omp_import = 1
|
|
integer, parameter :: omp_export = 2
|
|
integer, parameter :: omp_impex = 3
|
|
|
|
contains
|
|
|
|
subroutine f00
|
|
!$omp taskgraph
|
|
!ERROR: Only task-generating constructs are allowed inside TASKGRAPH region
|
|
!$omp parallel
|
|
!$omp end parallel
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
subroutine f01
|
|
!$omp taskgraph
|
|
!$omp task
|
|
!Non-task-generating constructs are ok if contained in an encountered task.
|
|
!No diagnostic expected.
|
|
!$omp parallel
|
|
!$omp end parallel
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
subroutine f02
|
|
!$omp taskgraph
|
|
!ERROR: Transparent replayable tasks are not allowed in a TASKGRAPH region
|
|
!$omp task transparent
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!Not a transparent task.
|
|
!No diagnostic expected.
|
|
!$omp task transparent(omp_not_impex)
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!Ok: transparent, but not replayable task.
|
|
!No diagnostic expected.
|
|
!$omp task replayable(.false.) transparent
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
subroutine f03
|
|
integer(kind=omp_event_handle_kind) :: event
|
|
|
|
!$omp taskgraph
|
|
!ERROR: Detachable replayable tasks are not allowed in a TASKGRAPH region
|
|
!$omp task detach(event)
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!Ok: task is detachable, but not replayable.
|
|
!No diagnostic expected
|
|
!$omp task detach(event) replayable(.false.)
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
subroutine f04
|
|
!$omp taskgraph
|
|
!ERROR: Undeferred replayable tasks are not allowed in a TASKGRAPH region
|
|
!$omp task if(.false.)
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!Ok: task is undeferred, but not replayable.
|
|
!No diagnostic expected.
|
|
!$omp task if(.false.) replayable(.false.)
|
|
!$omp end task
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
subroutine f05
|
|
integer :: i
|
|
|
|
!$omp taskgraph
|
|
!ERROR: The NOGROUP clause must be specified on every construct in a TASKGRAPH region that could be enclosed in an implicit TASKGROUP
|
|
!$omp taskloop
|
|
do i = 1, 10
|
|
enddo
|
|
!$omp end taskloop
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!This also applies to non-replayable constructs
|
|
!ERROR: The NOGROUP clause must be specified on every construct in a TASKGRAPH region that could be enclosed in an implicit TASKGROUP
|
|
!$omp taskloop replayable(.false.)
|
|
do i = 1, 10
|
|
enddo
|
|
!$omp end taskloop
|
|
!$omp end taskgraph
|
|
|
|
!$omp taskgraph
|
|
!No diagnostic expected.
|
|
!$omp taskloop replayable(.false.) nogroup
|
|
do i = 1, 10
|
|
enddo
|
|
!$omp end taskloop
|
|
!$omp end taskgraph
|
|
end
|
|
|
|
end module
|