CUDA code randomly works, and returns wrong results

Hi.

Just posting to say that the problem was solved. It was a host problem related to file straming, nothing related to CUDA nor hardware.