2014-01-31 Jakub Jelinek <ja...@redhat.com>: > I'd suggest just using map(tofrom: a[0:N]) also on the #pragma omp target, > then it is clear what should happen. > > Jakub
I agree that this will be clearer. But there is an example #49.1 in the document [1] with the same case. And it crashes because the pointer 'p' is overwritten after the omp target data region. [1] http://openmp.org/mp-documents/OpenMP4.0.0.Examples.pdf -- Ilya