[mpich-discuss] a question related to installation of MPICH2 with pgf90 and pgcc (PGI fortran and c compiler)

Rui Mei meir02ster at gmail.com
Wed Mar 23 21:39:57 CDT 2011


Dear all,

I was trying to install MPICH2 with pgf90 and pgcc. So I set FC=pgf90 and
CC=pgcc before I configure. After sucessful installation of MPICH2, if I
execute mpif90 -show, I will get

"pgf90 -I/usr/local/mpi2/include -I/usr/local/mpi2/include
-L/usr/local/mpi2/lib -L/usr/local/mpi2/lib -lmpichf90 -lmpichf90 -lmpich
-lopa -lpthread -lrt"
and if I execute mpicc -show

"gcc -I/usr/local/mpi2/include -L/usr/local/mpi2/lib -L/usr/local/mpi2/lib
-lmpich -lopa -lpthread -lrt"

So it shows that it still uses gcc not pgcc?

The reason I am asking this is that when I run our resarch model with
MPICH2, the default script will set FC=mpif90, CC=mpicc, to run the model,
but the model would fail at the build process because it complains that
mpicc can not recognize some option that pgcc do recognize, because if I set
CC=pgcc, our research model can build and run without any problem. So I am
wondering if my installation of MPICH2 is using pgcc rather than gcc, the
model may also be able to build and run with the default script setting
CC=mpicc. So my question is how to do it? The reason I need to solve it is
that when I run the model for some special configuration, it would fail even
when I set CC=pgcc. Therefore, I must solve it with CC=mpicc, I guess.

Thank you very much in advance for any advice.

Best regards,
Rui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110323/bd729983/attachment.htm>


More information about the mpich-discuss mailing list