dev:debugging
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
dev:debugging [2016/11/02 11:43] – Add parallel debugging, important for oder of mpiecex/valgrind (by Jan W.) 130.60.136.223 | dev:debugging [2016/11/02 11:51] – Add OMP_NUM_THREADS and some valgrind options. agloess | ||
---|---|---|---|
Line 53: | Line 53: | ||
Run valgrind with | Run valgrind with | ||
< | < | ||
- | valgrind --max-stackframe=2100192 | + | valgrind --max-stackframe=2100192 --leak-check=full --track-origins=yes |
</ | </ | ||
to get the origin of undefined variables in addition to a leak check report. | to get the origin of undefined variables in addition to a leak check report. | ||
Line 73: | Line 73: | ||
==== valgrind in parallel ==== | ==== valgrind in parallel ==== | ||
- | valgrind can also be used for debugging parallel code: | + | valgrind can also be used for debugging parallel code, eg.: |
< | < | ||
- | mpiexec | + | mpirun |
</ | </ | ||
dev/debugging.txt · Last modified: 2020/08/21 10:15 by 127.0.0.1