Re: [Patch] libgomp: Add no-target-region rev offload test + fix plugin-nvptx

2022-11-25 Thread Jakub Jelinek via Gcc-patches
On Thu, Nov 24, 2022 at 06:48:01PM +0100, Tobias Burnus wrote: > libgomp: Add no-target-region rev offload test + fix plugin-nvptx > > OpenMP permits that a 'target device(ancestor:1)' is called without being > enclosed in a target region - using the current device (i.e. the host) in > that case.

[Patch] libgomp: Add no-target-region rev offload test + fix plugin-nvptx

2022-11-24 Thread Tobias Burnus
The nvptx reverse-offload code mishandled the case that there was a reverse offload function that isn't called inside a target region. In that case, the linker did not include GOMP_target_ext and the global variable it uses. But the plugin-nvptx.c code expected that the latter is present. Found