With the OpenMP 5.0 parallel programming specification there is the reverse offload capability for going from the offloaded device back to the system host. The GCC 13 open-source compiler is seeing work recently around supporting this functionality…
Source: Phoronix – GCC 13 Seeing Work On OpenMP 5.0 Reverse Offload Functionality