Not able to kill bad kernel running on NVIDIA GPU
Posted
by arvindkgs
on Stack Overflow
See other posts from Stack Overflow
or by arvindkgs
Published on 2010-06-01T06:12:46Z
Indexed on
2010/06/01
6:13 UTC
Read the original article
Hit count: 233
Hi,
I am in a real fix. Please help. Its urgent.
I have a host process that spawns multiple host(CPU) threads. These threads in turn call the CUDA kernel. These CUDA kernels are written by external users. So it might be bad kernels that enter infinite loop. In order to overcome this I have put a time-out of 2 mins that will kill the corresponding CPU thread.
Will killing the CPU thread also kill the kernel running on the GPU? As far as what I have tested it does'nt.
How can I also kill all the threads currently running in the GPU?
Thanks, Arvind
© Stack Overflow or respective owner