|
LAM MPI
with Absoft Fortran Compiler
for Mac OS X
This document contains steps to build
LAM MPI with Absoft Fortran 90 compiler (and link to Absoft
IMSL libraries) for Mac OS X.
Set these two environment variables (for
tcsh shell - default shell in Mac OS X)
setenv
CFLAGS -fno-common
setenv FFLAGS "-YEXT_NAMES=LCS
-YEXT_SFX=_"
Then configure LAM MPI with the following,
./configure --with-fc=f90 --without-romio
--without-mpi2cpp --prefix=/usr/local/lam
In this case, LAM has been configured
to install at /usr/local/lam. In addition, one has to make
sure that f90 is in the current path.
When the configure step is completed,
do make
make
This may take a few minutes. These are
the warning messages I have collected when I built my LAM
MPI,
ranlib: file: .libs/liblametc.a(ieee.o) has no
symbols
ranlib: file: .libs/liblam.a(ieee.o) has no symbols
mpitr_data.c:78: warning: use of `long double'
type; its size may change in a future release
mpitr_data.c:78: warning: (Long double usage
is reported only once for each file.
mpitr_data.c:78: warning: To disable this warning,
use -Wno-long-double.).
Then, do make install to install the binary.
make install
When you have completed the above steps,
you need to add /usr/local/lam/bin to your path. Within
/usr/local/lam/bin, you may be surprised that you only find
mpif77. This is just a symbolic link and it has been configure
with f90 NOT f77. If you desired, you could create another
symbolic link with name mpif90.
The following is an example Makefile,
FC = mpif77
FOPTS= -s -N11 -O2 -YEXT_NAMES=LCS -YEXT_SFX=_ -YDEALLOC=ALL
-ffree -p /Applications/Absoft/imsl_modules
LIB=-L/usr/local/lam/lib -llam -llamf77mpi -lmpi -lpmpi -L/Applications/Absoft/lib
-limslf90 -limsl -limslblas
OUT = ga-p
EXT = f90
SRC = ga-p
$(OUT) : $(SRC).$(EXT)
$(FC) $(FOPTS)
-o $(OUT) $(SRC).$(EXT) $(LIB)
I have the binary that I have built here
(lam.tar.gz).
All you have to do it get a copy of it. Gunzip and Untar at
/usr/local with gunzip < lam.tar.gz | tar xvf -.
Then, add /usr/local/lam/bin to your path. All done!
Hopefully, this would be helpful to someone
else.
Absoft would like to thank Sin Ming Loo
of The University of Alabama in Huntsville for this contribution.
|