CUDA code resetting my variables?

Nevermind. Sorry. I was having troubles with forloops.