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:
parent
5a686851dc
commit
84ca08d2d5
@ -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
|
||||
|
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user