This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC] Offloading Support in libgomp
- From: Ilya Verbin <iverbin at gmail dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: "Michael V. Zolotukhin" <michael dot v dot zolotukhin at gmail dot com>, Kirill Yukhin <kirill dot yukhin at gmail dot com>, Richard Henderson <rth at redhat dot com>, GCC Development <gcc at gcc dot gnu dot org>, triegel at redhat dot com, Sergey Ostanevich <sergos dot gnu at gmail dot com>
- Date: Sat, 1 Feb 2014 01:32:17 +0400
- Subject: Re: [RFC] Offloading Support in libgomp
- Authentication-results: sourceware.org; auth=none
- References: <20130827112609 dot GA4093 at msticlxl57 dot ims dot intel dot com> <20130827113956 dot GH21876 at tucnak dot zalov dot cz> <20130827115538 dot GB4093 at msticlxl57 dot ims dot intel dot com> <20130913093417 dot GA30181 at msticlxl57 dot ims dot intel dot com> <20130916093549 dot GP1817 at tucnak dot redhat dot com> <20130917120454 dot GE60139 at msticlxl57 dot ims dot intel dot com> <20130917122927 dot GY1817 at tucnak dot redhat dot com> <20131028104110 dot GA11997 at msticlxl57 dot ims dot intel dot com> <20131029070331 dot GT30970 at tucnak dot zalov dot cz> <CADG=Z0FPFDTzc8PsFMjrU9pFPmzByE7FfqQwroyE2txRNjgPQQ at mail dot gmail dot com> <20140131180334 dot GY892 at tucnak dot redhat dot com>
2014-01-31 Jakub Jelinek <jakub@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