[mpich-discuss] Getting MPICH2 to find/use g95 fortran

PattiMichelle miche1 at earthlink.net
Sun Apr 6 17:00:22 CDT 2008


Thank you very much, Pavan!  I'm not really a command line user - I
assume this will cause MPICH to compile with g95 and also to use g95
when compiling other programs to run under MPI.   I'm not sure of the
syntax of the "&&" command - is that causing it to run make with the
previous line as input?

Thank You Again!!
Patti

Pavan Balaji wrote:
>
> You can force MPICH2 to use g95 by setting environment variables at
> configure time:
>
>   $ F77=/path/to/g95 F90=/path/to/g95 ./configure
> --prefix=/some/place/mpich2-install
>
>   $ make && make install
>
>  -- Pavan
>
> On 04/06/2008 02:08 PM, PattiMichelle wrote:
>> Hello Everyone :-)
>> I have installed g95 on my SuSE 10.2 x86_64 dual core system and want
>> to use MPICH2 to compile a certain parallel-enabled fortran code.  I
>> looked at the MPICH2 configure script file(s) and noticed entries for
>> g95, so as long as I build the code from source (rather than
>> installing from an .rpm file), then it should detect g95, correct? 
>> I'm not sure *how* it actually detects it because g95 can be
>> installed pretty much anywhere according to the g95 docs.  I have set
>> (in bashrc):
>>
>> alias f77=g95
>> alias f90=g95
>>
>> ...and it seems to work...
>>
>> patti at PattiDesktop:~> f77
>> g95: no input files
>> patti at PattiDesktop:~> f90
>> g95: no input files
>> patti at PattiDesktop:~>
>>
>> ...and have removed gfortran so the only fortran on my system
>> *should* be g95...  I would appreciate a comment or three as to
>> whether or not I need to set anything else before running configure /
>> make / make install on the MPICH2 source.
>>
>> THANK YOU!!
>> PattiMichelle Sheaffer
>>
>>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20080406/213653f0/attachment.htm>


More information about the mpich-discuss mailing list