<div>Dear all, </div>
<div> </div>
<div>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</div>
<div> </div>
<div>"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"<br></div>
<div>and if I execute mpicc -show</div>
<div> </div>
<div>"gcc -I/usr/local/mpi2/include -L/usr/local/mpi2/lib -L/usr/local/mpi2/lib -lmpich -lopa -lpthread -lrt"</div>
<div> </div>
<div>So it shows that it still uses gcc not pgcc?</div>
<div> </div>
<div>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.</div>
<div> </div>
<div>Thank you very much in advance for any advice.</div>
<div> </div>
<div>Best regards,</div>
<div>Rui<br></div>
<div> </div>
<div> </div>