[Compile Error] Makefile_kaldi2.gpu compile error

May 6, 2015 at 8:33 AM
Hello.

I compiled Makefile_kaldi2.gpu now and I got the following message
creating .build/x86_64.gpu.release.acml/Common/BestGpu.o for x86_64 with build type release
g++ -c Common/BestGpu.cpp -o .build/x86_64.gpu.release.acml/Common/BestGpu.o -O4  -msse3 -std=c++0x -std=c++11 -D_POSIX_SOURCE -D_XOPEN_SOURCE=600 -D__USE_XOPEN2K -DUSE_ACML -fopenmp -fpermissive -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS  -I Common/Include -I Math/Math -I MachineLearning/cn -I /scratch/cuda-7.0/include -I /home/dong/CNTK/cntk/acml/gfortran64/include -I /home/dong/Kaldi_Dong/kaldi-trunk/src -I /home/dong/Kaldi_Dong/kaldi-trunk/tools/ATLAS/include -I /home/dong/Kaldi_Dong/kaldi-trunk/tools/openfst/include -fPIC -MD -MP -MF .build/x86_64.gpu.release.acml/Common/BestGpu.d
Common/BestGpu.cpp:14:26: fatal error: cuda_runtime.h: No such file or directory
 #include <cuda_runtime.h>
                          ^
compilation terminated.
My linux version is Ubuntu 14.04.2 LTS

gcc and g++ version is 4.9.2

and, cuda version is 7.0.27 (it was released as 7.0)

And I already compiled Makefile.gpu, so I think there is no path problem in my cuda.

I'll wait your help.

Best regards,

Donghyun
May 6, 2015 at 12:11 PM
Hi,

Is this your cuda path "-I /scratch/cuda-7.0/include" ?

I guess this is because you didn't change the default cuda path.

g++ -c Common/BestGpu.cpp -o .build/x86_64.gpu.release.acml/Common/BestGpu.o -O4 -msse3 -std=c++0x -std=c++11 -D_POSIX_SOURCE -D_XOPEN_SOURCE=600 -D__USE_XOPEN2K -DUSE_ACML -fopenmp -fpermissive -DKALDI_DOUBLEPRECISION=0 -DHAVE_POSIX_MEMALIGN -DHAVE_EXECINFO_H=1 -DHAVE_CXXABI_H -DHAVE_ATLAS -I Common/Include -I Math/Math -I MachineLearning/cn -I /scratch/cuda-7.0/include -I /home/dong/CNTK/cntk/acml/gfortran64/include -I /home/dong/Kaldi_Dong/kaldi-trunk/src -I /home/dong/Kaldi_Dong/kaldi-trunk/tools/ATLAS/include -I /home/dong/Kaldi_Dong/kaldi-trunk/tools/openfst/include -fPIC -MD -MP -MF .build/x86_64.gpu.release.acml/Common/BestGpu.d

thanks,

Yu
May 6, 2015 at 1:16 PM
Dear Yu

Hello.

I modified cuda path in Makefile_kaldi2.gpu file and I successfully compiled it.

I'm sorry, because I didn't check Makefile_kaldi2.gpu file carefully..


Ah, Are you uploading a new version of the CNTK manual book including instructions of the Kaldi Reader in CNTK?

Because I couldn't find any instructions of the Kaldi Reader in the current CNTK manual book which already was uploaded.

Best regards,

Donghyun
May 6, 2015 at 1:22 PM
Hi,

There is a short description in the README file in about the Kaldi reader. I will add a section in CNTK soon and also I will upload an example for Timit.