summaryrefslogtreecommitdiff
path: root/libgomp/libgomp.h
diff options
context:
space:
mode:
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-21 13:30:06 +0000
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>2015-07-21 13:30:06 +0000
commit7de5731e9d64cbcc68b697badf74202348767ee5 (patch)
tree5346a618826d07eaa35796ae94daf5f43300dc8a /libgomp/libgomp.h
parent9f8f6cbf60a1620cbbd566c1ec8c367e7bd8d8bd (diff)
downloadgcc-7de5731e9d64cbcc68b697badf74202348767ee5.tar.gz
libgomp/
* target.c (gomp_offload_image_to_device): Rename to ... (gomp_load_image_to_device): ... here. (GOMP_offload_register): Adjust call. (gomp_init_device): Likewise. (gomp_unload_image_from_device): New. Broken out of ... (GOMP_offload_unregister): ... here. Call it. (gomp_unload_device): New. * libgomp.h (gomp_unload_device): Declare. * oacc-init.c (acc_shutdown_1): Unload from device before deleting mem maps. gcc/ * config/nvptx/mkoffload.c (process): Add static destructor call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226039 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/libgomp.h')
-rw-r--r--libgomp/libgomp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h
index 420ac83e9e7..ac40e2aa510 100644
--- a/libgomp/libgomp.h
+++ b/libgomp/libgomp.h
@@ -782,6 +782,7 @@ extern void gomp_unmap_vars (struct target_mem_desc *, bool);
extern void gomp_init_device (struct gomp_device_descr *);
extern void gomp_free_memmap (struct splay_tree_s *);
extern void gomp_fini_device (struct gomp_device_descr *);
+extern void gomp_unload_device (struct gomp_device_descr *);
/* work.c */