I’ve just started to read about CUDA and have got a question, how the controll exchange between gpu and cpu is done.
So far, I came to know, that by
you can handle over from cpu to gpu and the cpu will wait till the global function terminates.
But is the cpu notified, that the gpu computation is finished?
And what happens while computation is running on the gpu? Is the cpu blocked for that period or will it schedule other tasks?