Hello,

I believe that you are trying to use mpich, not openmpi (libmpich.a).
Personnally, I've compiling HPCC on AIX IBM with OpenMPI with theses lines:

 # ----------------------------------------------------------------------
 # - Message Passing library (MPI) --------------------------------------
 # ----------------------------------------------------------------------
 # MPinc tells the  C  compiler where to find the Message Passing library
 # header files,  MPlib  is defined  to be the name of  the library to be
 # used. The variable MPdir is only used for defining MPinc and MPlib.
 #
 MPdir        =
 MPinc        =
 MPlib        =
...
CC = mpicc

LINKER = mpicc

But, in my environnment variable $PATH, I've the directory where OpenMPI executables are: /****/openmpi/bin

I hope I could help you...

Regards


**************************************
NGUYEN Anh-Khai Laurent - Ingénieur de Recherche
Equipe Support Utilisateur

Email    :    laurent.ngu...@idris.fr
Tél      :    01.69.35.85.66
Adresse  :    IDRIS - Institut du Développement et des Ressources en
              Informatique Scientifique
              CNRS
              Batiment 506
              BP 167
              F - 91403 ORSAY Cedex
Site Web :    http://www.idris.fr
**************************************

Eric Thibodeau a écrit :
Hello all,

        As we all know, compiling OpenMPI is not a matter of adding -lmpi 
(http://www.open-mpi.org/faq/?category=mpi-apps). I have tried many different 
approaches on configuring the 3 crucial MPI lines in the HPCC Makefiles with no 
success. There seems to be no correct way to get mpicc --shome:* to return the 
correct info and forcing the correct paths/info seems to be incorrect (ie, what 
OpenMPI lib do I point to here:  MPlib = $(MPdir)/lib/libmpich.a)

Any help would be greatly appreciated!

Exerp from the Makefile:

# ----------------------------------------------------------------------
# - Message Passing library (MPI) --------------------------------------
# ----------------------------------------------------------------------
# MPinc tells the  C  compiler where to find the Message Passing library
# header files,  MPlib  is defined  to be the name of  the library to be
# used. The variable MPdir is only used for defining MPinc and MPlib.
#
MPdir        = /usr/local/mpi
MPinc        = -I$(MPdir)/include
MPlib        = $(MPdir)/lib/libmpich.a


Reply via email to