How to interrupt or cancel a CUDA kernel from host code
<p>I am working with CUDA and I am trying to stop my kernels  work (i.e. terminate all running threads) after a certain <code>if</code> block is being hit. How can I do that? I am really stuck in here.</p>