memory usage increases with more and more cuda calls out of memory - because of several cuda calls.

Hi,

when i use cuda its memory used goes up with more and more cuda calls.

I have a situation where i have to call the cuda kernel several time.
Each time i am allocating and releasing memory.
But when i observe memory usage using the GPU-Z tool, surprisingly i find that the memory usage keeps on increasing.
(even after using cudaFree all the time.)
and finally after few calls my kernel fails saying “out of memory”.

i use memory between 50 mb to 200 mb not more than that.
but after few calls the memory usage goes upto 600 mb.

any idea?

regards,
Nabarun.