[Dune] [#1047] memory leaks in AMG (Attachment added)
flyspray at dune-project.org
Wed Mar 7 15:45:17 CET 2012
THIS IS AN AUTOMATED MESSAGE, DO NOT REPLY.
A new Flyspray task has been opened. Details are below.
User who did this - Ansgar Burchardt (ansgar)
Attached to Project - Dune
Summary - memory leaks in AMG
Task Type - Bug Report
Category - ISTL
Status - New
Assigned To -
Operating System - Unspecified / All
Severity - Low
Priority - Normal
Reported Version - SVN (pre2.2)
Due in Version - Undecided
Due Date - Undecided
Details - There seem to be memory leaks in ISTL's AMG solver in dune/istl/paamg/hierarchy.hh (SVN rev. 1538). I managed to find these with valgrind so far, but I am not sure where they are supposed to be freed:
* line 728: mlevel.addRedistributed(ConstructionTraits<MatrixOperator>::construct(args));
4 timesteps: 1,286 kB in 6 blocks lost
8 timesteps: 3,086 kB in 10 blocks lost
* line 611: redistributeMatrix(const_cast<M&>(origMatrix), newMatrix, origComm, *newComm, ri);
calls matrixredistribute.hh:828, matrixredistribute.hh:728, matrixredistribute.hh:300,
4 timesteps: 770 kB in 3 blocks lost
8 timesteps: 256 kB in 1 block lost
I'm not sure what to think about it leaking less memory when I do more timesteps.
* line 1114: hierarchy.addRedistributedOnCoarsest(new BlockVector<V,TA>(matrix.getRedistributed().getmat().N()));
4 timesteps: 3x 120 kB in 3 blocks lost
8 timesteps: 3x 200 kB in 3 blocks lost
Three times as the method is called for three vectors in amg.hh lines 388-390.
I observed all of these in the rank=0-process of my total 3 MPI processes.
I have attached the relevant part of the valgrind --leak-check=full output for both 4 and 8 steps.
One or more files have been attached.
More information can be found at the following URL:
You are receiving this message because you have requested it from the Flyspray bugtracking system. If you did not expect this message or don't want to receive mails in future, you can change your notification settings at the URL shown above.
More information about the Dune