6.In the Preferences window, click on the Bulk Launch tab. Make sure that Enable debug server bulk launch is not selected.

7.Click on the OK button at the bottom-left of the Preferences window to save these changes. The file is stored in the .totalview directory in your home directory. As long as the file exists, you can omit the steps in this section for subsequent TotalView runs.

8.Exit TotalView by selecting Exit from the File pulldown menu.

TotalView launch preferences are now configured and saved. You can make changes to this configuration at any time.

4.2.1.6 Debugging an Application

This section describes how to use TotalView to debug an application. Note that the steps in this section assume that you have already completed the previous steps to prepare TotalView, described in Section 4.2.1.2 and Section 4.2.1.5.

1.Compile the application to be debugged. For example:

$ mpicc -g -o Psimple simple.c -lm

The -goption is strongly recommended. It enables debugging information that TotalView will utilize.

2.Run the application in TotalView:

$ mpirun -tv -srun -n2 ./Psimple

4-8Debugging Applications