diff options
author | Julian Brown <julian@codesourcery.com> | 2019-12-20 01:20:19 +0000 |
---|---|---|
committer | Julian Brown <jules@gcc.gnu.org> | 2019-12-20 01:20:19 +0000 |
commit | 5bcd470bf0749e1f56d05dd43aa9584ff2e3a090 (patch) | |
tree | 0ee2ecab91ac2cde55242703052242660832f5c6 /libgomp/libgomp.h | |
parent | 378da98fcc907d05002bcd3d6ff7951f0cf485e5 (diff) | |
download | gcc-5bcd470bf0749e1f56d05dd43aa9584ff2e3a090.zip gcc-5bcd470bf0749e1f56d05dd43aa9584ff2e3a090.tar.gz gcc-5bcd470bf0749e1f56d05dd43aa9584ff2e3a090.tar.bz2 |
Use gomp_map_val for OpenACC host-to-device address translation
libgomp/
* libgomp.h (gomp_map_val): Add prototype.
* oacc-parallel.c (GOACC_parallel_keyed): Use gomp_map_val instead of
open-coding device-address calculation.
* target.c (gomp_map_val): Make global. Use OFFSET_POINTER in
non-present case.
Co-Authored-By: Cesar Philippidis <cesar@codesourcery.com>
From-SVN: r279622
Diffstat (limited to 'libgomp/libgomp.h')
-rw-r--r-- | libgomp/libgomp.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgomp/libgomp.h b/libgomp/libgomp.h index b9301bd..8139cd7 100644 --- a/libgomp/libgomp.h +++ b/libgomp/libgomp.h @@ -1157,6 +1157,7 @@ extern void gomp_copy_host2dev (struct gomp_device_descr *, extern void gomp_copy_dev2host (struct gomp_device_descr *, struct goacc_asyncqueue *, void *, const void *, size_t); +extern uintptr_t gomp_map_val (struct target_mem_desc *, void **, size_t); extern struct target_mem_desc *gomp_map_vars (struct gomp_device_descr *, size_t, void **, void **, |