https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101581
--- Comment #2 from Tobias Burnus ---
Thomas pointed out that, at least with CUDA, the cuMemcpyPeer function could be
used (and cuMemcpy3DPeer for PR110813).
(For cuMemcpy, there is also CU_MEMORYTYPE_UNIFIED which might be of some use.)
BTW:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101581
--- Comment #1 from Tobias Burnus ---
For omp_target_memcpy_rect, see:
"[patch] OpenMP: Call cuMemcpy2D/cuMemcpy3D for nvptx for
omp_target_memcpy_rect"
https://gcc.gnu.org/pipermail/gcc-patches/2023-July/625465.html