Capturing cuda events in a kernel

Hi, is there a way to capture occurrence of a CUDA event from within a kernel?

I’d like to have something like this:

__global__ void kernelK(...) {

while(..) {






Is this possible on current GPUs, and what should I take care about?

Currently there is no high-level structure that covers this for you. You’d have to implement the desired behaviour on your own.