[PATCH 1/6] [og8] Host-to-device transfer coalescing & magic offset value self-documentation

Julian Brown julian@codesourcery.com
Tue Nov 20 21:55:00 GMT 2018


Previously posted upstream:
https://gcc.gnu.org/ml/gcc-patches/2018-11/msg00825.html

	libgomp/
	* libgomp.h (OFFSET_INLINED, OFFSET_POINTER, OFFSET_STRUCT): Define.
	* target.c (FIELD_TGT_EMPTY): Define.
	(gomp_coalesce_chunk): New.
	(gomp_coalesce_buf): Use above instead of flat array of size_t pairs.
	(gomp_coalesce_buf_add): Adjust for above change.
	(gomp_copy_host2dev): Likewise.
	(gomp_map_val): Use OFFSET_* macros instead of magic constants.  Write
	as switch instead of list of ifs.
	(gomp_map_vars_async): Adjust for gomp_coalesce_chunk change.  Use
	OFFSET_* macros.
---
 libgomp/libgomp.h |    5 +++
 libgomp/target.c  |  101 +++++++++++++++++++++++++++++++---------------------
 2 files changed, 65 insertions(+), 41 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-og8-Host-to-device-transfer-coalescing-magic-offset-.patch
Type: text/x-patch
Size: 9484 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20181120/062d96d4/attachment.bin>


More information about the Gcc-patches mailing list