List Info

Thread: LAM: Configuring lam/g95 on SuSE 10.3




LAM: Configuring lam/g95 on SuSE 10.3
country flaguser name
United States
2008-03-02 17:09:09
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:

pattiPattiLaptop:~> g95
g95: no input files
pattiPattiLaptop:~>


...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.

pattiPattiLaptop:~> mpif77
-----------------------------------------------------------------------------
The LAM/MPI wrapper compiler was unable to find the specified compiler
gfortran in your PATH.
-----------------------------------------------------------------------------
pattiPattiLaptop:~>


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


Re: LAM: Configuring lam/g95 on SuSE 10.3
country flaguser name
Hong Kong
2008-03-02 22:05:03
PattiMichelle wrote:
>   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:
> 
> pattiPattiLaptop:~> g95
> g95: no input files
> pattiPattiLaptop:~>
> 
> ...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.
> 
> pattiPattiLaptop:~> mpif77
>
------------------------------------------------------------
-----------------
> The LAM/MPI wrapper compiler was unable to find the
specified compiler
> gfortran in your PATH.
>
------------------------------------------------------------
-----------------
> pattiPattiLaptop:~>
> 
> 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
> 

Hello,

mpif77 is a wrapper to the underlying (default) fortran
compiler when 
the binary package is built. You can see what it is using
the laminfo 
command.

If you want to use your own compiler, you'll have to build
lam yourself. 
  See the FAQ.

BTW, the maintainers recommend using openmpi if you're just
starting 
with lam.

Regards,
ST
--


_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/

Re: LAM: Configuring lam/g95 on SuSE 10.3
country flaguser name
Italy
2008-03-03 02:47:40
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:
> 
> pattiPattiLaptop:~> g95
> g95: no input files
> pattiPattiLaptop:~>
> 
> ...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.
> 
> pattiPattiLaptop:~> mpif77
>
------------------------------------------------------------
-----------------
> The LAM/MPI wrapper compiler was unable to find the
specified compiler
> gfortran in your PATH.
>
------------------------------------------------------------
-----------------
> pattiPattiLaptop:~>
> 
> 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/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )