-
Notifications
You must be signed in to change notification settings - Fork 225
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
Installation on Blackwell GPU: Unknown CUDA Architecture Name 12.0 in CUDA_SELECT_NVCC_ARCH_FLAGS #1332
Comments
Please use or you can use our pre-built k2 wheels for cuda 12.8 + nightly torch ![]() |
Thanks for such a quick reply! Using the PR branch, I still get:
on compile. Looks like an issue with the compute capability being I tried changing it to match
I'm going to try the pre-built wheels now (thank you!), but I think there might still be an issue here with building on compute capability 12.0 |
please see k2/scripts/github_actions/build-ubuntu-cuda.sh Lines 26 to 27 in 0a09f67
|
I was able to get it working with the pre-built nightly binaries, both on Blackwell and Ada, thank you! Tested For anyone else, the full set of commands I used from a fresh venv (using # Torchaudio has to be installed first, it'll install an incorrect version of torch which then gets overwritten in the next command
# There are no matching pairs of packages according to the uv resolver so we need this hack
uv pip install torchaudio --index-url https://download.pytorch.org/whl/nightly/cu128
uv pip install torch=='2.7.0.dev20250303+cu128' --index-url https://download.pytorch.org/whl/nightly/cu128
uv pip install https://huggingface.co/csukuangfj/k2/resolve/main/ubuntu-cuda/k2-1.24.4.dev20250304+cuda12.8.torch2.7.0.dev20250303-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
pip install git+https://github.com/lhotse-speech/lhotse
git clone https://github.com/k2-fsa/icefall
cd icefall
uv pip install -e . If I need to do any source changes, i'll investigate compiling on Blackwell further! |
We're trying to compile k2 from source on a machine with a 5090 and 4090 in it (using CUDA 12.8 / nightly pytorch), but we get within the build output (when doing
setup.py install
):Looks like
select_compute_arch.cmake
doesn't support CUDA architecture 12.0 which the blackwell cards use. Is there an obvious way to get this working on Blackwell GPUs, or is there anything we can do to help get this support working?Thanks!
The text was updated successfully, but these errors were encountered: