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

Pavan Balaji balaji at mcs.anl.gov
Wed Mar 23 21:42:26 CDT 2011


Setting the CC variable to pgcc is the correct way to do this. Can you 
send us the configure output as described in the README?

  -- Pavan

On 03/23/2011 09:39 PM, Rui Mei wrote:
> 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
>
>
>
> _______________________________________________
> mpich-discuss mailing list
> mpich-discuss at mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss

-- 
Pavan Balaji
http://www.mcs.anl.gov/~balaji


More information about the mpich-discuss mailing list