Commit 84ca08d2 by Thomas Schwinge Committed by Thomas Schwinge

Coalesce host to device transfers in libgomp: not for link pointer

	libgomp/
	* target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
	devicep->host2dev_func.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>

From-SVN: r266919
parent 5a686851
2018-12-09 Thomas Schwinge <thomas@codesourcery.com>
Jakub Jelinek <jakub@redhat.com>
* target.c (gomp_map_vars): Call gomp_copy_host2dev instead of
devicep->host2dev_func.
2018-12-08 Jakub Jelinek <jakub@redhat.com> 2018-12-08 Jakub Jelinek <jakub@redhat.com>
PR libgomp/87995 PR libgomp/87995
......
...@@ -957,9 +957,10 @@ gomp_map_vars (struct gomp_device_descr *devicep, size_t mapnum, ...@@ -957,9 +957,10 @@ gomp_map_vars (struct gomp_device_descr *devicep, size_t mapnum,
/* Set link pointer on target to the device address of the /* Set link pointer on target to the device address of the
mapped object. */ mapped object. */
void *tgt_addr = (void *) (tgt->tgt_start + k->tgt_offset); void *tgt_addr = (void *) (tgt->tgt_start + k->tgt_offset);
devicep->host2dev_func (devicep->target_id, /* We intentionally do not use coalescing here, as it's not
(void *) n->tgt_offset, data allocated by the current call to this function. */
&tgt_addr, sizeof (void *)); gomp_copy_host2dev (devicep, (void *) n->tgt_offset,
&tgt_addr, sizeof (void *), NULL);
} }
array++; array++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment