About Me

My photo
A Computer Enthusiast who's learning as much as I can, while attempting to share and re-distribute the knowledge! Enjoy! :D

Tuesday, May 25, 2010

Parallel Tools Platform (PTP) Plugin for Eclipse + OpenMPI

Quickstart

Assumption: A working Eclipse Development Environment successfully installed (JDT, J2EE, CDT).

1. Install the CDT (if not already installed). Replace Galileo with your version of Eclipse (Europa)
  • Help --> Install New Software
  • Work With --> Galileo --> http://download.eclipse.org/release/galileo
  • Programming Languages --> Eclipse C/C++ Development Tools

2. Install the PTP Plugin. Replace Galileo with your version of Eclipse (Europa), and Insert your own name for the NAME field
  • Help --> Install New Software
  • Work With --> Add
  • PTP (NAME)
  • http://download.eclipse.org/tools/ptp/releases/galileo (Location)

3. Install the following software (This is the minimal plugins I use for OpenMPI):
  • Parallel Tools Platform: Parallel Tools Platform Core
  • Parallel Tools Platform: Parallel Tools Platform End-User
  • Parallel Tools Platform: PTP Common Utilities
  • Parallel Tools Platform: PTP Parallel Language Development Tools
  • Parallel Tools Platform: PTP Scalable Debug Manager
  • Parallel Tools Platform: PTP Support for OpenMPI

You now have a fully functional environment to begin using Eclipse as your Parallel Computing IDE!

A few more steps are necessary to actually compile and run your OpenMPI code ...

Specify the MPI include path

1. Within the Eclipse IDE
  • Window --> Preferences (OS X: Eclipse --> Preferences)
  • Select Parallel Tools
  • Parallel Language Development Tools --> MPI
  • Under MPI --> Include Paths --> New

2. Navigate to the location of your include files for OpenMPI
  • /home/mlagatuz/Desktop/openmpi/include (Red Hat Enterprise Linux)
  • /usr/include (OS X) --> If I used the GUI, I needed to select /Developer/SDKs/MacOSX10.6.sdk/usr/include

6. Apply and OK

7. For some odd reason, the above steps only cover C, not C++. You will need to complete the following for C++
  • Right-Click on your project name --> Select Properties --> C/C++ General --> Paths and Symbols
  • Under Includes Tab --> Select GNU C++ --> Add
  • Navigate to your include files for OpenMPI (same as above)
  • Apply and OK

Adding a Resource Manager

This allows you to submit jobs onto your localhost. This assumes you will be running only on your own workstation, and not on a cluster.

1. Switch to the Parallel Runtime Perspective

2. Right click on the Resource Manager

3. Click on Resource Manager

4. Select Resource Manager Type: for this example it will be OpenMPI. This will be different if you have another version of MPI (MPICH).

5. During the next couple of screens, selecting the default options will suffice. You would deviate if you're working on a cluster

6. Start Resource Manager

--
Resources

1. Setup for MPI tools within the Parallel Language Development Tools
  • http://www.eclipse.org/ptp/documentation/org.eclipse.ptp.pldt.help/html/setup.html

2. Trial & Error

1 comment: