[mvapich-discuss] Error compiling MVAPICH2 with CUDA on Ubuntu
Server
José Manuel Molero
jmlero at hotmail.com
Tue Jan 22 03:49:58 EST 2013
Hi,
Thanks a lot!
This are the compilers version:
./mpich2version
MVAPICH2 Version: 1.8
MVAPICH2 Release date: Mon Apr 30 14:56:40 EDT 2012
MVAPICH2 Device: ch3:mrail
MVAPICH2 configure: --with-pm=no --with-pmi=slurm --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg --disable-fast --enable-cuda --with-cuda=/usr/local/cuda-5.0 MPICH2LIB_LIBS=-lm
MVAPICH2 CC: gcc -g
MVAPICH2 CXX: c++ -g
MVAPICH2 F77: gfortran -g
MVAPICH2 FC: gfortran -g
gcc --version
gcc (Ubuntu/Linaro 4.6.3-1ubuntu5) 4.6.3
Now the make is completed with no errors using this configure
./configure --with-pm=no --with-pmi=slurm --prefix=/home/jmolero2/mpi --with-device=ch3:mrail --with-rdma=gen2 --enable-g=dbg --disable-fast --enable-cuda --with-cuda=/usr/local/cuda-5.0 MPICH2LIB_LIBS=-lm
I'm going to try an example.
Thanks.
> Date: Mon, 21 Jan 2013 16:22:18 -0500
> From: perkinjo at cse.ohio-state.edu
> To: jmlero at hotmail.com; mvapich-discuss at cse.ohio-state.edu
> Subject: Re: [mvapich-discuss] Error compiling MVAPICH2 with CUDA on Ubuntu Server
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.cse.ohio-state.edu/pipermail/mvapich-discuss/attachments/20130122/ae3205a7/attachment.html
More information about the mvapich-discuss
mailing list