I’m getting an error when building CTranslate. I was able to point it to my Eigen library, and I installed Boost via:
$ sudo apt-get install libboost-all-dev
But I’m getting this build error:
devinbost@DevinsNeuralNet:~/src/CTranslate/build$ cmake … -DEIGEN_ROOT=’/home/devinbost/Downloads/eigen-eigen-5a0156e40feb/’
– Build type: Release
– Boost version: 1.58.0
– Found the following Boost libraries:
– program_options
– Found Eigen3: /home/devinbost/Downloads/eigen-eigen-5a0156e40feb (Required is at least version “3.3”)
– Looking for pthread.h
– Looking for pthread.h - found
– Looking for pthread_create
– Looking for pthread_create - not found
– Looking for pthread_create in pthreads
– Looking for pthread_create in pthreads - not found
– Looking for pthread_create in pthread
– Looking for pthread_create in pthread - found
– Found Threads: TRUE
– Found CUDA: /usr/local/cuda (found suitable version “8.0”, minimum required is “6.5”)
– Boost version: 1.58.0
– Found the following Boost libraries:
– program_options
– Configuring done
– Generating done
– Build files have been written to: /home/devinbost/src/CTranslate/build
devinbost@DevinsNeuralNet:~/src/CTranslate/build$ make
Scanning dependencies of target OpenNMTTokenizer
[ 3%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/BPE.cc.o
[ 6%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/CaseModifier.cc.o
[ 9%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/ITokenizer.cc.o
[ 12%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/SpaceTokenizer.cc.o
[ 15%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/Tokenizer.cc.o
[ 18%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/unicode/Data.cc.o
[ 21%] Building CXX object lib/tokenizer/CMakeFiles/OpenNMTTokenizer.dir/src/unicode/Unicode.cc.o
[ 24%] Linking CXX shared library libOpenNMTTokenizer.so
[ 24%] Built target OpenNMTTokenizer
Scanning dependencies of target TH
[ 27%] Building C object lib/TH/CMakeFiles/TH.dir/THGeneral.c.o
[ 30%] Building C object lib/TH/CMakeFiles/TH.dir/THFile.c.o
[ 33%] Building C object lib/TH/CMakeFiles/TH.dir/THDiskFile.c.o
[ 36%] Linking C shared library libTH.so
[ 36%] Built target TH
[ 39%] Building NVCC (Device) object CMakeFiles/onmt.dir/src/cuda/onmt_generated_Kernels.cu.o
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).
/home/devinbost/src/CTranslate/src/cuda/Kernels.cu:1:33: fatal error: onmt/cuda/Kernels.cuh: No such file or directory
compilation terminated.
CMake Error at onmt_generated_Kernels.cu.o.cmake:207 (message):
Error generating
/home/devinbost/src/CTranslate/build/CMakeFiles/onmt.dir/src/cuda/./onmt_generated_Kernels.cu.o
CMakeFiles/onmt.dir/build.make:63: recipe for target ‘CMakeFiles/onmt.dir/src/cuda/onmt_generated_Kernels.cu.o’ failed
make[2]: *** [CMakeFiles/onmt.dir/src/cuda/onmt_generated_Kernels.cu.o] Error 1
CMakeFiles/Makefile2:68: recipe for target ‘CMakeFiles/onmt.dir/all’ failed
make[1]: *** [CMakeFiles/onmt.dir/all] Error 2
Makefile:127: recipe for target ‘all’ failed
make: *** [all] Error 2
Any ideas?