Use gomp_map_val for OpenACC host-to-device address translation
authorJulian Brown <julian@codesourcery.com>
Fri, 20 Dec 2019 01:20:19 +0000 (01:20 +0000)
committerJulian Brown <jules@gcc.gnu.org>
Fri, 20 Dec 2019 01:20:19 +0000 (01:20 +0000)
commit5bcd470bf0749e1f56d05dd43aa9584ff2e3a090
tree0ee2ecab91ac2cde55242703052242660832f5c6
parent378da98fcc907d05002bcd3d6ff7951f0cf485e5
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
libgomp/ChangeLog
libgomp/libgomp.h
libgomp/oacc-parallel.c
libgomp/target.c