Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] conflict among differenv MPIs
From: Robert Kubrick (robertkubrick_at_[hidden])
Date: 2008-09-22 08:48:11


Recompile your own version of openmpi in a local directory, set your
PATH to your local openmpi install.

export PATH=/my/openmpi/install/include:/usr/local/include

mpicxx -show

On Sep 21, 2008, at 11:05 PM, Shafagh Jafer wrote:

> I have tried this, but didn't help :-( could any one help please???
>
> --- On Sun, 9/21/08, Brian Harker <brian.harker_at_[hidden]> wrote:
> From: Brian Harker <brian.harker_at_[hidden]>
> Subject: Re: [OMPI users] conflict among differenv MPIs
> To: "Open MPI Users" <users_at_[hidden]>
> Date: Sunday, September 21, 2008, 6:52 PM
>
> Just specify where each individual MPI distribution's stuff is on the
> command line when you compile with mpicc *.c -I$MPICH_HOME/include or
> mpicc *.c -I$OPENMPI_HOME/include where the "HOME" directories were
> specified with --prefix= when you installed. Hope this helps. This
> works for me. Hope this helps. Cheers!
>
> On Sun, Sep 21, 2008 at 7:37 PM, Shafagh Jafer <barfy27_at_[hidden]>
> wrote:
> > I have both openmpi and MPICH on my cluster, the problem is that
> mpi.h of
> > MPICH is in /usr/local/include and I dont have permission to
> rename or
> > remove it from there. In my source code I am including the mpi.h of
> openmpi
> > and this works fine, but then mpi.h itself includes mpicxx.h
> which it
> again
> > includes openmpi's mpi.h and this is my problem becase the system
> goes
> and
> > takes the mpi.h file of MPICH which is in /usr/local/include and
> thus i
> get
> > errors segfaults! I am using mpicc wrapper to compile my code and
> i think
> my
> > problem is due to having other mpi.h files. Am I right?? What
> should I do
> to
> > make /usr/local/include in-accesible from my code??? Please help me!
> >
> > _______________________________________________
> > users mailing list
> > users_at_[hidden]
> > http://www.open-mpi.org/mailman/listinfo.cgi/users
> >
>
>
>
> --
> Cheers,
> Brian
> brian.harker_at_[hidden]
>
>
> "In science, there is only physics; all the rest is
> stamp-collecting."
> -Ernest Rutherford
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users
>
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users