mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3520
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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)
5d5b214update: rebuild a local engine for a card it serves, not the most-VRAM one (#1485)024b929Merge 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()tookgpu_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_enginethen forces"toolkit": 13, the CUDA 12 guard is bypassed, andnvccdies oncompute_70.BUILD.json'sarchs. The fallback (no installed card matches, e.g. the install moved PCs) keeps the old union so the present card still gets code.toolkit=13is 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, assertsarchs == [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 archtools/test_setup_*suite: 414 tests, only 3 pre-existing failures on cleanmain(network-dependent, GitHub releases 404) — unrelated./update.shrebuilds forsm_89only🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.