diff --git a/gpu-openmp/docs/03-OpenMP-data.md b/gpu-openmp/docs/03-OpenMP-data.md index 9b3ccb89..7ba86bcc 100644 --- a/gpu-openmp/docs/03-OpenMP-data.md +++ b/gpu-openmp/docs/03-OpenMP-data.md @@ -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