Debugging HP MPI Applications

You can debug HP MPI applications on a PA-RISC 1.1 or 2.0 processor. To use TotalView with HP MPI, you must use HP MPI version 1.6.

TotalView lets you start an MPI program in three ways:

totalview program -a mpi-arguments

This command tells TotalView to start the MPI process. TotalView will then show you the machine code for the HP MPI mpirun executable. Since you are not usually interested in debugging this code, you should let the program run by using the Process > Go command.

mpirun mpi-arguments -tv -f startup_file

This third method tells MPI that it should start TotalView and then start the MPI processes as they are defined within the startup_file script. This script names the processes that will be started. Typically, this file has contents that are similar to:

-h localhost -np 1 sendrecv
-h localhost -np 1 sendrecva

In this example, sendrecv and sendrecva are two different executable programs. (Your HP MPI documentation describes the contents of this file.)

mpirun mpi-arguments -tv program

This command tells MPI that it should start TotalView.

Just before mpirun starts the MPI processes, TotalView acquires them and asks if you want to stop the process before it starts executing. If your answer is yes, TotalView halts them before they enter the main program. You can then enter breakpoints.

Attaching to an HP MPI Job

To attach to a running HP MPI job, attach to the HP MPI mpirun process that started the job. The procedure for attaching to an mpirun process is the same as the procedure for attaching to any other process. For details, see Attaching to Processes.

After TotalView has attached to the HP MPI mpirun process, it displays the same dialog as it does with MPICH.

 
 
 
 
support@etnus.com
Copyright © 2001, Etnus, LLC. All rights reserved.
Version 5.0