[petsc-dev] Potential memory leak in PETSc - hypre interface when using Euclid

Emil Constantinescu emconsta at anl.gov
Thu Oct 27 15:27:05 CDT 2022


Hi there,

Tang Qi (LANL) reported a potential memory leak when using hypre/Euclid. 
Upon rudimentary testing, I could reproduce it for many examples in 
PETSc TS. The symptom is memory usage (measured with top)  with the 
number of time steps. Without Euclid, memory use does not increase.

For instance, one can try ex15 under TS:

ex15  -da_grid_x 50 -da_grid_y 50 -boundary 0 -ts_max_steps 20 -Jtype 1 
-ts_monitor -pc_type hypre -pc_hypre_boomeramg_smooth_type Euclid

I am not sure if it's PETSc - hypre that causes the memory use or hypre 
itself.

Can someone with more sophisticated tools take a look at it?

Emil


More information about the petsc-dev mailing list