<div>I first set FC=/opt/pgi/linux86-64/10.4/bin/pgf90 and CC=/opt/pgi/linux86-64/10.4/bin/pgcc and then run the configure command in default. Do I need to add FC and CC as some option with configure command? I thought defining them before executing configure should be fine.</div>
<div> </div>
<div>Rui<br></div>
<div class="gmail_quote">On Wed, Mar 23, 2011 at 10:50 PM, Pavan Balaji <span dir="ltr"><<a href="mailto:balaji@mcs.anl.gov">balaji@mcs.anl.gov</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote"><br>[please keep mpich-discuss cc'ed. Emails sent to individual developers are very likely to be dropped.]<br>
<br>Your configure output does not indicate that you set CC or FC to anything. How exactly did you run configure?
<div class="im"><br><br>On 03/23/2011 09:46 PM, Rui Mei wrote:<br></div>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div class="im">Dear Pavan,<br>Thank you for your quick reply. It means a lot and some hope for me, I<br>have to say. I have been struggling with this research model for quite a<br>while:( Here is the configure output.<br>
Sincerely,<br>Rui<br><br>On Wed, Mar 23, 2011 at 10:42 PM, Pavan Balaji <<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a><br></div>
<div>
<div></div>
<div class="h5"><mailto:<a href="mailto:balaji@mcs.anl.gov" target="_blank">balaji@mcs.anl.gov</a>>> wrote:<br><br><br> Setting the CC variable to pgcc is the correct way to do this. Can<br> you send us the configure output as described in the README?<br>
<br> -- Pavan<br><br><br> On 03/23/2011 09:39 PM, Rui Mei wrote:<br><br> Dear all,<br> I was trying to install MPICH2 with pgf90 and pgcc. So I set<br> FC=pgf90<br> and CC=pgcc before I configure. After sucessful installation of<br>
MPICH2,<br> if I execute mpif90 -show, I will get<br> "pgf90 -I/usr/local/mpi2/include -I/usr/local/mpi2/include<br> -L/usr/local/mpi2/lib -L/usr/local/mpi2/lib -lmpichf90 -lmpichf90<br> -lmpich -lopa -lpthread -lrt"<br>
and if I execute mpicc -show<br> "gcc -I/usr/local/mpi2/include -L/usr/local/mpi2/lib<br> -L/usr/local/mpi2/lib -lmpich -lopa -lpthread -lrt"<br> So it shows that it still uses gcc not pgcc?<br>
The reason I am asking this is that when I run our resarch model<br> with<br> MPICH2, the default script will set FC=mpif90, CC=mpicc, to run the<br> model, but the model would fail at the build process because it<br>
complains that mpicc can not recognize some option that pgcc do<br> recognize, because if I set CC=pgcc, our research model can build<br> and run without any problem. So I am wondering if my installation of<br>
MPICH2 is using pgcc rather than gcc, the model may also be able to<br> build and run with the default script setting CC=mpicc. So my<br> question<br> is how to do it? The reason I need to solve it is that when I<br>
run the<br> model for some special configuration, it would fail even when I set<br> CC=pgcc. Therefore, I must solve it with CC=mpicc, I guess.<br> Thank you very much in advance for any advice.<br>
Best regards,<br> Rui<br><br><br><br> _______________________________________________<br> mpich-discuss mailing list<br></div></div> <a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a> <mailto:<a href="mailto:mpich-discuss@mcs.anl.gov" target="_blank">mpich-discuss@mcs.anl.gov</a>>
<div class="im"><br> <a href="https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss</a><br><br><br> --<br> Pavan Balaji<br> <a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br>
<br><br></div></blockquote>
<div>
<div></div>
<div class="h5"><br>-- <br>Pavan Balaji<br><a href="http://www.mcs.anl.gov/~balaji" target="_blank">http://www.mcs.anl.gov/~balaji</a><br></div></div></blockquote></div><br>