[PATCH 1/10] OpenACC 2.0 support for libgomp - offloading support

Julian Brown julian@codesourcery.com
Tue Sep 23 18:17:00 GMT 2014


This patch is by Jakub Jelinek, and was originally posted here:

  https://gcc.gnu.org/ml/gcc-patches/2013-09/msg01098.html

Parts of the patch subsequently landed on mainline as part of the
following patch:

  https://gcc.gnu.org/ml/gcc-patches/2013-10/msg00505.html

But not the OpenMP "target" parts. This patch therefore contains the
delta between those two patches.

Julian

xxxx-xx-xx  Jakub Jelinek  <jakub@redhat.com>

	libgomp/
	* 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
	number 257.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01-offloading-support-1.diff
Type: text/x-patch
Size: 22336 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20140923/7043f779/attachment.bin>


More information about the Gcc-patches mailing list