Difference between revisions of "Valgrind"
From PHASTA Wiki
(Created page with "Valgrind is very useful for finding memory leaks that occur when running scripts. From viz001 or viz002: ''soft add +valgrind'' cd to the directory which contains the program...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:Software]] | ||
Valgrind is very useful for finding memory leaks that occur when running scripts. | Valgrind is very useful for finding memory leaks that occur when running scripts. | ||
− | |||
''soft add +valgrind'' | ''soft add +valgrind'' | ||
cd to the directory which contains the program you wish to run valgrind on | 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 - |
Latest revision as of 14:37, 14 March 2012
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 -