Allow kernel to wait for completion of gpu code

Is there a way to have the kernel pause after executing a function on the gpu and allow it to complete?

What do you mean with pause? Pause the entirely kernel or just a group of threads? What kind of function do you talking about?