[PR #2172] [CLOSED] setup: install the CUDA Toolkit on Debian 12/13 too, not Ubuntu only #3900

Closed
opened 2026-11-07 15:31:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2172
Author: @gabrielpopa
Created: 10/12/2026
Status: ❌ Closed

Base: main ← Head: setup-debian-toolkit


📝 Commits (1)

  • a5a9787 setup: install the CUDA Toolkit on Debian 12/13 too, not Ubuntu only

📊 Changes

5 files changed (+104 additions, -8 deletions)

View changed files

📝 docs/AI_SETUP.md (+1 -1)
📝 docs/DETAILS.md (+1 -1)
📝 docs/INSTALL.md (+1 -1)
📝 setup.py (+16 -5)
➕ tools/test_setup_cuda_repo.py (+85 -0)

📄 Description

The CUDA apt repo keyring and cuda-toolkit-13-x packages exist for debian12/debian13 as well as ubuntu2204/ubuntu2404, so derive the repo name from /etc/os-release instead of hardcoding ubuntu. Debian 13's repo carries no cuda-toolkit-13-0, so try 13-0..13-5 in order (Ubuntu still gets 13-0 first, same as before).

Checked with tools/test_setup_cuda_repo.py (4 tests, no GPU or network needed): repo mapping for ubuntu/debian/other and the minor-version fallback.

Title

Issue: Resolves #

Summary

What changed

Extra Notes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2172 **Author:** [@gabrielpopa](https://github.com/gabrielpopa) **Created:** 10/12/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `setup-debian-toolkit` --- ### 📝 Commits (1) - [`a5a9787`](https://github.com/Niko1221/Strata/commit/a5a9787709654c2c6e74ca415bc0594ff2aa3332) setup: install the CUDA Toolkit on Debian 12/13 too, not Ubuntu only ### 📊 Changes **5 files changed** (+104 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `docs/AI_SETUP.md` (+1 -1) 📝 `docs/DETAILS.md` (+1 -1) 📝 `docs/INSTALL.md` (+1 -1) 📝 `setup.py` (+16 -5) ➕ `tools/test_setup_cuda_repo.py` (+85 -0) </details> ### 📄 Description The CUDA apt repo keyring and cuda-toolkit-13-x packages exist for debian12/debian13 as well as ubuntu2204/ubuntu2404, so derive the repo name from /etc/os-release instead of hardcoding ubuntu. Debian 13's repo carries no cuda-toolkit-13-0, so try 13-0..13-5 in order (Ubuntu still gets 13-0 first, same as before). Checked with tools/test_setup_cuda_repo.py (4 tests, no GPU or network needed): repo mapping for ubuntu/debian/other and the minor-version fallback. ## Title <!-- If Applicable, reference the GitHub issue --> Issue: Resolves # ## Summary <!-- Quick Summary of changes --> ## What changed <!-- Specifics on files changed, and what changes were made there --> ## Extra Notes <!-- Any extra notes, delete if there are none --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:32 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3900
No description provided.