I want to stop the Gpu kernel for a certain amount of time, but the only function I found was assert()
.
I want to use timer or events to control the amount of time the gpu is going to be halted, but I don't know how!
Thanks.
I want to stop the Gpu kernel for a certain amount of time, but the only function I found was assert()
.
I want to use timer or events to control the amount of time the gpu is going to be halted, but I don't know how!
Thanks.
You can use clock()
or clock64()
to generate busy cycles, see the answers here: Equivalent of usleep() in CUDA kernel?