To use the PTP Parallel Language Development Tools feature for MPI development, you need to
To specify the MPI include path, use Window > Preferences. (For Mac, use Eclipse > Preferences) Under PTP, Parallel Language Development Tools, MPI... (Note: If you do not have core PTP installed, the "Parallel Language Development Tools" section in the preferences will be included without it.)
Add the path to MPI include paths - this tells PLDT what symbols to look
for in the MPI Artifact view. You can also specify the default MPI build command.
These values will make the MPI New Project Wizard page make more
accurate predictions of settings for new projects.
The MPI include paths must also be added to each project. There are two ways to do this.
Create a new "C project"
File->New->C project (if you are already in the C/C++ perspective this may be the simplest)
is one way; there are several ways to get to this wizard
Enter a project name; under Project types, expand 'executable' and select, e.g. "MPI Hello World C project"
Select Next.
On the next page, fill in any project template values, e.g. your name.
Then select Next.
On the next page, "MPI Project Settings" page, make sure the "Add MPI project settings to this project"
is checked. If you want to change any of the default values for this project, you can do so
here by unchecking the "Use default information" and altering the values.
Select Finish.
The project is created and should build automatically.
The Eclipse workbench is shown below after creating the new "MPI hello world" project.
The project explorer view on the left shows the project contents.
The source file is under the 'src' directory; expand this to see it.
Double-click on the source file name to edit the source file. The outline view on the
right shows the outline of the file currently shown in the editor.
The Console view at the bottom shows the results of the project build.
Now continue to set up to run the MPI tools
If the new project wizard isn't used as described above to set the MPI information for a project, the MPI information can be added to the project manually as follows.
Project Properties, C/C++ Build, Configuration Settings, Tool Settings tab, GCC C Linker, Libraries
Now continue to set up to run the MPI tools