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
32 lines
1.1 KiB
Fortran
32 lines
1.1 KiB
Fortran
!RUN: bbc -fopenmp -emit-hlfir -o - %s | FileCheck %s
|
|
|
|
!https://github.com/llvm/llvm-project/issues/91205
|
|
|
|
!CHECK: omp.parallel if(%{{[0-9]+}}) {
|
|
!CHECK: %[[THP1:[0-9]+]] = omp.threadprivate %{{[0-9]+}}#0
|
|
!CHECK: %[[DCL1:[0-9]+]]:2 = hlfir.declare %[[THP1]] {uniq_name = "_QFcopyin_scalar_arrayEx1"}
|
|
!CHECK: %[[LD1:[0-9]+]] = fir.load %{{[0-9]+}}#0
|
|
!CHECK: hlfir.assign %[[LD1]] to %[[DCL1]]#0
|
|
!CHECK: %[[THP2:[0-9]+]] = omp.threadprivate %{{[0-9]+}}#0
|
|
!CHECK: %[[SHP2:[0-9]+]] = fir.shape %c{{[0-9]+}}
|
|
!CHECK: %[[DCL2:[0-9]+]]:2 = hlfir.declare %[[THP2]](%[[SHP2]]) {uniq_name = "_QFcopyin_scalar_arrayEx2"}
|
|
!CHECK: hlfir.assign %{{[0-9]+}}#0 to %[[DCL2]]#0
|
|
!CHECK: omp.barrier
|
|
!CHECK: fir.call @_QPsub1(%[[DCL1]]#0, %[[DCL2]]#0)
|
|
!CHECK: omp.terminator
|
|
!CHECK: }
|
|
|
|
subroutine copyin_scalar_array()
|
|
integer(kind=4), save :: x1
|
|
integer(kind=8), save :: x2(10)
|
|
!$omp threadprivate(x1, x2)
|
|
|
|
! Have x1 appear before x2 in the AST node for the `parallel` construct,
|
|
! but at the same time have them in a different order in `copyin`.
|
|
!$omp parallel if (x1 .eq. x2(1)) copyin(x2, x1)
|
|
call sub1(x1, x2)
|
|
!$omp end parallel
|
|
|
|
end
|
|
|