[patch, libgomp, OpenACC] Additional enter/exit data map handling

Chung-Lin Tang cltang@codesourcery.com
Mon Aug 29 07:47:00 GMT 2016


Hi Jakub,
this patch is a port of some changes from gomp-4_0-branch,
including adding additional map type handling in OpenACC enter/exit data
directives, and some pointer set handling changes. Updated
testsuite case are also included.

Tested on trunk to ensure no regressions, is this okay for trunk?

Thanks,
Chung-Lin

2016-08-29  Cesar Philippidis  <cesar@codesourcery.com>
            Thomas Schwinge  <thomas@codesourcery.com>
            Chung-Lin Tang  <cltang@codesourcery.com>

        libgomp/
        * oacc-parallel.c (find_pset): Adjust and rename from...
        (find_pointer): ...this function.
        (GOACC_enter_exit_data): Handle GOMP_MAP_TO and GOMP_MAP_ALLOC,
        adjust find_pointer calls into find_pset, adjust pointer map handling,
        add acc_is_present guards to calls to gomp_acc_insert_pointer and
        gomp_acc_remove_pointer.

        * testsuite/libgomp.oacc-c-c++-common/data-2.c: Update test.
        * testsuite/libgomp.oacc-c-c++-common/enter-data.c: New test.
        * testsuite/libgomp.oacc-fortran/data-2.f90: Update test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgomp-enter-exit.patch
Type: text/x-patch
Size: 4401 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160829/539bbd17/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libgomp-enter-exit-testsuite.patch
Type: text/x-patch
Size: 10752 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20160829/539bbd17/attachment-0001.bin>


More information about the Gcc-patches mailing list