when i debug the CUDA programme. sometimes, there are some problems in my programme, so it is fail to pass the debug. and when i want to re-debug the programme, it is hanged up where need to allocate in GPU. i can close the programme, but i can’t debug again because the programme will hang up everytime when it runs to allocate in GPU. i think it is because some space in the GPU was allocated before, and it was not be freeed because the programme was interrupted accidently.
now, i only can restart the computer to solve this problem. yeah, i can use the computer but i can’t debug the programme before restart.
so, could you please tell me if you know any easy ways to solve this problems.
thanks for the notice by Fugl, I use windows with VS2005, CUDA2.0.
You don’t mention what development platform you are on, but if you’re on Linux, stopping the X-server, removing the “nvidia” module (‘rmmod nvidia’ as root) and starting the X-server again usually helps.
I would recommend developing your code in emulation mode until you’re sure it has no out-of-bounds memory accesses or infinite loops (this is usually what causes hardware hangs).