[Compile Error] cannot find -lnvidia-ml

Jul 20, 2015 at 3:31 PM
Hi,
I tried to compile "Makefile.gpu" on linux server (Ubuntu 14.04)

and it showed the following error

building output for x86_64 with build type debug
g++-4.8 -g -o bin/x86_64.gpu.debug.acml/cntk .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/NetworkDescriptionLanguage.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/CNTK.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/ComputationNode.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/ModelEditLanguage.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/SimpleNetworkBuilder.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTK/tests.o .build/x86_64.gpu.debug.acml/MachineLearning/CNTKEval/CNTKEval.o .build/x86_64.gpu.debug.acml/Math/Math/Matrix.o .build/x86_64.gpu.debug.acml/Math/Math/GPUMatrix.o .build/x86_64.gpu.debug.acml/Math/Math/GPUMatrixCUDAKernels.o .build/x86_64.gpu.debug.acml/Math/Math/GPUSparseMatrix.o .build/x86_64.gpu.debug.acml/Math/Math/GPUWatcher.o .build/x86_64.gpu.debug.acml/Math/Math/CPUMatrix.o .build/x86_64.gpu.debug.acml/Math/Math/CPUSparseMatrix.o .build/x86_64.gpu.debug.acml/Common/fileutil.o .build/x86_64.gpu.debug.acml/Common/DataWriter.o .build/x86_64.gpu.debug.acml/Common/ConfigFile.o .build/x86_64.gpu.debug.acml/Common/DataReader.o .build/x86_64.gpu.debug.acml/Common/Eval.o .build/x86_64.gpu.debug.acml/Common/File.o .build/x86_64.gpu.debug.acml/Common/BestGpu.o .build/x86_64.gpu.debug.acml/Common/TimerUtility.o -L/usr/local/cuda-7.0/lib64 -lcublas -lcudart -lcuda -lcurand -lcusparse -lnvidia-ml -L/usr/local/acml5.3.1/ifort64/lib -lacml -lm -lpthread -fopenmp -ldl -fPIC
/usr/bin/ld: skipping incompatible /usr/local/cuda-7.0/lib64/libnvidia-ml.so when searching for -lnvidia-ml
/usr/bin/ld: cannot find -lnvidia-ml
collect2: error: ld returned 1 exit status

make: *** [bin/x86_64.gpu.debug.acml/cntk] Error 1

It seems that my libnvidia-ml.so file has a problem. Can you help me about this?
Also, is the "cn.exe" file in cntk-linux version cannot be used without compile of "Makefile.gpu"?

Best regards,
Jungsik
Dec 9, 2015 at 11:48 PM
Hi Jungsik,

can you check with the latest sources and build instructions (https://cntk.codeplex.com/documentation)?

Many thanks!

Mark