Valgrind

From PHASTA Wiki
Revision as of 14:37, 14 March 2012 by Matthb2 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Valgrind is very useful for finding memory leaks that occur when running scripts.

soft add +valgrind

cd to the directory which contains the program you wish to run valgrind on

valgrind --tool=memcheck <program_name>

  mpirun -np 8 valgrind --tool=massif --stacks=yes --depth=100 phastaIC.exe
  ms_print massif.out.* | gvim -