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