I would like to interrupt "gently" a running kernel, that is: send it a signal of some sort (via global memory?), let it do its cleaning stuff and return to host.
I tried a simple program, using the *nix signal()
function to change a bit on the global memory using a regular cudaMemcpy
, but without success.
Is it possible? Is it possible for the host to write onto the device's memory while a kernel is running?