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
39 lines
1.5 KiB
Fortran
39 lines
1.5 KiB
Fortran
! Module !$acc declare with an immediate structure component is lowered when
|
|
! the whole variable is listed first in the same clause, or on an earlier
|
|
! `!$acc declare` line in the module. Each split compiles one module so the
|
|
! output must contain exactly one acc.global_ctor and one acc.global_dtor for
|
|
! the parent `obj` (no duplicate ctor/dtor for the structure component).
|
|
|
|
! RUN: split-file %s %t
|
|
! RUN: bbc -fopenacc -emit-hlfir %t/mod_same_clause.f90 -o - | FileCheck %s --check-prefixes=SAME
|
|
! RUN: bbc -fopenacc -emit-hlfir %t/mod_separate_declare.f90 -o - | FileCheck %s --check-prefixes=SEP
|
|
|
|
! SAME-DAG: fir.global @_QMmod_same_clauseEobj {acc.declare = #acc.declare<dataClause = acc_create>}
|
|
! SAME-COUNT-1: acc.global_ctor @_QMmod_same_clauseEobj_acc_ctor {
|
|
! SAME-COUNT-1: acc.global_dtor @_QMmod_same_clauseEobj_acc_dtor {
|
|
|
|
! SEP-DAG: fir.global @_QMmod_separate_declareEobj {acc.declare = #acc.declare<dataClause = acc_create>}
|
|
! SEP-COUNT-1: acc.global_ctor @_QMmod_separate_declareEobj_acc_ctor {
|
|
! SEP-COUNT-1: acc.global_dtor @_QMmod_separate_declareEobj_acc_dtor {
|
|
|
|
//--- mod_same_clause.f90
|
|
|
|
module mod_same_clause
|
|
type :: record_with_array
|
|
real :: vals(8)
|
|
end type
|
|
type(record_with_array) :: obj
|
|
!$acc declare create(obj, obj%vals)
|
|
end module
|
|
|
|
//--- mod_separate_declare.f90
|
|
|
|
module mod_separate_declare
|
|
type :: record_with_array
|
|
real :: vals(8)
|
|
end type
|
|
type(record_with_array) :: obj
|
|
!$acc declare create(obj)
|
|
!$acc declare create(obj%vals)
|
|
end module
|