-
Notifications
You must be signed in to change notification settings - Fork 233
Open
Description
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):
build command is:
cd build/temp.linux-x86_64-cpython-312
cmake -DCMAKE_BUILD_TYPE=Release -DPYTHON_EXECUTABLE=/research/icefall/.venv/bin/python3 -DK2_ENABLE_BENCHMARK=OFF -DK2_ENABLE_TESTS=OFF -DCMAKE_INSTALL_PREFIX=/research/icefall/k2/build/lib.linux-x86_64-cpython-312/k2 -DCMAKE_CXX_STANDARD=17 /research/icefall/k2
cat k2/csrc/version.h
make -j6 install
-- CMAKE_VERSION: 3.28.3
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_policy):
The OLD behavior for policy CMP0111 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Enabled languages: CXX;CUDA
-- K2_OS: Ubuntu 24.04.2 LTS
-- C++ Standard version: 17
-- Autodetected CUDA architecture(s): 8.9 12.0
CMake Error at cmake/select_compute_arch.cmake:250 (message):
Unknown CUDA Architecture Name 12.0 in CUDA_SELECT_NVCC_ARCH_FLAGS
Call Stack (most recent call first):
CMakeLists.txt:226 (cuda_select_nvcc_arch_flags)
CMake Error at cmake/select_compute_arch.cmake:254 (message):
arch_bin wasn't set for some reason
Call Stack (most recent call first):
CMakeLists.txt:226 (cuda_select_nvcc_arch_flags)
-- K2_COMPUTE_ARCH_FLAGS: -gencode;arch=compute_89,code=sm_89
-- K2_COMPUTE_ARCH_CANDIDATES 50;60;61;70;75;80;86;90
-- Skipping arch 50
-- Skipping arch 60
-- Skipping arch 61
-- Skipping arch 70
-- Skipping arch 75
-- Skipping arch 80
-- Skipping arch 86
-- Skipping arch 90
-- K2_COMPUTE_ARCHS: 50;60;61;70;75;80;86;90
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!
Metadata
Metadata
Assignees
Labels
No labels