Re: [AMBER] Issue installing Amber16 cuda

From: Dr. M. Shahid <mohammad.shahid.gmail.com>
Date: Fri, 16 Jun 2017 15:08:17 +0200

Hi,

It seems your CUDA_HOME/lib64 is not set in the LD_LIBRARY_PATH, the error
says usr/bin/ld: cannot find -lcuda
it can't find the cuda libraries.

Best regards,

--
Shahid.
On Fri, Jun 16, 2017 at 2:05 PM, Alexander Martin Spring-Connell <
aspring1.gsu.edu> wrote:
> Dear Amber Users,
>
> I'm having an issue compiling Amber16 pmemd.cuda (serial).  The
> compilation keeps erroring out at the same point.  I've installed the
> standard Amber serial and mpi packages with no issues.  I have a geforce
> 1070 GPU with cuda installed (which passed the basic Nvidia CUDA tests).
> I'm using cuda 8.0 and the gnu compilers outlined in the general Amber
> installation notes.  The error I'm getting is "/usr/bin/ld: cannot find
> -lcuda" (see below).
>
> I'm sure I've overlooked something basic.  I've included below the last
> bit of the compilation output.
>
> Thank you in advance for your help.
>
> Alex Spring-Connell
>
>
>
>
> make[3]: Leaving directory `/usr/localtest/amber16/AmberTools/src/arpack'
> /usr/local/cuda/bin/nvcc -gencode arch=compute_20,code=sm_20 -gencode
> arch=compute_30,code=sm_30 -gencode arch=compute_50,code=sm_50 -gencode
> arch=compute_52,code=sm_52 -gencode arch=compute_53,code=sm_53 -gencode
> arch=compute_60,code=sm_60 -gencode arch=compute_61,code=sm_61
> -use_fast_math -O3  -ccbin g++ -I../cusplibrary-0.6.0-rc -o
> cuda_cg_wrapper.o -c cuda_cg_wrapper.cu -DCUSP -DPCG -DJacobi -DDIA
> nvcc warning : The 'compute_20', 'sm_20', and 'sm_21' architectures are
> deprecated, and may be removed in a future release (Use
> -Wno-deprecated-gpu-targets to suppress warning).
> g++ -fPIC -O3  -o band2csr.o -c band2csr.cpp
> gfortran  -DBINTRAJ -DEMIL    -fPIC  -ffree-form  -I/usr/localtest/amber16/include
> -I/usr/localtest/amber16/include    -o pbsa.cuda \
>     dsvdc.o  pbsa.o pb_read.o pb_write.o getcoor.o runmd.o runmin.o
> force.o pbsa_lib.o pb_init.o sa_driver.o density.o np_force.o pb_force.o
> pb_p3m.o pb_fdfrc.o pb_crgview.o pb_fddrv.o pb_iimdrv.o pb_nlsolver.o
> pb_bldsys.o pb_mpfrc.o pb_direct.o pb_list.o timer.o egb.o ene.o locmem.o
> myopen.o rdparm.o pb_lsolver.o decomp.o rgroup.o rfree.o debug.o coed20.o
> irre32.o  phidev.o  project.o  qld.o coed6.o   irre31.o  miniop.o iimod.o
> prodis.o  qint.o     wint.o transf.o curv.o GrToPr.o jumps.o problem.o
> regular.o gmres.o daxpy.o  ddot.o    dheqr.o  dpigmr.o  dscal.o   dslui2.o
> dxlcal.o dchkw.o  dgmres.o  dnrm2.o  drlcal.o  dsilus.o  dslui.o   isdgmr.o
> dcopy.o  dhels.o   dorth.o  ds2y.o    dslugm.o  dsmv.o    qs2i1d.o
> d1mach.o  fdump.o   i1mach.o  j4save.o  xercnt.o  xerhlt.o  xermsg.o
> xerprn.o  xersve.o  xgetua.o bicg.o dbcg.o dslui4.o dsluti.o dsmtv.o
> dslubc.o isdbcg.o pb_chkfrc.o svdcmp.o svbksb.o pythag.o pb_augdrv.o
> gmresX.o interpX.o matvec3.o gen_dx_file.o aug_iccg.o parms.o
> memory_module.o rdpqr.o cuda_cg_wrapper.o band2csr.o
> -L/usr/local/cuda/lib64 -L/usr/local/cuda/lib -lcublas -lcusparse -lcudart
> -lcuda -lstdc++ -I/usr/local/cuda/include \
>     ../lib/nxtsec.o ../lib/random.o \
>     -L/usr/localtest/amber16/lib -larpack -llapack -lblas
> /usr/bin/ld: cannot find -lcuda
> collect2: error: ld returned 1 exit status
> make[2]: *** [pbsa.cuda] Error 1
> make[2]: Leaving directory `/usr/localtest/amber16/AmberTools/src/pbsa'
> make[1]: *** [cuda_serial] Error 2
> make[1]: Leaving directory `/usr/localtest/amber16/AmberTools/src'
> make: *** [install] Error 2
>
>
> _______________________________________________
> AMBER mailing list
> AMBER.ambermd.org
> http://lists.ambermd.org/mailman/listinfo/amber
>
_______________________________________________
AMBER mailing list
AMBER.ambermd.org
http://lists.ambermd.org/mailman/listinfo/amber
Received on Fri Jun 16 2017 - 06:30:03 PDT
Custom Search