From d976a1db0982620c63bf730c3b204a48ea0bde77 Mon Sep 17 00:00:00 2001 From: Jaro Hokkanen Date: Sun, 30 Jun 2024 13:21:03 +0300 Subject: [PATCH] Info about fortran notation --- gpu-openmp/docs/03-OpenMP-data.md | 1 + 1 file changed, 1 insertion(+) diff --git a/gpu-openmp/docs/03-OpenMP-data.md b/gpu-openmp/docs/03-OpenMP-data.md index 9b3ccb895..7ba86bcc2 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