[PATCH 1/10] OpenACC 2.0 support for libgomp - offloading support
Tue Sep 23 18:17:00 GMT 2014
This patch is by Jakub Jelinek, and was originally posted here:
Parts of the patch subsequently landed on mainline as part of the
But not the OpenMP "target" parts. This patch therefore contains the
delta between those two patches.
xxxx-xx-xx Jakub Jelinek <email@example.com>
* splay-tree.h: New file.
* target.c (splay_tree_node, splay_tree, splay_tree_key): New
typedefs. (struct target_mem_desc, struct splay_tree_key_s):
New structures. (splay_compare): New inline function.
* libgomp.h (gomp_get_num_devices): Add prototype.
(gomp_get_num_devices): Add FIXME comment.
(resolve_device): Use default_device_var ICV. Add temporarily
magic testing device number 257.
(dev_splay_tree, dev_env_lock): New variables.
(gomp_map_vars_existing, gomp_map_vars, gomp_unmap_tgt,
gomp_unmap_vars, gomp_update): New functions.
(GOMP_target, GOMP_target_data, GOMP_target_end_data,
GOMP_target_update): Add support for magic testing device
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22336 bytes
Desc: not available
More information about the Gcc-patches