On Thu, Aug 25, 2022 at 05:38:58PM +0200, Tobias Burnus wrote: > On 25.08.22 16:54, Tobias Burnus wrote: > > The attached patch prepare for reverse-offload device->host > function-address lookup by requesting (if needed) the on-device address. > > > This patch adds the actual implementation for GCN. A variant would be > to only generate .offload_func_table inside mkoffload when > OMP_REQUIRES_REVERSE_OFFLOAD has been requested. > > This is currently effectively a no op as with [1/3] patch, always NULL > is passed and as GOMP_OFFLOAD_get_num_devices returns <= 0 as soon as > 'omp requires reverse_offload' has been specified. > > OK for mainline? > > Tobias > > > ----------------- > Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 > München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas > Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht > München, HRB 106955
> GCN: libgomp+mkoffload.cc: Prepare for reverse offload fn lookup > > Add support to GCN for reverse lookup of function name to prepare for > 'omp target device(ancestor:1)'. > > gcc/ChangeLog: > > * config/gcn/mkoffload.cc (process_asm): Create .offload_func_table, > similar to pre-existing .offload_var_table. > > libgomp/ChangeLog: > > * plugin/plugin-gcn.c (GOMP_OFFLOAD_load_image): Read > .offload_func_table to populate rev_fn_table when requested. Ok. Jakub