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

setup.py crashes if bare_metal_version is unassigned because CUDA_HOME is None #6

Open
prescod opened this issue Dec 8, 2023 · 1 comment

Comments

@prescod
Copy link

prescod commented Dec 8, 2023

if bare_metal_version >= Version("11.8"):

This line crashes if bare_metal_version is unassigned.

bare_metal_version is unassigned if CUDA_HOME is None.

causal-conv1d/setup.py

Lines 100 to 101 in acf67c4

if CUDA_HOME is not None:
_, bare_metal_version = get_cuda_bare_metal_version(CUDA_HOME)

Since this package may be a dependency of other packages (like Mamba-Chat), it might be good to give a clear error message that it is failing due to lack of CUDA availability. I didn't know when I installed Mamba-Chat that it would only work on Nvidia.

@not-lain
Copy link

not-lain commented Apr 1, 2024

same for me (i'm on windows)

[cuda_dir + "/bin/nvcc", "-V"], universal_newlines=True

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

2 participants