Open MPI logo

Open MPI User's Mailing List Archives

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

Subject: Re: [OMPI users] Where to start with MPI on OSX?
From: Mark Bolstad (the.render.dude_at_[hidden])
Date: 2012-11-12 10:29:55


You may want to see if you have MacPorts installed. Typically (but not
always), /opt/local is from a MacPorts installation. If it is then it's
very easy to remove mpich and install openmpi.

To check for MacPorts, see if /opt/local/bin/port exists. Then,

sudo port uninstall --follow-dependencies mpich2
sudo port install openmpi

FYI, I'm using OpenMPI 1.6 with XCode 4.5.2 on 10.8.2 and it works fine.

Mark

On Fri, Nov 9, 2012 at 6:55 PM, shiny knight <theshinyknight_at_[hidden]> wrote:

> Thanks Reuti for the sample.
>
> I have the latest Xcode available on the Apple dev center; Xcode 4
> probably?
>
> I think that the reason why nothing happens is because the code runs via
> MPICH2; tried to launch mpicc with the -echo flag and i see in the output
>
> -I/opt/local/include/mpich2 -L/opt/local/lib -lpmpich -lmpich -lopa -lmpl
> -lpthread
>
> which makes me think that i am using MPICH2; I just need to figure out how
> to remove it now...found a dir in opt/local/include that is called mpich2
> but I am not sure if is enough to just delete that dir.
>
>
> When I have installed OpenMPI I followed the instructions on this site:
>
>
> https://sites.google.com/site/dwhipp/tutorials/installing-open-mpi-on-mac-os-x
>
> While for MPICH2 I've followed this one:
>
> http://www.mpitutorial.com/installing-mpich2/
>
> Most likely I've put them on top of each other and messed up both
>
>
>
> On Nov 9, 2012, at 2:32 AM, Reuti wrote:
>
> > Am 09.11.2012 um 08:47 schrieb shiny knight:
> >
> >> Thanks for your replies.
> >>
> >> I use Snow Leopard, running ompi_info returns an error (command not
> found).
> >
> > I'm on this version too. Which version of Xcode do you use - "Xcode
> 3.2.6 and iOS SDK 4.3"? Attached is a small file which I can compile with
> the mentioned command.
> >
> > $ mpicc demo.m -o demo -O0 -ObjC -framework Foundation -framework
> CoreLocation
> > $ mpiexec -np 2 ./demo
> >
> >
> >> I was looking for installers and I remember that I have installed
> MPICH2 if I recall correctly (I didn't knew about openMPI until today), so
> I have mpicc installed.
> >>
> >> Should I remove MPICH2 and install OpenMPI?
> >
> > Yes.
> >
> > Different MPI implementations have to be installed in different
> locations and the paths set accordingly. Also note, that an application
> compiled with Open MPI can't be started with MPICH2 `mpiexec` and vice
> versa. Well, yes - it could be started but it will only run in serial in
> all instances like you can start any application with `mpiexec`. As `mpicc`
> is only a wrapper to provide additonal paths arguments to -I/-L/-l, all
> usual options apply. In principle MPI applications can also be compiled by
> a plain gcc, but then you have to take care of all the necessary libraries
> on your own.
> >
> > -- Reuti
> >
> > <demo.m>_______________________________________________
> > 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
>