Skip to content

fix(controller): parse the CUDA UMD version banner from newer drivers#185

Merged
0xSero merged 1 commit into
sybil-solutions:mainfrom
luminary19:up/cuda-umd-banner
Jul 13, 2026
Merged

fix(controller): parse the CUDA UMD version banner from newer drivers#185
0xSero merged 1 commit into
sybil-solutions:mainfrom
luminary19:up/cuda-umd-banner

Conversation

@luminary19

Copy link
Copy Markdown
Contributor

Summary

NVIDIA driver 610+ renamed the nvidia-smi banner field from CUDA Version: to CUDA UMD Version:, so CUDA detection silently returned nothing on toolkit-less machines running the new driver series (the nvcc fallback masked it elsewhere). The parser moves to a small cuda-version.ts module and accepts both spellings; unit tests cover the old banner, the new banner, and no banner. Fixes #184.

Validation

cd controller
bun run typecheck
bun run lint
bun test ./src/modules/engines/runtimes/cuda-version.test.ts   # 3 pass

Verified live on driver 610.47 (Windows 11, RTX 4070): /runtime/info reports the CUDA version again. Pre-610 banners are unaffected — the old spelling still matches.

UI changes

None.

Risks / rollout notes

None — pure parser widening; the extracted module is consumed only by runtime-info today.

@0xSero 0xSero left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified against main: the regex at runtime-info.ts:179 only matches CUDA Version:, so driver 610+ machines without nvcc silently report no CUDA — this widening fixes it while keeping the old banner. The extraction to cuda-version.ts is clean (both sync and async call sites use the import) and the three-case test suite runs under CI's bun test src.

@0xSero 0xSero merged commit 56f691f into sybil-solutions:main Jul 13, 2026
5 of 6 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.65.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] CUDA version undetected with driver 610+ unless nvcc is installed - nvidia-smi banner now prints CUDA UMD Version

2 participants