baidu-research / warp-ctc

Fast parallel CTC.
Apache License 2.0
4.07k stars 1.04k forks source link

Installaiton on Ubuntu 16.04 fails #38

Open sarvex opened 8 years ago

sarvex commented 8 years ago
[ 10%] Building NVCC (Device) object CMakeFiles/warpctc.dir/src/warpctc_generated_reduce.cu.o
/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(36): error: identifier "__builtin_ia32_monitorx" is undefined

/usr/lib/gcc/x86_64-linux-gnu/5/include/mwaitxintrin.h(42): error: identifier "__builtin_ia32_mwaitx" is undefined

2 errors detected in the compilation of "/tmp/tmpxft_00001829_00000000-16_reduce.compute_52.cpp1.ii".
CMake Error at warpctc_generated_reduce.cu.o.cmake:266 (message):
  Error generating file
  /home/sarvex/warp-ctc/build/CMakeFiles/warpctc.dir/src/./warpctc_generated_reduce.cu.o

CMakeFiles/warpctc.dir/build.make:70: recipe for target 'CMakeFiles/warpctc.dir/src/warpctc_generated_reduce.cu.o' failed
make[2]: *** [CMakeFiles/warpctc.dir/src/warpctc_generated_reduce.cu.o] Error 1
CMakeFiles/Makefile2:141: recipe for target 'CMakeFiles/warpctc.dir/all' failed
    make[1]: *** [CMakeFiles/warpctc.dir/all] Error 2
    Makefile:127: recipe for target 'all' failed
    make: *** [all] Error 2
Godricly commented 8 years ago

I got exactly same thing here following installation guide. Any solution for this one?

Godricly commented 8 years ago

well. I copied .cpp as .cu and it passed. Not sure if this is right approach. The icon of .cu file stands for a link? both tests are passed.

vladimir-chernykh commented 8 years ago

Got the same issue. The following solution helped me. Add these CXX compilation flags to the CMakeLists.txt: -D_MWAITXINTRIN_H_INCLUDED -D_FORCE_INLINES -D__STRICT_ANSI__

jaredcasper commented 7 years ago

gcc5 is not supported in CUDA 7.5. Will you try again with CUDA 8.0? It appears CUDA 8.0 supports Ubuntu 16.04 with gcc 5.3.1.

rockycao0 commented 5 years ago

thank you all above,you fix my error^-^