[MPICH] mpif90 issues

Anthony Chan chan at mcs.anl.gov
Thu Sep 1 12:26:27 CDT 2005



On Thu, 1 Sep 2005, Rajeev Thakur wrote:

> You might want to try using MPICH2 instead. In MPICH2, you can specify the
> PG compilers by setting the environment variables CC, CXX, F77, and F90,
> instead of the command-line arguments to configure.

An analogous way like your old configure command is

<moich2-1.0.2p1_dir>/configure CC=pgcc CXX=pgCC F77=pgf77 F90=pgf90 ...

All the "environmental" variables can be specified as part of configure
command.

PS. Advantages of putting the env. variables as part of configure
command are 1) the env variables won't corrupt your working environment,
so you can configure MPICH2 with different set of compilers in the same
shell. 2) the exact configure command and options can be retrieved by a
grep on config.status, e.g.

grep -A 5 configured config.status

or

./config.status --recheck (hits control-c as soon as it runs).

A.Chan

>   _____
>
> From: owner-mpich-discuss at mcs.anl.gov
> [mailto:owner-mpich-discuss at mcs.anl.gov] On Behalf Of Mike Zupan
> Sent: Thursday, September 01, 2005 8:23 AM
> To: mpich-discuss at mcs.anl.gov
> Subject: [MPICH] mpif90 issues
>
>
> We are having some issues building mpif90 against pgi6 the 64bit version.
>
> Here are my env vars for pgi
>
> PGI=/usr/local/pgi-6.0
> PGI2=/usr/local/pgi-6.0/linux86-64/6.0
> export PGI PGI2
> MANPATH=/usr/man:$PGI2/man:/usr/share/man
> export MANPATH
> PATH=$PATH:$HOME/bin:/usr/local/pgi-6.0/linux86-64/6.0/bin:/usr/sbin:/sbin:/
> usr/local/bin:/etc:/usr/local/sbin/:.
>
> Here is how i compiled mpich
>
> ./configure -cc=pgcc -f90=pgf90 -fc=pgf77
>
> Then when i run mpif90 i get this
> [wind at testing mpich-1.2.7]$ ./bin/mpif90
> /usr/local/pgi-6.0/linux86-64/6.0/lib/f90main.o(.text+0x42): In function
> `main':
> : undefined reference to `MAIN_'
>
> has anyone seen this? This is a centOS 4.1 system with just the 64bit
> compiler/libraries installed
>
> thanks
>
>
> --
> http://www.zcentric.com/wiki
> My Linux Howto/Tips Wiki
>
>




More information about the mpich-discuss mailing list