Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
debug_quickstart [2013/09/24 11:29] ulges |
debug_quickstart [2013/10/02 10:44] (current) ulges [Quick start - Debugging MPI programs on Mogon] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Quick start: Debugging MPI programs on Mogon ====== | + | ====== Quick start - Debugging MPI programs on Mogon ====== |
+ | This is a greatly shortened version of how to use our debug wrapper [[selective-debug|selective-debug]].\\ | ||
+ | If you aren't familiar with the basics of using a debugger like [[http:// | ||
+ | |||
+ | ===== How to use " | ||
+ | This is the procedure for debugging //one// node from the amount of nodes you've chosen for running your program.\\ | ||
+ | If you want to debug multiple nodes, you should read the section " | ||
+ | In this tutorial you can also find information about how you can use the other debugging utilities '' | ||
+ | |||
- Make the libraries available which are needed for compilation and execution, e.g. <code bash>$ module purge | - Make the libraries available which are needed for compilation and execution, e.g. <code bash>$ module purge | ||
- | $ module add gcc/4.7.0 mpi/ | + | $ module add gcc/ |
- | - Modify your program by including the “[[selective-debug|selective-debug]]” ((In case selective-debug is not available in your $PATH environment, | + | $ module add mpi/ |
+ | - Modify your program by including the “[[selective-debug|selective-debug]]” ((In case "selective-debug" | ||
if(my_rank == <rank on which the problem exists>) { | if(my_rank == <rank on which the problem exists>) { | ||
- | BREAKPOINT_AND_SLEEP(10); | + | BREAKPOINT_AND_SLEEP(10); |
}</ | }</ | ||
- | - Compile your program with the switch **'' | + | - Compile your program with the switch **'' |
- | - Enqueue your Job | + | - Enqueue your job to LSF by adding your program as a parameter of " |