On Thu, 27 Dec 2001, Davide Cesari wrote:
> In order to better understand the problem you should post the
> lam-mpi configure command-line you used; however it seems that, in the
> configuration phase, you didn't specify your Absoft compiler as compiler
> for f77/f90 bits of code in lam-mpi, so the default Gnu g77, which may
> have a different convention for naming external procedures, could have
> been used. If you didn't do this, you should run ./configure with the
> option -with-fc=f90, if 'f90' calls the Absoft compiler.
Thanks Davide! You are absolutely correct, LAM/MPI must be told to use
the Absoft compiler. However, there are actually two Absoft fortran
compilers (at least, with their Pro Fortran package), an F77 and an f90
compiler. In order to tell LAM to use the F77 compiler, you must do two
things:
1) Make sure that LAM/MPI uses f77 instead of g77 as the Fortran
compiler name. This can be done by specifying --with-fc=f77 at
configure time.
2) Makie sure that the absoft fortran compiler is in your path before
the GNU fortran compiler. You can determine which is first by
running 'which f77'.
Davide's assumption that the two compilers use different linking semantics
is also correct. Absoft's compiler leaves the symbol name as written,
while g77 appends two underscores to the end of the symbol name. Fun with
Fortran linking semantics ;-).
One important note of caution: Absoft compilers are by default case
sensitive, which causes some unexpected behavior with LAM. You can get
away with using the default setup of Absofts's compiler by making sure
that every MPI function name, constant, etc is in UPPERCASE. Or, you can
tell the compiler to be case-insensitive and behave like a normal fortran
compiler. The easiest way to do this is to specify the -f option to the
Absoft compiler. For the LAM compile, this can be done by specifying
--with-fflags='-f'. You will also need to specify the -f flag any time
you use the mpif77 wrapper compiler.
Hope this helps!
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/
|