1ytic / warp-rnnt

CUDA-Warp RNN-Transducer
MIT License
211 stars 41 forks source link

Problem installation #5

Closed roholazandie closed 3 years ago

roholazandie commented 3 years ago

I tried to install warp-rnnt with torch==1.0.1 python3.7.5 cuda9.0 but get the following error

Failed to build warp-rnnt
Installing collected packages: pybind11, warp-rnnt
    Running setup.py install for warp-rnnt ... error
    ERROR: Command errored out with exit status 1:
     command: /home/rohola/codes/sample/env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-abwlipt5/warp-rnnt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-abwlipt5/warp-rnnt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6i_1sjce/install-record.txt --single-version-externally-managed --compile --install-headers /home/rohola/codes/sample/env/include/site/python3.7/warp-rnnt
         cwd: /tmp/pip-install-abwlipt5/warp-rnnt/
    Complete output (26 lines):
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/warp_rnnt
    copying warp_rnnt/__init__.py -> build/lib.linux-x86_64-3.7/warp_rnnt
    copying warp_rnnt/test.py -> build/lib.linux-x86_64-3.7/warp_rnnt
    running build_ext
    building 'warp_rnnt._C' extension
    creating build/temp.linux-x86_64-3.7
    /usr/bin/nvcc -I/home/rohola/codes/sample/env/lib/python3.7/site-packages/torch/include -I/home/rohola/codes/sample/env/lib/python3.7/site-packages/torch/include/torch/csrc/api/include -I/home/rohola/codes/sample/env/lib/python3.7/site-packages/torch/include/TH -I/home/rohola/codes/sample/env/lib/python3.7/site-packages/torch/include/THC -I/usr/include/python3.7m -I/home/rohola/codes/sample/env/include/python3.7m -c core.cu -o build/temp.linux-x86_64-3.7/core.o -D__CUDA_NO_HALF_OPERATORS__ -D__CUDA_NO_HALF_CONVERSIONS__ -D__CUDA_NO_HALF2_OPERATORS__ --compiler-options '-fPIC' -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++11
    /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

    core.cu(101): error: identifier "__shfl_up_sync" is undefined

    core.cu(126): error: identifier "__shfl_up_sync" is undefined

    core.cu(206): error: identifier "__shfl_up_sync" is undefined

    core.cu(231): error: identifier "__shfl_up_sync" is undefined

    6 errors detected in the compilation of "/tmp/tmpxft_00003738_00000000-7_core.cpp1.ii".
    error: command '/usr/bin/nvcc' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: /home/rohola/codes/sample/env/bin/python3.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-abwlipt5/warp-rnnt/setup.py'"'"'; __file__='"'"'/tmp/pip-install-abwlipt5/warp-rnnt/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-6i_1sjce/install-record.txt --single-version-externally-managed --compile --install-headers /home/rohola/codes/sample/env/include/site/python3.7/warp-rnnt Check the logs for full command output.
roholazandie commented 3 years ago

I tried this with cuda 10 and also gcc4.9 and gcc 5.4. It just doesn't work. can you please specify what version we should use?

1ytic commented 3 years ago

@roholazandie sorry, it should work with cuda 10. Please be sure to include the correct library path.

1ytic commented 3 years ago

Probably this relates to mismatched between CUDA in /usr/local/cuda with python cudatoolkit. Have a look at #7