Creating MPI Projects

This section provides a brief introduction to creating, building and launching an MPI program. It will cover the following steps:

Step 1: Create the project

Note: this tutorial uses the Parallel Language Development Tools (PLDT) wizards for creating MPI projects. Please make sure this feature is installed before continuing.

  1. Switch to the C/C++ Perspective using Window > Open Perspective > Other... and then choose C/C++


  2. Create a new MPI project using the managed build facility. Select File > New > C Project ... and the New Project dialog should open.


  3. Enter a name for the project e.g. MyMPIProject.


  4. From the Project types list, expand Executable and select MPI Hello World C Project


    Make sure the toolchain selected is valid for your machine.


  5. In the Basic Settings dialog, fill in the author name and change any other values you like. The 'Source' value indicates the name of the folder in which the source file will be created.



    Click Next.


Step 2: Configure the project to use MPI

  1. 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.

    For more information see Include Paths and MPI Preferences.



    Click Finish.


  2. The new project is created and appears in the C/C++ Projects view. Expand the src folder to see the new source file.


Step 3: Build the executable

  1. 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.


  2. 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.


  3. Double-click on the source file name to open the C/C++ editor in order to correct any errors.



  4. 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.)

Step 4: Launch the program

  1. Before launching the program, you will need to create and start a Resource Manager


  2. 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