Files
clang-p2996/openmp/libomptarget/test/offloading/fortran/basic_array.f90
Ethan Luis McDonough 341c3cf78c [flang][openmp] Fortran offloading test
Flang currently supports offloading for AMD GPUs.  This patch establishes a test structure for Fortran offloading tests in libomptarget.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D148778
2023-06-28 15:15:32 -05:00

7 lines
238 B
Fortran

subroutine increment_at(c_index, arr) bind(C, name="increment_at")
use ISO_C_BINDING
integer (C_INT), dimension(*), intent(inout) :: arr
integer (C_INT), value :: c_index
arr(c_index+1) = arr(c_index+1) + 1
end subroutine