Building LAMMPS with user-cuda package

Dear Experts,

My query is regarding making lammps with user-cuda package.
I am trying to build lammps(25Jul12 version) with user-cuda package on a Tesla M2070 machine with compute capability 2.0 and cuda version 4.2 using mpich2 and FFTW 2.1.5 for the build.

I am making cuda library following the instructions given in the manual and getting the liblammpscuda.a file (precision=4 arch=20 dbg=1 cufft=0 prec_timer=1).
While making lammps, I can see it running all .cpp files, then giving few warnings while running verlet.cpp, then listing all the object files, and finally giving an error message as given below.
I am really not sure whether it is a problem with the cuda in the machine or with the lammps installation. I could not get any help from mail archives as well. Please suggest me how can I rectify this.

Thank you so much in advance for your time and support.

Error message:

ld: skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart

That line is likely your problem. You do not have the appropriate CUDA software
installed on your box, or the LAMMPS build can't find it. So the link fails.

Steve

ld: skipping incompatible /usr/local/cuda/lib/libcudart.so when searching for -lcudart

That line is likely your problem. You do not have the appropriate CUDA software
installed on your box, or the LAMMPS build can't find it. So the link fails.

steve,

sorry, but in the case of the user-cuda package, this warning is harmless.

the Makefile.lammps has:

CUDA_USRLIB_CONDITIONAL := -L/usr/local/cuda/lib -L/usr/local/cuda/lib64 -lcufft

which means, that it *always* tries to link both, the 32-bit and
the 64-bit version of the cuda runtime library (and fft) so you will
*always* get a warning, that one of the two is incompatible and
thus will be skipped. there is nothing wrong with that.

the problem lies more likely in the use of two different C++
compilers being used for libcuda.a and lammps.

i would recommend to try compiling lammps with gcc
and not intel icpc.

axel.

Steve and Axel,

Thank you for the prompt responses. I tried compiling with gcc and it did work.
I could get the executable. Thanks again for the valuable suggestions.

Madhu.