How to: Configure and Launch the MPI Cluster Debugger in Visual Studio 2008
Updated: February 3, 2010
The MPI Cluster Debugger Add-in for Visual Studio 2008 helps you debug parallel applications that are running on a Windows HPC Server 2008 cluster and that communicate through the Message Passing Interface (MPI). In Visual Studio, you can select the cluster head node and specify the number of processes to include in the debugging session, configure advanced properties for the cluster debugging session, and then start the debugger.
Before following the procedures in this topic, ensure that you have the required software, software updates, and system configurations as listed in Requirements for Using the MPI Cluster Debugger.
The following procedure describes how to perform a basic launch of the MPI Cluster Debugger. The procedure includes an optional step to select nodes and define process allocation. For detailed information and additional considerations about node selection, and for information about advanced configuration properties, see Configuration Properties for the MPI Cluster Debugger.
In Visual Studio, open the solution that contains your parallel application.
In the Project menu, click <yourProjectName> Properties. The Property Pages dialog box appears.
Expand the Configuration Properties node, then select Debugging.
Under Debugger to launch, select MPI Cluster Debugger.
Click OK to save changes and close Property Pages.
On the Tools menu, click Cluster Debugger Configuration. The Cluster Debugger Configuration pane appears.
In Cluster Debugger Configuration, specify the following properties:
In the Cluster head node drop-down list, select the name of the head node for the cluster that you want to use.
The list of head nodes is populated from the Active Directory domain controller. Only clusters in your domain appear in the list. If you do not see your head node, type the name or the IPv4 address of the head node in the property field.
In Number of processes, type or select the number of process to launch.
Optionally, specify which nodes to use for debugging and how to allocate processes as follows:
In Cluster Debugger Configuration, expand Advanced Properties.
In Nodes to use for debugging, select Edit.... The Node Selector Tool dialog box appears.
Select the radio button for the desired allocation option.
Select one or more nodes in the node list to use for debugging.
The resource selection that you specify in the Node Selector Tool overrides the Number of process property.
Set one or more breakpoints in your code. For information about setting breakpoints, see Breakpoints and Tracepoints.
Press F5 to launch the debugger.
In the MPI Cluster Debugger, you cannot start without debugging. Pressing Ctrl+F5 (or Start without debugging on the Debug menu) also starts debugging.
Because you are submitting a job to the cluster, you are prompted to enter your password to connect to the cluster. Type your password, and then press ENTER.
After the debugger is launched, look at the Processes window to verify the placement of the processes. For each process, look at the Transport Qualifier column to view the compute node on which the process is running.
After you launch the debugger, you can set the active process to debug by double-clicking a process in the Processes window. To open the Processes window, on the Debug menu, click Windows, then click Processes.
When you are debugging multiple processes, a breakpoint affects all the processes that are being debugged by default. To avoid breaking processes in unintended places, clear the Break all processes when one process breaks option. For more information about how to change break behavior, see Execution Control.
Configuration Properties for the MPI Cluster Debugger
Walkthrough: Launching the MPI Cluster Debugger in Visual Studio 2008
Using the MPI Cluster Debugger Add-In for Visual Studio 2008
mpiexec Command Reference