aboutsummaryrefslogtreecommitdiff
path: root/libgomp/target.c
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2018-12-09 13:47:23 +0100
committerThomas Schwinge <tschwinge@gcc.gnu.org>2018-12-09 13:47:23 +0100
commit84ca08d2d57034d6b5dfe818d7cdcef10316d902 (patch)
tree3ffa8b94e594d4a3cc4f7e2e0529846379bf243e /libgomp/target.c
parent5a686851dccf1150ba0356b4982f95069bc4cce2 (diff)
downloadgcc-84ca08d2d57034d6b5dfe818d7cdcef10316d902.zip
gcc-84ca08d2d57034d6b5dfe818d7cdcef10316d902.tar.gz
gcc-84ca08d2d57034d6b5dfe818d7cdcef10316d902.tar.bz2
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
Diffstat (limited to 'libgomp/target.c')
-rw-r--r--libgomp/target.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/libgomp/target.c b/libgomp/target.c
index 8ebc2a3..a62ae2c 100644
--- a/libgomp/target.c
+++ b/libgomp/target.c
@@ -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++;
}