Some executions of the code give garbage

Some executions of my code give garbage, usually when I run it the first/second time after compilation. I’m not sure if it’s a bug in my code, something I don’t clean or release, or some overflow, or it is some kind of a known behavior? If it helps, I should add that I use cuPrintf.

Definitely not known behavior. Sounds like a variable that is not initialized.

Okay, thanks, I just wanted to make sure that cuda is stable, I don’t have much experience with it. I’ll look into this, and remove code sections from my app until I find the culprit.