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`.
17 lines
356 B
Fortran
17 lines
356 B
Fortran
! Basic offloading test with a target region
|
|
! REQUIRES: flang, amdgpu
|
|
|
|
! RUN: %libomptarget-compile-fortran-run-and-check-generic
|
|
program main
|
|
use omp_lib
|
|
integer :: x
|
|
|
|
!$omp target parallel map(from: x)
|
|
x = omp_get_num_threads()
|
|
!$omp end target parallel
|
|
print *,"parallel = ", (x .ne. 1)
|
|
|
|
end program main
|
|
|
|
! CHECK: parallel = T
|