When I use pip install -e causal-conv1d, the error log is as follows:
Running setup.py develop for causal-conv1d
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [114 lines of output]
torch.__version__ = 2.1.1+cu118
running develop
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
writing causal_conv1d.egg-info/PKG-INFO
writing dependency_links to causal_conv1d.egg-info/dependency_links.txt
writing requirements to causal_conv1d.egg-info/requires.txt
writing top-level names to causal_conv1d.egg-info/top_level.txt
reading manifest file 'causal_conv1d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'causal_conv1d.egg-info/SOURCES.txt'
running build_ext
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no /home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'causal_conv1d_cuda' extension
Emitting ninja build file /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] /home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zkl/.conda/envs/mamba/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -I/home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/TH -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/THC -I/home/zkl/.conda/envs/mamba/include -I/home/zkl/.conda/envs/mamba/include/python3.10 -c -c /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp -o /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=causal_conv1d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
FAILED: /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o
/home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zkl/.conda/envs/mamba/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -I/home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/TH -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/THC -I/home/zkl/.conda/envs/mamba/include -I/home/zkl/.conda/envs/mamba/include/python3.10 -c -c /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp -o /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=causal_conv1d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
In file included from /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp:5:
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:6:10: fatal error: cusparse.h: No such file or directory
6 | #include <cusparse.h>
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
subprocess.run(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/zkl/Downloads/VideoMamba/causal-conv1d/setup.py", line 227, in <module>
setup(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py", line 109, in install_for_development
self.run_command('build_ext')
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 873, in build_extensions
build_ext.build_extensions(self)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 686, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2116, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× python setup.py develop did not run successfully.
│ exit code: 1
╰─> [114 lines of output]
torch.__version__ = 2.1.1+cu118
running develop
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py:40: EasyInstallDeprecationWarning: easy_install command is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` and ``easy_install``.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://github.com/pypa/setuptools/issues/917 for details.
********************************************************************************
!!
easy_install.initialize_options(self)
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
!!
********************************************************************************
Please avoid running ``setup.py`` directly.
Instead, use pypa/build, pypa/installer or other
standards-based tools.
See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
********************************************************************************
!!
self.initialize_options()
running egg_info
writing causal_conv1d.egg-info/PKG-INFO
writing dependency_links to causal_conv1d.egg-info/dependency_links.txt
writing requirements to causal_conv1d.egg-info/requires.txt
writing top-level names to causal_conv1d.egg-info/top_level.txt
reading manifest file 'causal_conv1d.egg-info/SOURCES.txt'
adding license file 'LICENSE'
adding license file 'AUTHORS'
writing manifest file 'causal_conv1d.egg-info/SOURCES.txt'
running build_ext
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py:424: UserWarning: There are no /home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ version bounds defined for CUDA version 11.8
warnings.warn(f'There are no {compiler_name} version bounds defined for CUDA version {cuda_str_version}')
building 'causal_conv1d_cuda' extension
Emitting ninja build file /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/build.ninja...
Compiling objects...
Allowing ninja to set a default number of workers... (overridable by setting the environment variable MAX_JOBS=N)
[1/1] /home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zkl/.conda/envs/mamba/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -I/home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/TH -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/THC -I/home/zkl/.conda/envs/mamba/include -I/home/zkl/.conda/envs/mamba/include/python3.10 -c -c /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp -o /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=causal_conv1d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
FAILED: /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o
/home/zkl/.conda/envs/mamba/bin/x86_64-conda-linux-gnu-c++ -MMD -MF /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o.d -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -O2 -isystem /home/zkl/.conda/envs/mamba/include -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/zkl/.conda/envs/mamba/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/zkl/.conda/envs/mamba/include -fPIC -I/home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/torch/csrc/api/include -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/TH -I/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/THC -I/home/zkl/.conda/envs/mamba/include -I/home/zkl/.conda/envs/mamba/include/python3.10 -c -c /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp -o /home/zkl/Downloads/VideoMamba/causal-conv1d/build/temp.linux-x86_64-cpython-310/csrc/causal_conv1d.o -O3 -DTORCH_API_INCLUDE_EXTENSION_H '-DPYBIND11_COMPILER_TYPE="_gcc"' '-DPYBIND11_STDLIB="_libstdcpp"' '-DPYBIND11_BUILD_ABI="_cxxabi1011"' -DTORCH_EXTENSION_NAME=causal_conv1d_cuda -D_GLIBCXX_USE_CXX11_ABI=0 -std=c++17
In file included from /home/zkl/Downloads/VideoMamba/causal-conv1d/csrc/causal_conv1d.cpp:5:
/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/include/ATen/cuda/CUDAContext.h:6:10: fatal error: cusparse.h: No such file or directory
6 | #include <cusparse.h>
| ^~~~~~~~~~~~
compilation terminated.
ninja: build stopped: subcommand failed.
Traceback (most recent call last):
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2100, in _run_ninja_build
subprocess.run(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/subprocess.py", line 526, in run
raise CalledProcessError(retcode, process.args,
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 "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/home/zkl/Downloads/VideoMamba/causal-conv1d/setup.py", line 227, in <module>
setup(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/__init__.py", line 103, in setup
return distutils.core.setup(**attrs)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
self.run_command(cmd)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py", line 34, in run
self.install_for_development()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/develop.py", line 109, in install_for_development
self.run_command('build_ext')
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/dist.py", line 989, in run_command
super().run_command(command)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 873, in build_extensions
build_ext.build_extensions(self)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 467, in build_extensions
self._build_extensions_serial()
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 493, in _build_extensions_serial
self.build_extension(ext)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 249, in build_extension
_build_ext.build_extension(self, ext)
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 548, in build_extension
objects = self.compiler.compile(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 686, in unix_wrap_ninja_compile
_write_ninja_file_and_compile_objects(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1774, in _write_ninja_file_and_compile_objects
_run_ninja_build(
File "/home/zkl/.conda/envs/mamba/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2116, in _run_ninja_build
raise RuntimeError(message) from e
RuntimeError: Error compiling objects for extension
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
When I try some online solutions to install the packages, the error occurs:
TypeError: causal_conv1d_fwd(): incompatible function arguments. The following argument types are supported:
1. (arg0: torch.Tensor, arg1: torch.Tensor, arg2: Optional[torch.Tensor], arg3: Optional[torch.Tensor], arg4: bool) -> torch.Tensor
When I use
pip install -e causal-conv1d
, the error log is as follows:When I try some online solutions to install the packages, the error occurs: