Skip to content

fix: detect CUDA 13 from the new nvidia-smi header - #1146

Open
alleyxd wants to merge 1 commit into
OpenPipe:mainfrom
alleyxd:fix/cuda-umd-version
Open

alleyxd wants to merge 1 commit into
OpenPipe:mainfrom
alleyxd:fix/cuda-umd-version

Conversation

@alleyxd

@alleyxd alleyxd commented Oct 24, 2026

Copy link
Copy Markdown

Since driver 595, nvidia-smi prints CUDA UMD Version: X.Y in its header, and from 617 the old CUDA Version: X.Y line is gone. _managed_runtime_extra() only looked for CUDA Version: 13., so on a machine with a new driver and no nvcc it picked the cuda12 vLLM runtime even when the driver supports CUDA 13.

The check now accepts both header formats. Added unit tests that fake nvidia-smi / nvcc output: old header, new header, a CUDA 12 driver, nvcc, and neither tool present. The new-header case fails without the fix.

Ran pytest tests/unit/test_vllm_runtime_cuda_profile.py and ruff check / ruff format --check on the changed files (Linux, Python 3.11).

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant