Important Note: This
document has been updated to the date mentioned at the bottom of this
file. PTP is still in its preliminary stages of development and is
being actively worked on based on the feedback
received from the PTP users (see the newsgroup). The descriptions given
in this document might become obsolete within a very small span of
time. The readers might find it useful to look into the PTP newsgroup
(news://news.eclipse.org/eclipse.technology.ptp, free account required)
and their website for recent updates, bug fixes & general
questions.
Description:
PTP Toolkit as a plug-in that that helps us to design & code MPI programs within the Eclipse IDE. It provides context sensitive helps, run time information and has some interesting debugging tools that may help the programmer to build accurate MPI programs avoiding much of the pains that are associated with debugging parallel programs on a console based system. However, at present many users are not even aware of its existence. This write-up is an attempt to help users get started with PTP and its powerful capabilities../configure --with-devel-headers --prefix=/path/to/your/ompi/installAt this point it's a good idea to run a small mpi program to test you have installed OpenMPI correctly.
make all
make install
mpicc helloMPI.c -o helloIf you want to use LAM/MPI with the development tools only, you can download & install LAM/MPI from : http://www.lam-mpi.org/7.1/download.php.
mpirun -np 2 hello
To install CDT from the update site, in the Help menu select Software Updates and then Find and Install, Select Search for new features to install and click Next. Click New Remote Site to add an update site with the URL:
http://download.eclipse.org/tools/cdt/releases/eclipse3.1
Select the appropriate CDT entry and click next to show the list of
features
for this release. The features for the CDT have been simplified and now
only
defines two features, the CDT runtime and the CDT SDK. The SDK feature
is a
superset of the CDT runtime with the addition of the CDT source. Place
a check
mark next to the desired entry and click through the rest of the pages
to get
the install started. After the install is completed, please make sure
you
accept the workbench restart.
There is another old fashioned way of installing CDT, that through
downloading .tar.gz file but I personally never used it. The above
mentioned strategy worked fine for me.
Step 4:
A. Instructions for building PTP from source:
Open up eclipse. Go to Window->Open Perspective->Other. Select
CVS Repository Exploring.
Click OK. On your left, repository pane opens up. Right click on this
pane & click new->repository location from the popup menu. A
dialogue box opens up. Setup the various parameters in the box as shown here. Click OK.
From the repository hierarchy go to HEAD/org.eclipse.ptp.
For PTP Development
Plugins only:
Select these packages:-
UNDER TOOLS:-
org.eclipse.ptp.mpi.core
org.eclipse.ptp.mpi.help
For PTP Runtime
& Debugging Plugins only:
Select these packages:
UNDER CORE:-
org.eclipse.ptp.core
org.eclipse.ptp.launch
org.eclipse.ptp.ui
UNDER DEBUG:-
org.eclipse.ptp.debug.core
org.eclipse.ptp.debug.external.core
org.eclipse.ptp.debug.external.ui
org.eclipse.ptp.debug.ui
UNDER DOC:-
org.eclipse.ptp.help
For each of these packages, right click on them and select check out. The plug-in/packages starts being copied under your eclipse
workspace folder.
Next, we need to build PTP from source. If your eclipse is set to
"build automatically" under project menu then these packages will be
built automatically as & when you check them out from CVS. The
corresponding class files should exist in bin folder under each of the
downloaded packages.
If however, "build automatically" is not set then click project and then click "build all".
Eclipse will start building class files
for all the source packages you have downloaded from CVS. There will be
a few warnings, but ignore them.
Next step is to build SDM (Scalable Debug Manager):
Note: This step is required only
if you plan to use the debugging & runtime plug-in.
Make sure you have the
following packages from eclipse repository by following the procedure
above and each time checking out the below mentioned packages:
UNDER DEBUG:-Change to org.eclipse.ptp.debug.sdm directory and run ./configure. This will configure all three directories.
org.eclipse.ptp.debug.sdm
org.eclipse.ptp.debug.sdm.orte.OS.ARCH e.g org.eclipse.ptp.debug.sdm.orte.linux.x86
UNDER CORE:-
org.eclipse.ptp.proxy
org.eclipse.ptp.utils
UNDER CORE:-Change to org.eclipse.ptp.orte directory & follow the same procedures as you did for sdm package.
org.eclipse.ptp.orte
org.eclipse.ptp.orte.OS.ARCH e.g. org.eclipse.ptp.orte.linux.x86
org.eclipse.ptp.proxy (You should already have them if you had followed the steps above)
org.eclipse.ptp.utils (You should already have them if you had followed the steps above)
Now select Run->Run ... from
eclipse menu & select
Eclipse Application and click new & the bottom left corner. A New
eclipse application configuration opens up. The main & plug-in tabs should look like the
ones given here. Click Run. A new instance of Eclipse running PTP will
open up.
B.
Instructions for using the PTP binaries directly by downloading
If you want to avoid all these
complications I just listed, just download the following packages from http://www.eclipse.org/ptp/downloads.html.
PTP Core:
org.eclipse.ptp-1.0.0.tar.gz
PTP Runtime:
org.eclipse.ptp.orte-linux-x86-1.0.0.tar.gz
PTP debug:
org.eclipse.ptp.debug-orte-linux-x86-1.0.0.tar.gz
MPI Devel:
org.eclipse.ptp-mpi-1.0.tar.gz
Note: At the time of last update,
the above mentioned binaries were available for download from PTP
website for PTP Release 1.0.
After downloading, simply extract them into your eclipse folder
(eg.
/usr/share/eclipse). Next, from command line fire up eclipse with
"-clean" switch.
The following discussion
& the next assignment assumes that you are
working on a new instance of eclipse that runs PTP.
Using the PTP Development
Environment for coding MPI Programs:
(Any MPI version can be used for this part)
The description given below can also be found here: http://www.eclipse.org/ptp/documentation/org.eclipse.ptp.mpi.help/html/setup.html
In Eclipse, follow these steps to create a new project:
- Select the source file to analyze for finding the MPI artifacts.
- Click the MPI button
in the tool bar. The source code gets analyzed and PTP reports how many artifacts were found.
- All the MPI function calls gets listed & flagged within the eclipse IDE.
First Posted: Feb 24 2006. Last Major
Update:
Mar 3 2006 Last Minor Update: Apr 1 2006 Credits: 10