Skip to content

Auto-detect legacy CUDA 12.6 install for old drivers - #1572

Merged
dxqb merged 4 commits into
Nerogar:mergefrom
dxqb:cuda13-legacy-autodetect
Jul 4, 2026
Merged

Auto-detect legacy CUDA 12.6 install for old drivers#1572
dxqb merged 4 commits into
Nerogar:mergefrom
dxqb:cuda13-legacy-autodetect

Conversation

@dxqb

@dxqb dxqb commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Install the cu126 build of PyTorch instead of cu130 when the NVIDIA driver is too old for CUDA 13, or when any installed GPU is pre-Turing (compute capability < 7.5), which CUDA 13 dropped support for.

Unchecked prototype for discussion

Test plan

  • pre-commit run --all-files passes
  • Launched the affected UI or script and exercised the change
  • Tested with at least one real preset / config when relevant (note which: Krea)

AI assistance

AI-assisted — I have read every line in this diff and can defend each change

dxqb and others added 2 commits July 2, 2026 20:18
Install the cu126 build of PyTorch instead of cu130 when the NVIDIA
driver is too old for CUDA 13, or when any installed GPU is pre-Turing
(compute capability < 7.5), which CUDA 13 dropped support for.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
…ersion

Simplifies the legacy CUDA 12.6 fallback to a single driver-version check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dxqb dxqb changed the title Auto-detect legacy CUDA 12.6 install for old drivers/GPUs Auto-detect legacy CUDA 12.6 install for old drivers Jul 4, 2026
Only the major version (12 vs 13) matters, so plain bash arithmetic
on the parsed "CUDA Version" header suffices.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@dxqb
dxqb changed the base branch from master to merge July 4, 2026 04:15
@dxqb
dxqb marked this pull request as ready for review July 4, 2026 04:15
@dxqb

dxqb commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator Author

simplified and tested, merging @hameerabbasi

@dxqb
dxqb merged commit 5f05ea9 into Nerogar:merge Jul 4, 2026
1 check passed
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