[Bug middle-end/92929] OpenACC/OpenMP 'target' 'exit data'/'update' optimizations
tschwinge at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Dec 13 12:01:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92929
--- Comment #2 from Thomas Schwinge <tschwinge at gcc dot gnu.org> ---
(In reply to myself from comment #1)
> if (OMP_CLAUSE_MAP_KIND (c) == GOMP_MAP_FIRSTPRIVATE_POINTER
> || (OMP_CLAUSE_MAP_KIND (c)
> == GOMP_MAP_FIRSTPRIVATE_REFERENCE))
> /* For target {,enter ,exit }data only the array slice is
> mapped, but not the pointer to it. */
> remove = true;
> Why is this not applicable for OpenACC '!$acc update'/OpenMP '!$omp target
> update', too? (This is now also relevant for C/C++.)
I see I asked the same question before, and in
<http://mid.mail-archive.com/574F1C6C.5020704@codesourcery.com> Cesar answered:
"I suppose they can be added here, but lower_omp_target already ignores
GOMP_MAP_FIRSTPRIVATE_POINTER for non-offloaded and data_region regions."
More information about the Gcc-bugs
mailing list