I am wondering about how do CPU threads know that GPU kernel is finished.
CPU threads transferring data and calling kernel. and then if there is no work, CPU threads will be idle.
but when GPU kernel is finished, how do CPU threads know that?
I want to know that. because when GPU kernel is finished, the result synchronizes from device memory to main memory, and than transfer another data from main memory to device memory.
please help me.