I have a program that I am running written in PyCuda, that works correctly
the first time I run it. Because I am using a lot of fast little gpuarray
functions, on a TON of different arrays, every time I finish with one I
manually remove it from the memory using array.gpudata.free() so that I
immediately have enough room to do the next array. I do this every time. So
every single array is manually freed. The program will complete
successfully, but if I try to run it a second time, the moment I try to move
anything over to the GPU it says CudaMalloc fail: out of memory.

Any idea what could be causing this? the only way I have found to "fix" it,
is to restart the computer between runs. 

--
View this message in context: 
http://pycuda.2962900.n2.nabble.com/PyCUDA-Memory-error-when-running-program-more-than-once-tp7574634.html
Sent from the PyCuda mailing list archive at Nabble.com.

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to