Skip to content

Commit

Permalink
Update 06-OpenMP-interoperability.md
Browse files Browse the repository at this point in the history
  • Loading branch information
csccva authored Jul 2, 2024
1 parent 3480cef commit 4e84792
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gpu-openmp/docs/06-OpenMP-interoperability.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,6 @@ extern "C" void daxpy(int n, double a,
<small>
<div class="column">
```c
! call_hip_from_openmp.f90
MODULE HIP_INTERFACES
INTERFACE
subroutine f_daxpy(n, a, x, y) bind(C,name=daxpy)
Expand All @@ -156,14 +155,14 @@ END MODULE HIP_INTERFACES
...
integer(c_int) :: n
double(c_double) :: a

!$omp target data map(alloc:x[0:n], y[0:n])
...

!$omp target data use_device_ptr(x, y)

call f_daxpy(n,a,c_loc(x),c_loc(y))

```
</div>
<div class="column">
Expand Down

0 comments on commit 4e84792

Please sign in to comment.