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
This commit is contained in:
Thomas Schwinge 2018-12-09 13:47:23 +01:00 committed by Thomas Schwinge
parent 5a686851dc
commit 84ca08d2d5
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,9 @@
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>
PR libgomp/87995

View File

@ -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
mapped object. */
void *tgt_addr = (void *) (tgt->tgt_start + k->tgt_offset);
devicep->host2dev_func (devicep->target_id,
(void *) n->tgt_offset,
&tgt_addr, sizeof (void *));
/* We intentionally do not use coalescing here, as it's not
data allocated by the current call to this function. */
gomp_copy_host2dev (devicep, (void *) n->tgt_offset,
&tgt_addr, sizeof (void *), NULL);
}
array++;
}