I have a CUDA kernel which is using more than 20 seconds in my old Tesla card. I want to kill the CUDA kernel programatically if the kernel is running for more than 20 seconds. My intention is that if the kernel is running for more than 20 seconds, then that kernel should be killed and run another kernel, whose precision is lesser.
My OS is Windows 7 64 bit. CUDA version is 5.0. GPU is Tesla C1060
Please help me in killing the CUDA kernel without exiting the application.