how to avoid computer reboot

Hi,

I am still a learner so my cuda programs usually have bugs:> Sometimes when I run them, the program hangs. A control+C would normally kill it but I can no long run cuda applications, unless I reboot the computer. Are there any convenient way of resetting the device?

I did searched web but couldn’t find anything useful. I tried cudaDeviceReset(), no luck. I am running WinXP64 with a GTX560Ti and a Quadro FX 580. I configured the computer so that GTX560Ti does the computation while the other does the display.

Thanks!

Bo