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
84 lines
4.0 KiB
Plaintext
84 lines
4.0 KiB
Plaintext
! RUN: %python %S/test_errors.py %s %flang_fc1
|
|
subroutine s(n,m,a,l,c)
|
|
integer, intent(in) :: n
|
|
integer, device, intent(in) :: m(n)
|
|
real, device, intent(in) :: a(n)
|
|
logical, device, intent(in) :: l(n)
|
|
integer j, mr
|
|
real ar
|
|
logical lr
|
|
complex :: cr
|
|
complex, device, intent(in) :: c(n)
|
|
!$cuf kernel do <<<*,*>>> reduce (+:mr,ar)
|
|
do j=1,n; mr = mr + m(j); ar = ar + a(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (+:lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (*:mr,ar)
|
|
do j=1,n; mr = mr * m(j); ar = ar * a(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (*:lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (max:mr,ar)
|
|
do j=1,n; mr = max(mr,m(j)); ar = max(ar,a(j)); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (max:lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (min:mr,ar)
|
|
do j=1,n; mr = min(mr,m(j)); ar = min(ar,a(j)); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (min:lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (iand:mr)
|
|
do j=1,n; mr = iand(mr,m(j)); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (iand:ar,lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (ieor:mr)
|
|
do j=1,n; mr = ieor(mr,m(j)); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (ieor:ar,lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (ior:mr)
|
|
do j=1,n; mr = ior(mr,m(j)); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type LOGICAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (ior:ar,lr)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (.and.:lr)
|
|
do j=1,n; lr = lr .and. l(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type INTEGER(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (.and.:mr,ar)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (.eqv.:lr)
|
|
do j=1,n; lr = lr .eqv. l(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type INTEGER(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (.eqv.:mr,ar)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (.neqv.:lr)
|
|
do j=1,n; lr = lr .neqv. l(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type INTEGER(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (.neqv.:mr,ar)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (.or.:lr)
|
|
do j=1,n; lr = lr .or. l(j); end do
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type INTEGER(4)
|
|
!ERROR: !$CUF KERNEL DO REDUCE operation is not acceptable for a variable with type REAL(4)
|
|
!$cuf kernel do <<<*,*>>> reduce (.or.:mr,ar)
|
|
do j=1,n; end do
|
|
!$cuf kernel do <<<*,*>>> reduce (+:cr) ! ok complex type
|
|
do j=1,n; cr = cr + c(j); end do
|
|
! '-' is not a supported CUF reduction operator, regardless of variable type
|
|
!ERROR: '-' is not a supported !$CUF KERNEL DO REDUCE operator
|
|
!$cuf kernel do <<<*,*>>> reduce (-:mr)
|
|
do j=1,n; end do
|
|
!ERROR: '-' is not a supported !$CUF KERNEL DO REDUCE operator
|
|
!$cuf kernel do <<<*,*>>> reduce (-:ar)
|
|
do j=1,n; end do
|
|
end
|