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
64 lines
2.2 KiB
Fortran
64 lines
2.2 KiB
Fortran
! REQUIRES: openmp_runtime
|
|
! RUN: %python %S/../test_errors.py %s %flang_fc1 %openmp_flags -fopenmp-version=52
|
|
|
|
! OpenMP Version 5.2: 12.5.2
|
|
! Various checks for DETACH Clause
|
|
|
|
program detach01
|
|
use omp_lib, only: omp_event_handle_kind
|
|
implicit none
|
|
real :: e, x
|
|
integer(omp_event_handle_kind) :: event_01, event_02(2)
|
|
integer(omp_event_handle_kind), pointer :: event_03
|
|
|
|
type :: t
|
|
integer(omp_event_handle_kind) :: event
|
|
end type
|
|
type(t) :: t_01
|
|
|
|
!ERROR: The event-handle: `e` must be of type integer(kind=omp_event_handle_kind)
|
|
!$omp task detach(e)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: If a DETACH clause appears on a directive, then the encountering task must not be a FINAL task
|
|
!$omp task detach(event_01) final(.false.)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable: `event_01` that appears in a DETACH clause cannot appear on PRIVATE clause on the same construct
|
|
!$omp task detach(event_01) private(event_01)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable: `event_01` that appears in a DETACH clause cannot appear on FIRSTPRIVATE clause on the same construct
|
|
!$omp task detach(event_01) firstprivate(event_01)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable: `event_01` that appears in a DETACH clause cannot appear on SHARED clause on the same construct
|
|
!$omp task detach(event_01) shared(event_01)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable: `event_01` that appears in a DETACH clause cannot appear on IN_REDUCTION clause on the same construct
|
|
!$omp task detach(event_01) in_reduction(+:event_01)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a DETACH clause
|
|
!$omp task detach(event_02(1))
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: A variable that is part of another variable (as an array or structure element) cannot appear in a DETACH clause
|
|
!$omp task detach(t_01%event)
|
|
x = x + 1
|
|
!$omp end task
|
|
|
|
!ERROR: The event-handle: `event_03` must not have the POINTER attribute
|
|
!$omp task detach(event_03)
|
|
x = x + 1
|
|
!$omp end task
|
|
end program
|