Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] profile the performance of a MPI code: how much traffic is being generated?
From: Anthony Chan (chan_at_[hidden])
Date: 2009-09-30 02:34:50

It seems icc or icpc does not know about the option -mp, so
"mpiCC -g -O2 -mp simple_mpi.c" complains about -mp.

> mpicc -g -O2 -mp simple_mpi.c
cc1: error: unrecognized command line option "-mp"

> mpicxx -g -O2 -mp simple_mpi.c
cc1plus: error: unrecognized command line option "-mp"

I used mpich2's compiler wrapper built with intel compiler
for testing (since the error comes from the native compiler
so it does not matter what MPI implementation is used)
Also, CC should be set to mpicc not mpiCC (which is
C++ MPI compiler wrapper) Anyway, I suggest you try
configure MPE as follows:

./configure CC=icc F77=ifort

mpe2-1.0.6p1 isn't the latest. The latest mpe2 is bundled
with mpich2, currently at 1.1.1p1, and just use mpich2/src/mpe2

Let me know how it goes.


----- "Rahul Nabar" <rpnabar_at_[hidden]> wrote:

> On Tue, Sep 29, 2009 at 1:33 PM, Anthony Chan <chan_at_[hidden]>
> wrote:
> >
> > Rahul,
> >
> >
> > What errors did you see when compiling MPE for OpenMPI ?
> > Can you send me the configure and make outputs as seen on
> > your terminal ?  ALso, what version of MPE are you using
> > with OpenMPI ?
> Version: mpe2-1.0.6p1
> ./configure FC=ifort CC=icc CXX=icpc F77=ifort CFLAGS="-g -O2 -mp"
> FFLAGS="-mp -recursive" CXXFLAGS="-g -O2" CPPFLAGS=-DpgiFortran
> MPI_CC=/usr/local/ompi-ifort/bin/mpiCC
> MPI_F77=/usr/local/ompi-ifort/bin/mpif77
> MPI_LIBS=/usr/local/ompi-ifort/lib/
> Configuring MPE Profiling System with 'FC=ifort' 'CC=icc' 'CXX=icpc'
> 'F77=ifort' 'CFLAGS=-g -O2 -mp' 'FFLAGS=-mp -recursive' 'CXXFLAGS=-g
> -O2' 'CPPFLAGS=-DpgiFortran' 'MPI_CC=/usr/local/ompi-ifort/bin/mpiCC'
> 'MPI_F77=/usr/local/ompi-ifort/bin/mpif77'
> 'MPI_LIBS=/usr/local/ompi-ifort/lib/'
> checking for current directory name... /src/mpe2-1.0.6p1
> checking gnumake... yes using --no-print-directory
> checking BSD 4.4 make... no - whew
> checking OSF V3 make... no
> checking for virtual path format... VPATH
> User supplied MPI implmentation (Good Luck!)
> checking for gcc... icc
> checking for C compiler default output file name... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for suffix of executables...
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether icc accepts -g... yes
> checking for icc option to accept ANSI C... none needed
> checking whether MPI_CC has been set ...
> /usr/local/ompi-ifort/bin/mpiCC
> checking whether we are using the GNU Fortran 77 compiler... no
> checking whether ifort accepts -g... yes
> checking whether MPI_F77 has been set ...
> /usr/local/ompi-ifort/bin/mpif77
> checking for the linkage of the supplied MPI C definitions ... no
> configure: error: Cannot link with basic MPI C program!
> Check your MPI include paths, MPI libraries and MPI CC
> compiler
> _______________________________________________
> users mailing list
> users_at_[hidden]