Skip to content

Commit

Permalink
Info about fortran notation
Browse files Browse the repository at this point in the history
  • Loading branch information
hokkanen committed Jun 30, 2024
1 parent 4ac4585 commit d976a1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gpu-openmp/docs/03-OpenMP-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ double *data = (double *) malloc(N * sizeof(double));
#pragma omp target map(tofrom:data[0:N])
// do something ..
```
NOTE! In Fortran, one must specify `data(first index : inclusive last index)` and in C `data[first index : size]`.


# Motivation for optimizing data movement
Expand Down

0 comments on commit d976a1d

Please sign in to comment.