Parallel Programming Guide for HP-UX Systems
MPI
Debugging
Chapter 2 53
Debugging
This chapter describes debugging and troubleshooting HP MPI applications. The topics
covered are:
• Using Visual MPI
• Debugging HP MPI applications
— Using a single-process debugger
— Using a multi-process debugger
— Using the diagnostics library
— Enhanced debugging output
— Backtrace functionality
• Troubleshooting HP MPI applications
— Building
— Starting
— Running
— Completing
Debugging HP MPI applications
HP MPI allows you to use single-process debuggers to debug applications. The available
debuggers are ADB, DDE, XDB, WDB and GDB. You access these debuggers by setting
options in the MPI_FLAGS environment variable. HP MPI also supports the multithread,
multiprocess debugger, TotalView on HP-UX 11i and higher.
In addition to the use of debuggers, HP MPI provides a diagnostic library (DLIB) for advanced
error checking and debugging. HP MPI also provides options to the environment variable
MPI_FLAGS that report memory leaks (l), force MPI errors to be fatal (f), print the MPI job ID
(j), and other functionality.
This section discusses single- and multi-process debuggers and the diagnostic library.