Cuda error "Out of memory" on launch kernel

Hello everybody!

I have very large kernel, about 350 000 lines. It was compiled, but when I tried to run kernel, I got a “Out of memory” error.
I don’t know, what is a problem. When I used CUDA 4.0 and GTX 580, everything was OK. But on CUDA 4.2 and higher there was such error.

My configuration:
Gtx 680
OpenSuse 12.1
Cuda 5.0

Thanks.