-
Notifications
You must be signed in to change notification settings - Fork 126
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
some problem when downloading selective_scan #102
Comments
It seems like you are in windows. you can refer to #95 for help. |
no,I used linux😭 |
Then you have a really new structure with |
and I met the new issue when I built selective_scan × python setup.py bdist_wheel did not run successfully.
note: This error originates from a subprocess, and is likely not a problem with pip. |
I think the mismatch of cuda version is one of the reasons that leads to the problem. In the first comment, we can see that the conda env recognize your env ad torch2.2+cu12.1. But nvcc shows the cuda is 11.8. And this confused the ninja. Try to align the cuda outside and inside conda env, or avoid install cuda inside conda env and use the cuda located in /use/local instead. |
You could try lowering the gcc version to 10. sudo apt-get install g++-10 sudo ln -s /usr/bin/gcc-10 /usr/local/cuda/bin/gcc |
Processing /users/zhengboy/try/VMamba-main/VMamba-main/kernels/selective_scan
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [26 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/users/zhengboy/try/VMamba-main/VMamba-main/kernels/selective_scan/setup.py", line 139, in
ext_modules = get_ext()
File "/users/zhengboy/try/VMamba-main/VMamba-main/kernels/selective_scan/setup.py", line 108, in get_ext
ext_modules = [
File "/users/zhengboy/try/VMamba-main/VMamba-main/kernels/selective_scan/setup.py", line 109, in
CUDAExtension(
File "/MAHTI_TYKKY_eJlkD0x/miniconda/envs/env1/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1074, in CUDAExtension
library_dirs += library_paths(cuda=True)
File "/MAHTI_TYKKY_eJlkD0x/miniconda/envs/env1/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 1201, in library_paths
if (not os.path.exists(_join_cuda_home(lib_dir)) and
File "/MAHTI_TYKKY_eJlkD0x/miniconda/envs/env1/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 2407, in _join_cuda_home
raise OSError('CUDA_HOME environment variable is not set. '
OSError: CUDA_HOME environment variable is not set. Please set it to your CUDA install root.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[ ERROR ] Installation failed
[ ERROR ] Set CW_DEBUG_KEEP_FILES env variable to keep build files
Terminated
The text was updated successfully, but these errors were encountered: