[mvapich-discuss] Error compiling MVAPICH2 with CUDA on Ubuntu Server

Jonathan Perkins perkinjo at cse.ohio-state.edu
Mon Jan 21 16:22:18 EST 2013


On Mon, Jan 21, 2013 at 04:15:56PM -0500, Jonathan Perkins wrote:
> On Mon, Jan 21, 2013 at 09:49:07PM +0100, José Manuel Molero wrote:
> > Hi,
> > 
> > I have the same problem discusses in this thread:
> > 
> > http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/2012-July/003964.html
> > 
> > List of software in my case:
> > 
> > Ubuntu Server
> > MVAPICH2 1.8 r5668
> > SLURM 2.3.2 
> > 
> > Everything is fine if I not use CUDA flag. For example:
> > 
> > ./configure --prefix=/opt/mvapich2 --with-pm=no --with-pmi=slurm  --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg 
> > 
> > But if I try to use CUDA flag in this way (I have the CUDA version 5.0):
> > 
> > ./configure --prefix=/opt/mvapich2 --with-pm=no --with-pmi=slurm  --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg --enable-cuda --with-cuda=/usr/local/cuda-5.0
> > 
> > or 
> > 
> > ./configure --prefix=/opt/mvapich2 --with-pm=no --with-pmi=slurm  --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg --enable-cuda --with-cuda=/usr/local/cuda
> > 
> > or
> > 
> > ./configure --prefix=/opt/mvapich2 --with-pm=no --with-pmi=slurm  --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg --enable-cuda 
> > 
> > This is the result when I do the make:
> > 
> > ../bin/mpicc   -o cpi cpi.o  -lm 
> > /usr/bin/ld: /root/mvapich2-1.8-r5668/lib/libmpich.a(alltoall_cuda_osu.o): undefined reference to symbol 'ceil@@GLIBC_2.2.5'
> > /usr/bin/ld: note: 'ceil@@GLIBC_2.2.5' is defined in DSO /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libm.so so try adding it to the linker command line
> > /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/libm.so: could not read symbols: Invalid operation
> > 
> > 
> > Any suggestion or idea?
> 
> Which compilers are you using?  What happens if you try adding
> LDFLAGS=-lm during configure?

If LDFLAGS doesn't help you can try using MPICH2LIB_LDFLAGS or
MPICH2LIB_LIBS instead.

-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo



More information about the mvapich-discuss mailing list