We finally got our buildbot added (to staging, at least) so we want to start running L0 tests in CI. We need `check-offload` to pass though, so XFAIL everything failing. There's a couple `UNSUPPORTED` as well, those are for sporadic fails. Also make set the `gpu` and `intelgpu` LIT variables when testing the `spirv64-intel` triple. We have no DeviceRTL yet so basically everything fails, but we manage to get ``` Total Discovered Tests: 432 Unsupported : 169 (39.12%) Passed : 67 (15.51%) Expectedly Failed: 196 (45.37%) ``` We still don't build the level zero plugin by default and these tests don't run unless the plugin was built, so this has no effect on most builds. --------- Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
38 lines
877 B
Fortran
38 lines
877 B
Fortran
! Offloading test checking interaction of pointer and target with target where
|
|
! 3-D bounds have been specified
|
|
! REQUIRES: flang, amdgpu
|
|
|
|
! RUN: %libomptarget-compile-fortran-run-and-check-generic
|
|
! XFAIL: intelgpu
|
|
program main
|
|
integer, pointer :: inArray(:,:,:)
|
|
integer, pointer :: outArray(:,:,:)
|
|
integer, target :: in(3,3,3)
|
|
integer, target :: out(3,3,3)
|
|
|
|
inArray => in
|
|
outArray => out
|
|
|
|
do i = 1, 3
|
|
do j = 1, 3
|
|
do k = 1, 3
|
|
inArray(i, j, k) = 42
|
|
outArray(i, j, k) = 0
|
|
end do
|
|
end do
|
|
end do
|
|
|
|
!$omp target map(tofrom:inArray(1:3, 1:3, 2:2), outArray(1:3, 1:3, 1:3))
|
|
do j = 1, 3
|
|
do k = 1, 3
|
|
outArray(k, j, 2) = inArray(k, j, 2)
|
|
end do
|
|
end do
|
|
!$omp end target
|
|
|
|
print *, outArray
|
|
|
|
end program
|
|
|
|
! CHECK: 0 0 0 0 0 0 0 0 0 42 42 42 42 42 42 42 42 42 0 0 0 0 0 0 0 0 0
|