Launching Parallel Programs
This describes how to launch a parallel program on a local machine, with a local
resource manager, which should have been set up as described in
Resource Managers under the description for a local resource manager.
See also Launching parallel programs remotely.
Topics include:
- selecting the machine to run on
- selecting executable to run
- supplying resource requirements
- debugger information (??)
The parallel launch configuration dialog
Note: Make sure the resource manager is running before creating
a launch configuration.
- Open the run configuration dialog (Run -> Open Run Dialog...)
or click the run icon on the tool bar and select Open Run Dialog...
- Create a new Parallel Application by clicking "Parallel Application" and
then clicking on the "New" button icon.
Enter a name for the configuration in the "Name:" field.
Here we use the same name as the project.
- In the Main Tab:
- Choose a resource manager (Note: a resource manager
must be running for it to appear in the drop-down list of resource managers here.)
- Choose the Parallel Project
- Choose the Application Program (executable) from the project
(it is probably located in the Debug folder of your project, if this is a debug configuration)
- Select the Arguments tab
- Enter any program arguments
- Change working directory if necessary
- Select the Resources Tab
- Enter the number of processes to run, which was probably
set to "0" initially. Enter a value > 0.
- Select the Debugger Tab
- Select the Debugger that will control the parallel processes
by selecting "SDM" (the PTP's Scalable Debug Manager) from the selection menu.
Under Debugger options, select path
to debugger executable (probably in your
eclipse/plugins/org.eclipse.ptp.os.arch/bin directory,
where os.arch is your operating system and architecture, e.g.
org.eclipse.ptp.linux.x86)
For Debugger session address, assuming you are creating a local launch, fill in with "localhost"
- Click on Run to launch the program.
The parallel program begins execution...
Continue with Monitoring Parallel
Program execution with the PTP Runtime Perspective
.
Back to Top | Back to Table of Contents