Simplify OpenACC 'no_create' clause implementation
For 'OFFSET_INLINED', 'gomp_map_val' does the right thing, and we may then simplify the device plugins accordingly. This is a follow-up to Subversion r279551 (Git commit a6163563) "Add OpenACC 2.6's no_create", Subversion r279622 (Git commit 5bcd470b) "Use gomp_map_val for OpenACC host-to-device address translation". libgomp/ * target.c (gomp_map_vars_internal): Use 'OFFSET_INLINED' for 'GOMP_MAP_IF_PRESENT'. * plugin/plugin-gcn.c (gcn_exec, GOMP_OFFLOAD_openacc_exec) (GOMP_OFFLOAD_openacc_async_exec): Adjust. * plugin/plugin-nvptx.c (nvptx_exec, GOMP_OFFLOAD_openacc_exec) (GOMP_OFFLOAD_openacc_async_exec): Likewise. * testsuite/libgomp.oacc-c-c++-common/no_create-1.c: Add 'async' testing. * testsuite/libgomp.oacc-c-c++-common/no_create-2.c: Likewise.
Showing
- libgomp/plugin/plugin-gcn.c 8 additions, 10 deletionslibgomp/plugin/plugin-gcn.c
- libgomp/plugin/plugin-nvptx.c 9 additions, 10 deletionslibgomp/plugin/plugin-nvptx.c
- libgomp/target.c 1 addition, 1 deletionlibgomp/target.c
- libgomp/testsuite/libgomp.oacc-c-c++-common/no_create-1.c 25 additions, 5 deletionslibgomp/testsuite/libgomp.oacc-c-c++-common/no_create-1.c
- libgomp/testsuite/libgomp.oacc-c-c++-common/no_create-2.c 11 additions, 1 deletionlibgomp/testsuite/libgomp.oacc-c-c++-common/no_create-2.c
Loading
Please register or sign in to comment