1 ! Basic offloading test with a target region
2 ! REQUIRES: flang, amdgpu
4 ! RUN: %libomptarget-compile-fortran-generic
5 ! RUN: env LIBOMPTARGET_INFO=16 %libomptarget-run-generic 2>&1 | %fcheck-generic
12 !$omp target parallel do map(from: x)
16 !$omp end target parallel do
18 if ( x(i
) .ne
. i
) then
23 print *,"number of errors: ", errors
27 ! CHECK: "PluginInterface" device {{[0-9]+}} info: Launching kernel {{.*}}
28 ! CHECK: number of errors: 0