Fwd: [mvapich-discuss] Problem Compiling MVAPICH2 using PGICompilers (fwd)

Saurabh Barve saurabh.barve at gmail.com
Thu Jul 2 20:25:41 EDT 2009


Sreeram,

Thanks. The latest trunk build fixed the problem. There were no errors during 'make' or 'make install'. All the binaries were generated.

-Saurabh


From: sreeram potluri 
Sent: Thursday, July 02, 2009 7:38 AM
To: saurabh.barve at gmail.com 
Cc: Dhabaleswar Panda ; Jonathan Perkins ; mvapich-core ; mvapich-discuss at cse.ohio-state.edu 
Subject: Fwd: [mvapich-discuss] Problem Compiling MVAPICH2 using PGICompilers (fwd)



Hi Saurabh,

We have a fix for this issue with PSM using PGI Compiler in our latest trunk available at 

https://mvapich.cse.ohio-state.edu/svn/mpi/mvapich2/trunk
(svn co https://mvapich.cse.ohio-state.edu/svn/mpi/mvapich2/trunk mvapich2)

Let us know if you see any further issues.

Thanks
Sreeram Potluri


---------- Forwarded message ----------
Date: Tue, 30 Jun 2009 08:56:31 -0700
From: Saurabh Barve <saurabh.barve at gmail.com>
To: Jonathan Perkins <perkinjo at cse.ohio-state.edu>
Cc: mvapich-discuss at cse.ohio-state.edu
Subject: Re: [mvapich-discuss] Problem Compiling MVAPICH2 using PGICompilers

On Mon, Jun 29, 2009 at 10:16:01PM -0700, Saurabh Barve wrote:
> Hi,
>
> I'm trying to build MVAPICH2 (mvapich2-1.4rc1) on a CentOS Linux
> machine, and am running into errors.
>
> Here is how I run the configure script:
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> CC=pgcc CXX=pgCC F77=pgf77 F90=pgf90 CFLAGS="-D_X86_64_ -D_SMP_ -
> DCH_PSM" LIBS="-lpthread -lpsm_infinipath" ./configure --enable-f77 --
> enable-f90 --enable-cxx --with-device=ch3:psm --with-arch=LINUX --with-
> romio --without-mpe --prefix=/opt/mvapich2/pgi
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Don't set CFLAGS or LIBS, this is taken care of by the supplied
configure options.  There is also shouldn't be a need to specify the
arch.

Do you get the same error with the following command?

./configure --with-device=ch3:psm --with-romio --without-mpe --prefix=/opt/mvapich2/pgi
CC=pgcc CXX=pgCC F77=pgf77 F90=pgf90

>
>
> This is the error I get when I run 'make':
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ...
> ...
> make[4]: Leaving directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/src/pm/mpirun'
> make[3]: Leaving directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/src/pm'
> make[2]: Leaving directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/src/pm'
> make[1]: Leaving directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/src'
> make[1]: Entering directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/examples'
> ../bin/mpicc   -o cpi cpi.o  -lm
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/lib/
> libmpich.a(mpid_irecv.o): In function `MPID_Irecv':
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/
> mpid_irecv.c:84: undefined reference to `MPIDI_CH3_iRecv'
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/
> mpid_irecv.c:90: undefined reference to `MPIDI_CH3_iRecv'
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/lib/
> libmpich.a(mpid_recv.o): In function `MPID_Recv':
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/
> mpid_recv.c:62: undefined reference to `MPIDI_CH3_Recv'
> /usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/
> mpid_recv.c:72: undefined reference to `MPIDI_CH3_Recv'
> make[1]: *** [cpi] Error 2
> make[1]: Leaving directory `/usr/src/redhat/SOURCES/mvapich2/pgi/
> mvapich2-1.4rc1/examples'
> make: *** [all-redirect] Error 2
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
>
> More details about the system I'm using:
>
> 1) Operating System - CentOS Linux 5.0
>
> 2) Kernel version - 2.6.18-8.1.14.el5
>
> 3) PGI Compiler Suite - Version 8.0-2
>
> 4) MVAPICH2 version 1.4rc1
>
> MVAPICH2 builds fine for me when I use the Intel compilers (icc, icpc,
> ifort) and use the same configure options as above.
>
> What am I doing wrong?
>
> Thanks,
> Saurabh
> --


Jonathan,

I get the same error when I try to use your configure command and then run
'make':

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
../bin/mpicc -I../src/include -I../src/include -c cpi.c
../bin/mpicc   -o cpi cpi.o  -lm
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/lib/libmpich.a(mpid_irecv.o):
In function `MPID_Irecv':
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/mpid_irecv.c:84:
undefined reference to `MPIDI_CH3_iRecv'
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/mpid_irecv.c:90:
undefined reference to `MPIDI_CH3_iRecv'
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/lib/libmpich.a(mpid_recv.o):
In function `MPID_Recv':
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/mpid_recv.c:62:
undefined reference to `MPIDI_CH3_Recv'
/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/src/mpid/ch3/src/mpid_recv.c:72:
undefined reference to `MPIDI_CH3_Recv'
make[1]: *** [cpi] Error 2
make[1]: Leaving directory
`/usr/src/redhat/SOURCES/mvapich2/pgi/mvapich2-1.4rc1/examples'
make: *** [all-redirect] Error 2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


-Saurabh
--------------------------------------------------
From: "Jonathan Perkins" <perkinjo at cse.ohio-state.edu>
Sent: Tuesday, June 30, 2009 5:00 AM
To: "Saurabh Barve" <saurabh.barve at gmail.com>
Cc: <mvapich-discuss at cse.ohio-state.edu>
Subject: Re: [mvapich-discuss] Problem Compiling MVAPICH2 using PGICompilers



_______________________________________________
mvapich-discuss mailing list
mvapich-discuss at cse.ohio-state.edu
http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20090702/d818a8e7/attachment-0001.html


More information about the mvapich-discuss mailing list