PattiMichelle ha scritto:
> I am trying to compile a FORTRAN open source program
with lam-mpi on my
> AMD dual core laptop running openSuSE 10.3 x86_64. I
was able to
> download and install g95:
>
> patti PattiLaptop:~> g95
> g95: no input files
> patti PattiLaptop:~>
>
> ...so I know it's working. I can install the lam-mpi
via an .rpm file,
> but am not sure how to get the lam wrapper compiler to
identify and use
> the g95 compiler. In trying to get it going, it
doesn't even seem to
> find the default installations of gFortran 41 or 42.
>
> patti PattiLaptop:~> mpif77
>
------------------------------------------------------------
-----------------
> The LAM/MPI wrapper compiler was unable to find the
specified compiler
> gfortran in your PATH.
>
------------------------------------------------------------
-----------------
> patti PattiLaptop:~>
>
> So I've been looking around on the web for which files
need to have
> paths to relevant compilers but haven't come across
anything that
> helps. I think this is affected by environment
variables, so I should
> mention SuSE defaults to the bash shell, but to build
the application I
> need to build, I must use tcsh. Can someone help me
set up a lam
> configuration file so it finds/uses g95? The link to
g95 (in
> /usr/local/bin) is in my path, and there doesn't seem
to be any
> standalone libraries for g95 - it's just one executable
file (in
> /usr/local/g95-32Bit-Integers).
>
> Thank You Very Much,
> PattiMichelle Sheaffer
>
Hi,
You can still try to force mpif77 use a different compiler,
without
rebuildig LAM-MPI, through the LAMMPIF77 environment
variable (see
LAM-MPI user guide), for bash/ksh:
export LAMMPIF77=g95
mpif77 -fno-second-underscore ...
notice that you will probably have to use the g95
-fno-second-underscore
option in order to link with the symbols generated for
gfortran, which
uses a single trailing underscore for external functions,
unlike g95.
good luck, Davide
--
__________________________________________________________
Davide Cesari ARPA-Servizio Idro Meteorologico __
tel (39) 051/525926 ||
fax (39) 051/6497501 |||
e-mail dcesari at arpa.emr.it |||/
www http://www.arpa.emr.it/sim
---
Address: ARPA-SIM, Viale Silvani 6, 40122 Bologna, Italy
__________________________________________________________
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
|