warp-ctc
warp-ctc copied to clipboard
setup.py install error
(py) root@gao-PowerEdge-T640:~/yu_ex/warp-ctc3333/pytorch_binding# python setup.py install running install running bdist_egg running egg_info creating warpctc_pytorch.egg-info writing warpctc_pytorch.egg-info/PKG-INFO writing dependency_links to warpctc_pytorch.egg-info/dependency_links.txt writing top-level names to warpctc_pytorch.egg-info/top_level.txt writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' reading manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' writing manifest file 'warpctc_pytorch.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py creating build creating build/lib.linux-x86_64-3.6 creating build/lib.linux-x86_64-3.6/warpctc_pytorch copying warpctc_pytorch/init.py -> build/lib.linux-x86_64-3.6/warpctc_pytorch running build_ext building 'warpctc_pytorch._warp_ctc' extension creating /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6 creating /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src Emitting ninja build file /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/build.ninja... Compiling objects... Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N) [1/1] c++ -MMD -MF /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src/binding.o.d -pthread -B /root/ana3/envs/py/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/yu_ex/warp-ctc3333/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/TH -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/root/ana3/envs/py/include/python3.6m -c -c /root/yu_ex/warp-ctc3333/pytorch_binding/src/binding.cpp -o /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src/binding.o -std=c++14 -fPIC -DWARPCTC_ENABLE_GPU -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0 FAILED: /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src/binding.o c++ -MMD -MF /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src/binding.o.d -pthread -B /root/ana3/envs/py/compiler_compat -Wl,--sysroot=/ -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/root/yu_ex/warp-ctc3333/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/TH -I/root/ana3/envs/py/lib/python3.6/site-packages/torch/include/THC -I:/usr/local/cuda-11.1/include -I/root/ana3/envs/py/include/python3.6m -c -c /root/yu_ex/warp-ctc3333/pytorch_binding/src/binding.cpp -o /root/yu_ex/warp-ctc3333/pytorch_binding/build/temp.linux-x86_64-3.6/src/binding.o -std=c++14 -fPIC -DWARPCTC_ENABLE_GPU -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=_warp_ctc -D_GLIBCXX_USE_CXX11_ABI=0 cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ In file included from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/ATen/Parallel.h:149:0, from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/utils.h:3, from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn/cloneable.h:5, from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/nn.h:3, from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/all.h:12, from /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/torch/extension.h:4, from /root/yu_ex/warp-ctc3333/pytorch_binding/src/binding.cpp:6: /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/ATen/ParallelOpenMP.h:84:0: warning: ignoring #pragma omp parallel [-Wunknown-pragmas] #pragma omp parallel for if ((end - begin) >= grain_size)
In file included from /root/yu_ex/warp-ctc3333/pytorch_binding/src/binding.cpp:9:0: /root/ana3/envs/py/lib/python3.6/site-packages/torch/include/ATen/cuda/CUDAContext.h:5:10: fatal error: cuda_runtime_api.h: 没有那个文件或目录 #include <cuda_runtime_api.h> ^~~~~~~~~~~~~~~~~~~~ compilation terminated. ninja: build stopped: subcommand failed. Traceback (most recent call last): File "/root/ana3/envs/py/lib/python3.6/site-packages/torch/utils/cpp_extension.py", line 1539, in _run_ninja_build env=env) File "/root/ana3/envs/py/lib/python3.6/subprocess.py", line 438, in run output=stdout, stderr=stderr) subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "setup.py", line 64, in
解决了吗?我也遇到了相同的错误。。
请问你解决没
@大佬解决了吗?我也遇到这个问题 @DaobinZhu @Luna-yu @sunsn1997
Have anyone figure it out how to solve this problem?