diff options
author | Tobias Burnus <tobias@codesourcery.com> | 2022-09-09 17:37:09 +0200 |
---|---|---|
committer | Tobias Burnus <tobias@codesourcery.com> | 2022-09-09 17:37:09 +0200 |
commit | 0fcc0cf9dca9f11acbbc94c9437759bdfbd297f2 (patch) | |
tree | 1fdf0ff7737beb5575c456a4aed681227b07df76 /liboffloadmic | |
parent | a1a53dc7d87969d230e9ca51fcab59f3a72e5f6e (diff) | |
download | gcc-0fcc0cf9dca9f11acbbc94c9437759bdfbd297f2.zip gcc-0fcc0cf9dca9f11acbbc94c9437759bdfbd297f2.tar.gz gcc-0fcc0cf9dca9f11acbbc94c9437759bdfbd297f2.tar.bz2 |
libgomp: Prepare for reverse offload fn lookup
Prepare for reverse-offloading function-pointer lookup by passing
a rev_fn_table argument to GOMP_OFFLOAD_load_image.
The argument will be NULL, unless GOMP_REQUIRES_REVERSE_OFFLOAD is
requested and devices not supported it, are filtered out.
(Up to and including this commit, no non-host device claims such
support and the caller currently always passes NULL.)
libgomp/ChangeLog:
* libgomp-plugin.h (GOMP_OFFLOAD_load_image): Add
'uint64_t **rev_fn_table' argument.
* oacc-host.c (host_load_image): Likewise.
* plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Likewise;
currently unused.
* plugin/plugin-nvptx.c (GOMP_OFFLOAD_load_image): Likewise.
* target.c (gomp_load_image_to_device): Update call but pass
NULL for now.
liboffloadmic/ChangeLog:
* plugin/libgomp-plugin-intelmic.cpp (GOMP_OFFLOAD_load_image):
Add (unused) uint64_t **rev_fn_table argument.
Diffstat (limited to 'liboffloadmic')
-rw-r--r-- | liboffloadmic/plugin/libgomp-plugin-intelmic.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp b/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp index 33bae06..7be27f0 100644 --- a/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp +++ b/liboffloadmic/plugin/libgomp-plugin-intelmic.cpp @@ -349,7 +349,8 @@ GOMP_OFFLOAD_version (void) extern "C" int GOMP_OFFLOAD_load_image (int device, const unsigned version, - const void *target_image, addr_pair **result) + const void *target_image, addr_pair **result, + uint64_t ** /* rev_fn_table */) { TRACE ("(device = %d, target_image = %p)", device, target_image); |