[RFC] Offloading Support in libgomp

Ilya Verbin iverbin@gmail.com
Fri Feb 14 15:24:00 GMT 2014


2014-01-31 22:03 GMT+04:00 Jakub Jelinek <jakub@redhat.com>:
> Implicit map(tofrom: a) on #pragma omp target is what the standard
> requires, so I don't see a bug on the compiler side.
>         Jakub

There is an exception in the standard (page 177, lines 17-21):

> If a corresponding list item of the original list item is in the enclosing device data
> environment, the new device data environment uses the corresponding list item from the
> enclosing device data environment. No additional storage is allocated in the new device
> data environment and neither initialization nor assignment is performed, regardless of
> the map-type that is specified.

So, the pointer 'a' should inherit map-type ALLOC from the enclosing
device data environment.

  -- Ilya



More information about the Gcc mailing list