system crash when running cuda programm

Hi,

I’m junior on cuda programming. These days, when I run my cuda code, the system frequently crash and I need to reboot. For example, if I reference the memory on host (cpu) in the kernel, it certainly crash (it is a junior stupid mistake). And I think there are many other issues whish call the system crash. Can anyone state about what opeations could cause the crash? So I can avoid the situation in the future. Thanks.

my gpu is gtx 280
the code is running on windows 2003 server
the computer is a Dell Precisionâ„¢ 470 workstation which has
cpu - dual 2.80 GHz Intel Xeon
memory - 4030MB
I use the machine by vnc

Hi,

do you try to reference device memory? Is memory allocated? In which way do you (de)refence memory? Are you familiar with the C programming language and pointers?