How to access device memory from the host whilst a kernel is running

You’ve basically asked the same question here: https://discourse.julialang.org/t/julia-how-to-set-and-use-cuda-host-global-memory/