MPI for MBP

I was wondering if it was possible to run multiprocessor code on my MBP C2D. I currently use Fortran 95 (I know, I'm ancient) on Xcode, but I would like to compile and run using mpif90,... Have any of you been able to install an MPI package successfully, and if so, which one was it?

Mac OS X (10.4.8)

Posted on Mar 10, 2007 6:04 AM

Reply
2 replies

Mar 12, 2007 11:58 AM in response to Tatossian

MPI runs quite nicely on the Macintosh. If you have a Itel Macintosh, you will want to use LAM/MPI (lam-7.1.2.tar.gz) as a bug in OPENMPI (openmpi-1.0.2.tar.gz) prevents programs from sharing the data between processors at full speed.(The bug is reported and with luck will be fixed soon) . The free FORTRAN compilers G95 ( http://www.g95.org/) and GFORTRAN ( http://gcc.gnu.org/wiki/GFortran) both work with MPI. GFORTRAN runs fasters, but G95 compiles more programs and is easier to use. Here is what sets thing correctly for our programs, you may need other flags for yours -

# to install lam-mpi with gfortran on PowerPC:
# download "lam-7.1.2.tar.gz" from "www.lam-mpi.org"
# tar -zxvf lam-7.1.2.tar.gz
# cd lam-7.1.2
# setenv FC gfortran
# setenv F77 gfortran
# setenv GCC cc
# setenv CFLAGS "-mlong-double-64"
# setenv FFLAGS "-fno-second-underscore"
# configure --with-memory-manager=none
# make
# sudo make install
#
# to install lam-mpi with gfortran on Intel:
# download "lam-7.1.2.tar.gz" from "www.lam-mpi.org"
# tar -zxvf lam-7.1.2.tar.gz
# cd lam-7.1.2
# setenv FC gfortran
# setenv F77 gfortran
# setenv GCC cc
# setenv FFLAGS "-fno-second-underscore -ffloat-store" # might not want "-fno-second-underscore"
# configure --with-memory-manager=none
# make
# sudo make install

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MPI for MBP

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.