PyTrilinos: memory leak with repeated creation of CrsMatrix and solver.Iterate
Created by: guyer
Repeated creation of CrsMatrixen and AztecOO solvers causes memory to steadily leak
Motivation and Context
We may be using PyTrilinos inappropriately, but FiPy creates a new CrsMatrix and AztecOO solver at each iteration. Because of this leak, we have no choice but to regularly checkpoint and kill the job.
Steps to Reproduce
Running this modified version of exAztecOO.py with
mprof run python exAztecOO.py
Your Environment
- Relevant configure flags or configure script: Trilinos 12.10.1 installed from this conda feedstock
- Operating system and version: Mac OS X 10.12.6 and Debian GNU/Linux 8 (jessie)
Additional Information
Based on earlier discussions on the FiPy mailing list the leak may have been introduced after version 11.10.2