r226438 - in /branches/gomp-4_1-branch/libgomp:...
iverbin@gcc.gnu.org
iverbin@gcc.gnu.org
Fri Jul 31 10:58:00 GMT 2015
Author: iverbin
Date: Fri Jul 31 10:58:20 2015
New Revision: 226438
URL: https://gcc.gnu.org/viewcvs?rev=226438&root=gcc&view=rev
Log:
* libgomp.h (enum gomp_map_vars_kind): New.
(gomp_map_vars): Change type of the argument from bool to enum
gomp_map_vars_kind.
* oacc-mem.c (acc_map_data, present_create_copy,
gomp_acc_insert_pointer): Pass GOMP_MAP_VARS_OPENACC instead of false to
gomp_map_vars.
* oacc-parallel.c (GOACC_parallel, GOACC_data_start): Likewise.
* target.c (gomp_map_vars_existing): Fix target address for 'always to'
array sections.
(gomp_map_vars): Change type of the argument from bool to enum
gomp_map_vars_kind, fixup its usage. Set tgt->refcount to 0 if called
from GOMP_target_enter_exit_data. Free tgt if called from
GOMP_target_enter_exit_data and nothing has been mapped.
(gomp_unmap_vars): Decrement k->refcount when it is 1 and
k->async_refcount is 0.
(gomp_offload_image_to_device): Set tgt's refcount to infinity.
(GOMP_target, GOMP_target_41): Pass GOMP_MAP_VARS_TARGET instead of true
to gomp_map_vars.
(gomp_target_data_fallback, GOMP_target_data, GOMP_target_data_41): Pass
GOMP_MAP_VARS_DATA instead of false to gomp_map_vars.
(gomp_exit_data): New static function.
(GOMP_target_enter_exit_data): Support mapping/unmapping.
* testsuite/libgomp.c/target-11.c: Extend for testing 'always to' array
sections.
* testsuite/libgomp.c/target-20.c: New test.
Added:
branches/gomp-4_1-branch/libgomp/testsuite/libgomp.c/target-20.c
Modified:
branches/gomp-4_1-branch/libgomp/ChangeLog.gomp
branches/gomp-4_1-branch/libgomp/libgomp.h
branches/gomp-4_1-branch/libgomp/oacc-mem.c
branches/gomp-4_1-branch/libgomp/oacc-parallel.c
branches/gomp-4_1-branch/libgomp/target.c
branches/gomp-4_1-branch/libgomp/testsuite/libgomp.c/target-11.c
More information about the Gcc-cvs
mailing list