GPU to CPU(on the same computer or on different computer) communication

Hello to everyone,
I have services running on the CPU. These services may be on the same computer or on different computers.
How to communicate from GPU to CPU?