r216481 - in /branches/gomp-4_0-branch/libgomp:...

jules@gcc.gnu.org jules@gcc.gnu.org
Mon Oct 20 14:43:00 GMT 2014


Author: jules
Date: Mon Oct 20 14:43:22 2014
New Revision: 216481

URL: https://gcc.gnu.org/viewcvs?rev=216481&root=gcc&view=rev
Log:
2014-10-20  Julian Brown  <julian@codesourcery.com>

	* oacc-host.c (openacc_register_async_cleanup): New.
	(host_dispatch): Initialise register_async_cleanup_func entry.
	* oacc-int.h (struct ACC_dispatch_t): Add
	register_async_cleanup_func hook.
	* oacc-parallel.c (GOACC_parallel): Call
	register_async_cleanup_func hook after queuing asynchronous
	copy-back.
	* plugin-nvptx.c (enum PTX_event_type): Add PTX_EVT_ASYNC_CLEANUP.
	(struct PTX_event): Remove tgt field.
	(event_gc): Don't do async cleanup in PTX_EVT_KNL, do it in
	PTX_EVT_ASYNC_CLEANUP instead.
	(event_add): Remove tgt argument. Support PTX_EVT_ASYNC_CLEANUP
	events.
	(PTX_exec, PTX_host2dev, PTX_dev2host, PTX_wait_async)
	(PTX_wait_all_async): Update calls to event_add.
	(openacc_register_async_cleanup): New.
	(PTX_async_test): Call event_gc on success path.
	(PTX_async_test_all): Likewise.
	* target.c (gomp_load_plugin_for_device): Initialise
	register_async_cleanup hook.


Modified:
    branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
    branches/gomp-4_0-branch/libgomp/oacc-host.c
    branches/gomp-4_0-branch/libgomp/oacc-int.h
    branches/gomp-4_0-branch/libgomp/oacc-parallel.c
    branches/gomp-4_0-branch/libgomp/plugin-nvptx.c
    branches/gomp-4_0-branch/libgomp/target.c



More information about the Gcc-cvs mailing list