1 ! Offloading test with two target regions mapping the same
2 ! declare target Fortran array and writing some values to
3 ! it before checking the host correctly receives the
4 ! correct updates made on the device.
5 ! REQUIRES: flang, amdgcn-amd-amdhsa
6 ! UNSUPPORTED: nvptx64-nvidia-cuda
7 ! UNSUPPORTED: nvptx64-nvidia-cuda-LTO
8 ! UNSUPPORTED: aarch64-unknown-linux-gnu
9 ! UNSUPPORTED: aarch64-unknown-linux-gnu-LTO
10 ! UNSUPPORTED: x86_64-pc-linux-gnu
11 ! UNSUPPORTED: x86_64-pc-linux-gnu-LTO
13 ! RUN: %libomptarget-compile-fortran-run-and-check-generic
16 integer :: sp(10) = (/0,0,0,0,0,0,0,0,0,0/)
17 !$omp declare target link(sp)
25 !$omp target map(tofrom:sp) map(to: i, j)
32 !$omp target map(tofrom:sp) map(to: i, j)
43 ! CHECK: 2 4 6 8 10 12 14 16 18 20