Driver crashed while I was running an CUDA program

Hi, I am new to CUDA programming, i was testing my CUDA project with my GT630. The screen goes black and after it had recovered, the windows told me that my driver had crashed.
Here is my simple code :

#include < cuda_runtime.h >
#include " device_launch_parameters.h " 
#include < iostream >

using namespace std;

__global__ static void foo()
{
	for (int i=0;i<;4000;i++)
	{
		for (int j=0;j<4000;j++)
		{
			for (int k=0;k<4000;k++)
			{}
		}
	}
}
int main()
{
        foo<<< 1, 1, 0 >>>();
	return 0;
}

How could this happened? Can anybody help me? Thank you very much!!

Why ‘foo’ is static?

It is desktop recovery timer, see theme above.
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-/