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
98 lines
1.9 KiB
Fortran
98 lines
1.9 KiB
Fortran
! RUN: %flang_fc1 -fopenacc -fdebug-unparse %s | FileCheck %s
|
|
|
|
! Test unparse does not crash with OpenACC directives.
|
|
|
|
! Test bug 47659
|
|
program bug47659
|
|
integer :: i, j
|
|
label1: do i = 1, 10
|
|
!$acc parallel loop
|
|
do j = 1, 10
|
|
if (j == 2) then
|
|
stop 1
|
|
end if
|
|
end do
|
|
end do label1
|
|
end program
|
|
|
|
!CHECK-LABEL: PROGRAM BUG47659
|
|
!CHECK: !$ACC PARALLEL LOOP
|
|
|
|
|
|
subroutine acc_loop()
|
|
integer :: i, j
|
|
real :: a(10)
|
|
integer :: gangNum, gangDim, gangStatic
|
|
|
|
!CHECK-LABEL: SUBROUTINE acc_loop
|
|
|
|
!$acc loop collapse(force: 2)
|
|
do i = 1, 10
|
|
do j = 1, 10
|
|
end do
|
|
end do
|
|
!CHECK: !$ACC LOOP COLLAPSE(FORCE:2_4)
|
|
|
|
!$acc loop gang
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG
|
|
|
|
!$acc loop gang(gangNum)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(NUM:gangnum)
|
|
|
|
!$acc loop gang(num: gangNum)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(NUM:gangnum)
|
|
|
|
!$acc loop gang(dim: gangDim)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(DIM:gangdim)
|
|
|
|
!$acc loop gang(static:gangStatic)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(STATIC:gangstatic)
|
|
|
|
!$acc loop gang(static:*)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(STATIC:*)
|
|
|
|
!$acc loop gang(static:gangStatic, dim: gangDim)
|
|
do i = 1, 10
|
|
a(i) = i
|
|
end do
|
|
! CHECK: !$ACC LOOP GANG(STATIC:gangstatic,DIM:gangdim)
|
|
|
|
end subroutine
|
|
|
|
subroutine routine1()
|
|
!$acc routine bind("routine1_")
|
|
! CHECK: !$ACC ROUTINE BIND("routine1_")
|
|
end subroutine
|
|
|
|
subroutine routine2()
|
|
!$acc routine(routine2) bind(routine2)
|
|
! CHECK: !$ACC ROUTINE(routine2) BIND(routine2)
|
|
end subroutine
|
|
|
|
subroutine routine3()
|
|
end subroutine
|
|
|
|
module routine_multi_mod
|
|
! Multi-name form: round-trips as-is (NV extension, not canonicalized).
|
|
!$acc routine(routine2, routine3) seq
|
|
! CHECK: !$ACC ROUTINE(routine2,routine3) SEQ
|
|
end module
|