From 0fcc0cf9dca9f11acbbc94c9437759bdfbd297f2 Mon Sep 17 00:00:00 2001 From: Tobias Burnus Date: Fri, 9 Sep 2022 17:37:09 +0200 Subject: 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. --- libgomp/target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libgomp/target.c') diff --git a/libgomp/target.c b/libgomp/target.c index fbc2827..5763483 100644 --- a/libgomp/target.c +++ b/libgomp/target.c @@ -2196,7 +2196,7 @@ gomp_load_image_to_device (struct gomp_device_descr *devicep, unsigned version, num_target_entries = devicep->load_image_func (devicep->target_id, version, - target_data, &target_table); + target_data, &target_table, NULL); if (num_target_entries != num_funcs + num_vars /* "+1" due to the additional ICV struct. */ -- cgit v1.1