Many tests in the `offload` project have requirements defined by which targets are not supported rather than which platforms are supported. This patch aims to streamline the requirement definitions by adding four new feature tags: `host`, `gpu`, `amdgpu`, and `nvidiagpu`.
16 lines
275 B
Fortran
16 lines
275 B
Fortran
! Basic offloading test with a target region
|
|
! REQUIRES: flang, amdgpu
|
|
|
|
! RUN: %libomptarget-compile-fortran-run-and-check-generic
|
|
program main
|
|
integer :: x;
|
|
x = 0
|
|
!$omp target map(from:x)
|
|
x = 5
|
|
!$omp end target
|
|
print *, "x = ", x
|
|
end program main
|
|
|
|
! CHECK: x = 5
|
|
|