[mpich-discuss] mpiexec Mac OS execution error
Nicolas Rosner
nrosner at gmail.com
Thu Mar 10 21:48:10 CST 2011
Hi Theron,
Since the macports port seems to be giving you some trouble, maybe
you'd want to try building from the latest source release instead?
It's pretty straightforward, can be done fully in user space, and if
you use a --prefix the whole thing will be installed within one
directory.
For instance, the steps below work fine for me on Mac OS X 10.6.6. I
used /mpich as the prefix, but you may want to use /Users/theron/mpi
or wherever you know you have permissions to write to.
Don't forget to add the <your_prefix>/bin directory to the *front* of
your PATH to ensure priority over other possible executables with the
same name elsewhere on your system.
Hope this helps,
Nicolás
$ mkdir /mpich ; cd /mpich
$ curl -O "http://www.mcs.anl.gov/research/projects/mpich2/downloads/tarballs/1.3rc1/mpich2-1.3rc1.tar.gz"
$ tar -zxf mpich2-1.3.rc1.tar.gz
$ cd mpich2-1.3rc1
$ ./configure --prefix=/mpich --disable-f77 --disable-fc
$ make
$ make install
$ export PATH=/mpich/bin:$PATH
$ cd examples
$ mpicc cpi.c
$ mpiexec -n 2 ./a.out
Process 0 of 2 is on fiona
Process 1 of 2 is on fiona
pi is approximately 3.1415926544231318, Error is 0.0000000008333387
wall clock time = 0.000196
More information about the mpich-discuss
mailing list