-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
selective scan install failed #64
Comments
torch.version = 2.0.0+cu118 |
建议在安装pytorch的时候采用conda install,这样会带着下载cudatoolkit,且该cudatoolkit与你安装的torch的cuda版本一致,如果使用pip install安装pytorch的话,请手动将cudatoolkit调整为与torch相对应的版本,否则就会报错。 |
感谢你的回答 In [2]: torch.version nvcc: NVIDIA (R) Cuda compiler driver nvcc 和 torch 的cuda 版本是一致的 |
use docker and pip are not ok for me, so I change a new machine ,it ok |
你好,我是使用conda install 下载的pytorch和cudatoolkit torch.cuda.is_available()返回的结果是true,但是nvcc -V找不到命令。另外在运行pip install .时,会有没有设置CUDA_HOME的错误,但是我找了所有cuda对应的文件夹下面,没有找到bin文件(或许是说我不知道如何找到cuda并将它添加到环境变量中去),您可以帮帮我吗 |
Error1 :
subprocess.CalledProcessError: Command '['ninja', '-v']' returned non-zero exit status 1.
Solution1:
modify def _run_ninja_build(build_directory: str, verbose: bool, error_prefix: str) -> None: command = ['ninja', '-v']
todef _run_ninja_build(build_directory: str, verbose: bool, error_prefix: str) -> None: command = ['ninja', '--version']
ninja -v not supported.
Error2: ` g++ -pthread -B /root/miniconda3/envs/mamba/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/root/miniconda3/envs/mamba/lib -Wl,-rpath-link,/root/miniconda3/envs/mamba/lib -L/root/miniconda3/envs/mamba/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/root/miniconda3/envs/mamba/lib -Wl,-rpath-link,/root/miniconda3/envs/mamba/lib -L/root/miniconda3/envs/mamba/lib /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan.o /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan_core_bwd.o /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan_core_fwd.o -L/root/miniconda3/envs/mamba/lib/python3.8/site-packages/torch/lib -L/usr/local/cuda/lib64 -lc10 -ltorch -ltorch_cpu -ltorch_python -lcudart -lc10_cuda -ltorch_cuda -o build/lib.linux-x86_64-3.8/selective_scan_cuda_core.cpython-38-x86_64-linux-gnu.so
g++: error: /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan.o: No such file or directory
g++: error: /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan_core_bwd.o: No such file or directory
g++: error: /root/workspace/code/mamba_all/VMamba/kernels/selective_scan/build/temp.linux-x86_64-3.8/csrc/selective_scan/cus/selective_scan_core_fwd.o: No such file or directory
error: command '/usr/bin/g++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for selective-scan
Running setup.py clean for selective-scan
Failed to build selective-scan
ERROR: Could not build wheels for selective-scan, which is required to install pyproject.toml-based projects`
Solution: ????
may anyone help?
The text was updated successfully, but these errors were encountered: