[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:56:53 CDT 2011


Try this:

./configure --prefix=<whatever> CC=pgcc CXX=pgCC F77=pgf77 FC=pgf90

  -- Pavan

On 03/23/2011 09:55 PM, Rui Mei wrote:
> 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.
> Rui
> On Wed, Mar 23, 2011 at 10:50 PM, Pavan Balaji <balaji at mcs.anl.gov
> <mailto:balaji at mcs.anl.gov>> wrote:
>
>
>     [please keep mpich-discuss cc'ed. Emails sent to individual
>     developers are very likely to be dropped.]
>
>     Your configure output does not indicate that you set CC or FC to
>     anything. How exactly did you run configure?
>
>
>     On 03/23/2011 09:46 PM, Rui Mei wrote:
>
>         Dear Pavan,
>         Thank you for your quick reply. It means a lot and some hope for
>         me, I
>         have to say. I have been struggling with this research model for
>         quite a
>         while:( Here is the configure output.
>         Sincerely,
>         Rui
>
>         On Wed, Mar 23, 2011 at 10:42 PM, Pavan Balaji
>         <balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>
>         <mailto:balaji at mcs.anl.gov <mailto:balaji at mcs.anl.gov>>> wrote:
>
>
>             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 <mailto:mpich-discuss at mcs.anl.gov>
>         <mailto:mpich-discuss at mcs.anl.gov
>         <mailto:mpich-discuss at mcs.anl.gov>>
>
>         https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>
>
>             --
>             Pavan Balaji
>         http://www.mcs.anl.gov/~balaji
>
>
>
>     --
>     Pavan Balaji
>     http://www.mcs.anl.gov/~balaji
>
>

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


More information about the mpich-discuss mailing list