An error occurred accessing GPU memory Cublas

Hello.

I’m using CUBLAS on a Tesla C870. Everything is ok. I’m working with a big amout of global memory (1 GB) and I can execute my program many times until I get “An error occurred accessing GPU memory.” when I try to get a matrix from global memory. That happens suddenly, I mean, it doen’t matter how many times I execute the program. I’m absolutely sure I free each byte of memory that I use.
When the system is rebooted the problem dissapears, but I can’t do it because I don’t have permission.

What can I do? Is it possible to “reset” only the device?

Thank you so much.

What OS?

Sorry, Linux