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
93 lines
2.5 KiB
Fortran
93 lines
2.5 KiB
Fortran
!RUN: %python %S/../test_errors.py %s %flang -fopenmp -fopenmp-version=52 -Werror -Wno-experimental-option
|
|
|
|
! The directives to check:
|
|
! cancellation_point
|
|
! declare_mapper
|
|
! declare_reduction
|
|
! declare_simd
|
|
! declare_target
|
|
! declare_variant
|
|
! target_data
|
|
! target_enter_data
|
|
! target_exit_data
|
|
! target_update
|
|
|
|
subroutine f00
|
|
implicit none
|
|
integer :: i
|
|
|
|
!$omp parallel
|
|
do i = 1, 10
|
|
!WARNING: Directive spelling 'CANCELLATION_POINT' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp cancellation_point parallel
|
|
enddo
|
|
!$omp end parallel
|
|
end
|
|
|
|
subroutine f01
|
|
type :: t
|
|
integer :: x
|
|
end type
|
|
!WARNING: Directive spelling 'DECLARE_MAPPER' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp declare_mapper(t :: v) map(v%x)
|
|
end
|
|
|
|
subroutine f02
|
|
type :: t
|
|
integer :: x
|
|
end type
|
|
!WARNING: Directive spelling 'DECLARE_REDUCTION' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp declare_reduction(+ : t : omp_out%x = omp_out%x + omp_in%x)
|
|
end
|
|
|
|
subroutine f03
|
|
!WARNING: Directive spelling 'DECLARE_SIMD' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp declare_simd
|
|
end
|
|
|
|
subroutine f04
|
|
!WARNING: Directive spelling 'DECLARE_TARGET' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp declare_target
|
|
end
|
|
|
|
subroutine f05
|
|
implicit none
|
|
interface
|
|
subroutine g05
|
|
end
|
|
end interface
|
|
!WARNING: Directive spelling 'DECLARE_VARIANT' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp declare_variant(g05) match(user={condition(.true.)})
|
|
end
|
|
|
|
subroutine f06
|
|
implicit none
|
|
integer :: i
|
|
!WARNING: Directive spelling 'TARGET_DATA' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp target_data map(tofrom: i)
|
|
i = 0
|
|
!WARNING: Directive spelling 'TARGET_DATA' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp end target_data
|
|
end
|
|
|
|
subroutine f07
|
|
implicit none
|
|
integer :: i
|
|
!WARNING: Directive spelling 'TARGET_ENTER_DATA' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp target_enter_data map(to: i)
|
|
end
|
|
|
|
subroutine f08
|
|
implicit none
|
|
integer :: i
|
|
!WARNING: Directive spelling 'TARGET_EXIT_DATA' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp target_exit_data map(from: i)
|
|
end
|
|
|
|
subroutine f09
|
|
implicit none
|
|
integer :: i
|
|
!WARNING: Directive spelling 'TARGET_UPDATE' is introduced in a later OpenMP version, try -fopenmp-version=60
|
|
!$omp target_update to(i)
|
|
end
|