./configure --prefix=/Users/USERNAME/pkg/openmpi-1.4.2-install\then
F77=gfortran CFLAGS=-m64 CXXFLAGS=-m64 FFLAGS=-m64
makeVoila!
make install
If you wish to install to the default location (/usr/local/ etc...) remove the prefix option.
Cite as:
Saad, T. "Compiling OpenMPI on MacOSX".
Weblog entry from
Please Make A Note.
https://pleasemakeanote.blogspot.com/2010/07/compiling-openmpi-on-macosx.html?m=0
FWIW: be careful of replacing the OS X-default installed Open MPI. We typically advocate installing in a non-default location (such as /usr/local or whatever). As long as you use the "mpicc" and friends installed with your new Open MPI install, it should link to the right shared libraries.
ReplyDeleteJeff, thanks a lot for the note!
ReplyDelete