Installing mpiP on Ubuntu 10.04

I’ll describe the installation process of mpiP, a profiler for mpi applications. AFAIK, it’s not listed on synaptic package manager so we need to download the source from sourceforce http://sourceforge.net/projects/mpip/

Untar it and run

./configure

In my case, the required library unwind wasn’t installed and that resulted in an error. Since I also couldn’t find it on synaptic, I obtained it from here: http://sourceforge.net/projects/unwind/

This time, running

./configure

and

make

Resulted in:

accepted by the compiler, rejected by the preprocessor!

The workaround was to add a flag to the compiler, U_FORTIFY_SOURCE. This can be done when running configure:

./configure CFLAGS=-U_FORTIFY_SOURCE
make
sudo make install

I also needed to install the gfortran and bfd packages from synaptic.

Back to mpiP folder, I did

./configure 
make
make install

And everything went well. The default installation is in the mpiP folder, so when telling the compiler where to look for the mpiP libraries, one has to type:

mpic++ -g code.cpp -L${mpiP_folder}/lib -lmpiP -lm -lbfd -liberty -lunwind
Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s