[PR #1541] [CLOSED] update: rebuild a local engine for a card it serves, not the most-VRAM one (#1485) #3520

Closed
opened 2026-11-07 14:42:04 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1541
Author: @nekomario28
Created: 10/8/2026
Status: ❌ Closed

Base: main ← Head: fix-1485-update-wrong-gpu-arch


📝 Commits (2)

  • 5d5b214 update: rebuild a local engine for a card it serves, not the most-VRAM one (#1485)
  • 024b929 Merge Strata v0.1.43 into port of upstream PR #1541

📊 Changes

2 files changed (+47 additions, -1 deletions)

View changed files

📝 setup.py (+8 -1)
📝 tools/test_setup_update.py (+39 -0)

📄 Description

Summary

  • update_installed_engine() took gpu_info()'s most-VRAM pick unconditionally, so a card the model does not run on — the reporter's V100 (sm_70, 32 GB) beside two RTX 4090s — put its arch into the local rebuild's arch list. build_engine then forces "toolkit": 13, the CUDA 12 guard is bypassed, and nvcc dies on compute_70.
  • Like the HIP branch right above it, prefer an installed card whose arch is in BUILD.json's archs. The fallback (no installed card matches, e.g. the install moved PCs) keeps the old union so the present card still gets code.
  • Implements the reporter's first suggested fix; the hardcoded toolkit=13 is untouched — with the right arch list, install_build_tools' CUDA 12 decision is correct.

Fixes #1485.

Test plan

  • python -m unittest tools.test_setup_update — 10 tests pass, including two new ones:
    • test_a_local_rebuild_uses_a_card_the_engine_serves — V100 + 2x4090 fixture, asserts archs == [89] (fails on main with [70, 89], the reported bug)
    • test_a_local_rebuild_without_a_served_card_keeps_the_union — moved-install fallback still unions the present card's arch
  • Full tools/test_setup_* suite: 414 tests, only 3 pre-existing failures on clean main (network-dependent, GitHub releases 404) — unrelated
  • Real-machine verification on the reporter's 3-GPU box: ./update.sh rebuilds for sm_89 only

🔄 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/1541 **Author:** [@nekomario28](https://github.com/nekomario28) **Created:** 10/8/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix-1485-update-wrong-gpu-arch` --- ### 📝 Commits (2) - [`5d5b214`](https://github.com/Niko1221/Strata/commit/5d5b214911818ae5a037120c85fc3b59ac1012f6) update: rebuild a local engine for a card it serves, not the most-VRAM one (#1485) - [`024b929`](https://github.com/Niko1221/Strata/commit/024b929624ea8a8ee5dd7aedc5ef5544f3d29984) Merge Strata v0.1.43 into port of upstream PR #1541 ### 📊 Changes **2 files changed** (+47 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `setup.py` (+8 -1) 📝 `tools/test_setup_update.py` (+39 -0) </details> ### 📄 Description ## Summary - `update_installed_engine()` took `gpu_info()`'s most-VRAM pick unconditionally, so a card the model does not run on — the reporter's V100 (sm_70, 32 GB) beside two RTX 4090s — put its arch into the local rebuild's arch list. `build_engine` then forces `"toolkit": 13`, the CUDA 12 guard is bypassed, and `nvcc` dies on `compute_70`. - Like the HIP branch right above it, prefer an installed card whose arch is in `BUILD.json`'s `archs`. The fallback (no installed card matches, e.g. the install moved PCs) keeps the old union so the present card still gets code. - Implements the reporter's first suggested fix; the hardcoded `toolkit=13` is untouched — with the right arch list, `install_build_tools`' CUDA 12 decision is correct. Fixes #1485. ## Test plan - [x] `python -m unittest tools.test_setup_update` — 10 tests pass, including two new ones: - `test_a_local_rebuild_uses_a_card_the_engine_serves` — V100 + 2x4090 fixture, asserts `archs == [89]` (fails on main with `[70, 89]`, the reported bug) - `test_a_local_rebuild_without_a_served_card_keeps_the_union` — moved-install fallback still unions the present card's arch - [x] Full `tools/test_setup_*` suite: 414 tests, only 3 pre-existing failures on clean `main` (network-dependent, GitHub releases 404) — unrelated - [ ] Real-machine verification on the reporter's 3-GPU box: `./update.sh` rebuilds for `sm_89` only --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:42:04 +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#3520
No description provided.