Skip to content
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

Install Failed #18

Open
Gle2xn opened this issue Dec 6, 2023 · 6 comments
Open

Install Failed #18

Gle2xn opened this issue Dec 6, 2023 · 6 comments

Comments

@Gle2xn
Copy link

Gle2xn commented Dec 6, 2023

Installing causal-conv1d and mamba-ssm failed.
屏幕截图 2023-12-06 163001

@albertfgu
Copy link
Contributor

I don't have enough information. What OS are you using?

@getorca
Copy link

getorca commented Dec 6, 2023

post the full stack trace. But kinda looks like you're missing nvcc

@alexanderwerning
Copy link

I had the same issue, bare_metal_version is only defined in the setup.py if the CUDA_HOME environment variable is set, but the 11.8 version check is outside of that if block:

mamba/setup.py

Lines 100 to 113 in 009bec5

if CUDA_HOME is not None:
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
if bare_metal_version < Version("11.6"):
raise RuntimeError(
f"{PACKAGE_NAME} is only supported on CUDA 11.6 and above. "
"Note: make sure nvcc has a supported version by running nvcc -V."
)
cc_flag.append("-gencode")
cc_flag.append("arch=compute_70,code=sm_70")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_80,code=sm_80")
if bare_metal_version >= Version("11.8"):
cc_flag.append("-gencode")

CUDA 11.8 was installed on my machine, so once I set the CUDA_HOME variable I could install the package.
Maybe an error message about CUDA_HOME would be helpful?

@Rhys-McAlister
Copy link

I had the same issue, bare_metal_version is only defined in the setup.py if the CUDA_HOME environment variable is set, but the 11.8 version check is outside of that if block:

mamba/setup.py

Lines 100 to 113 in 009bec5

if CUDA_HOME is not None:
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)
if bare_metal_version < Version("11.6"):
raise RuntimeError(
f"{PACKAGE_NAME} is only supported on CUDA 11.6 and above. "
"Note: make sure nvcc has a supported version by running nvcc -V."
)
cc_flag.append("-gencode")
cc_flag.append("arch=compute_70,code=sm_70")
cc_flag.append("-gencode")
cc_flag.append("arch=compute_80,code=sm_80")
if bare_metal_version >= Version("11.8"):
cc_flag.append("-gencode")

CUDA 11.8 was installed on my machine, so once I set the CUDA_HOME variable I could install the package. Maybe an error message about CUDA_HOME would be helpful?

how do you set the home variable? I'm having this same issue. Thanks in advance

@alexanderwerning
Copy link

It depends on the location and version of your cuda installation, for me it was this:
export CUDA_HOME=/usr/local/cuda-11.8

@lxaw
Copy link

lxaw commented Apr 24, 2024

Has this been solved? Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants