Reputation: 499
After I had the following error from my CUDA program:
CUDA error at scan.cu:231 code=4(cudaErrorLaunchFailure)
"cudaMemcpy(odata, g_odata, sizeof(int) * N, cudaMemcpyDeviceToHost)"
I fixed it and recompiled the program, but the program didn't proceed. It stopped at the command line prompt and I had to kill it using control+C.
After I rebooted the machine, It ran successfully.
How can I fix this without rebooting?
I'm using Ubuntu 12.04 with CUDA 5.5 gtx550ti boost
Thanks!
Upvotes: 0
Views: 647
Reputation: 6391
I've had similar problems where CUDA simply fails to work at all after an error, but started working again after I reload the kernel module. I have no explanation for why this happens, but I have a script that reloads the kernel module:
https://github.com/EmmetCaulfield/linux-misc/blob/master/usr/local/sbin/cuda-init
Upvotes: 1