pogs
pogs copied to clipboard
Iterative pogs memory leak in MATLAB 2018
This is a really great method! However, I have embedded pogs in a loop that iterates many many times and there is a memory leak resulting in an inevitable crash. Any ideas/suggestions? I'm assuming somewhere an array needs destroying.
Thanks
Ah, may be worth mentioning I'm running this on Centos7.
Same problem on my end, ran valgrind on it, the leak is here: matrix_dense.cpp +83
// Copy Matrix to GPU.
_data = new T[this->_m * this->_n];
Please Pogs project team, fix this :)
hi all,
chris and i will have to eventually merge the repos, but please see the offshoot project https://github.com/bungun/optkit/ (i suggest at least looking at the dev branch for usage examples) for a re-written version of POGS that patched many memory leaks and other math issues in both the sparse and dense versions.
This response is way overdue. Thanks for reporting that @CPLambert and for figuring out the issue @eloi-loomai. Definitely a bit embarrassing to forget to delete the data from a matrix class. I've pushed a fix.
@bungun thanks for the notes on fixes. I'll try and diff to see what else might be missing.