This section provides a brief introduction to creating, building and launching an MPI program. It will cover the following steps:
Note: this tutorial uses the Parallel Language Development Tools (PLDT) wizards for creating MPI projects. Please make sure this feature is installed before continuing.
Switch to the C/C++ Perspective using Window > Open Perspective > Other... and then choose C/C++
Create a new MPI project using the managed build facility. Select File > New > C Project ... and the New Project dialog should open.
Enter a name for the project e.g. MyMPIProject.
From the Project types list, expand Executable and select MPI Hello World C Project
In the Basic Settings dialog, fill in the author name and change any other values you like.
In the MPI Project Settings dialog, make sure Add MPI Project settings to this project is checked. You can uncheck Use default information if you need to change any values for include paths, libraries or search path, or MPI build commands.
The new project is created and appears in the C/C++ Projects view. Expand the src folder to see the new source file.
Assuming that you have MPI installed and that the project was configured correctly, the application should now autmatically build. When the automatic build setting is selected, Eclipse will build the application whenever you save changes in an editor. Automatic/manual build can be toggled by selecting Project > Build Automatically.... When manual build is selected, a build can be initiated using Project > Build All.
Once the build is complete, any errors will be dislayed in the Problems view, the corresponding source files will be flagged, and markers will be insterted into the editor window.
Double-click on the source file name to open the C/C++ editor in order to correct any errors.
Details of the commands that were executed to complete the build can be seen in the Console view (click on the Console tab near the bottom right hand corner of the Eclispe workbench.)
Before launching the program, you will need to create and start a Resource Manager
Once you have verified that the resource manager is operating correctly, you can then create a configuration and launch the parallel program.
Back to Top | Back to Table of Contents