[mvapich-discuss] Problem Compiling MVAPICH2 using PGICompilers

Saurabh Barve saurabh.barve at gmail.com
Tue Jun 30 13:47:37 EDT 2009


On Jun 30, 2009, at 9:46 AM, Karl W. Schulz wrote:

> Have you tried adding "-D_GNU_SOURCE" to your CFLAGS?  Not sure if  
> that's the issue here, but we did have to do this to get a PGI build  
> setup locally.
>
> Karl
>


Yes, I tried adding "-D_GNU_SOURCE" to my CFLAGS. I had seen that  
'fix' sent to the mailing list. But it didn't work for me. I keep  
getting the same error.

Did you use gcc/g++ as the C/C++ compilers or pgcc/pgCC? I would like  
to compile everything with the PGI compilers.


---------------------------------------------------------------
Fortune Favors the Barve







> On Jun 30, 2009, at 10:56 AM, Saurabh Barve wrote:
>
>> 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
>



More information about the mvapich-discuss mailing list