What is the solution for overcoming NVIDIA Device Driver Crash problem?

When I run my CUDA kernel program NVIDIA windows kernel mode Driver version 341.05 crashes and stops executing the program. What is the solution for overcoming this problem?

If I had a penny for each time someone asked this without using Google first I would be a rich man:

https://devtalk.nvidia.com/default/topic/459869/cuda-programming-and-performance/-quot-display-driver-stopped-responding-and-has-recovered-quot-wddm-timeout-detection-and-recovery-/