mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2380] [CLOSED] setup: calibrate a dual config whose gpu is the string 0,1 #4014
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#4014
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/2380
Author: @MEsfits
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:fix-calibrate-string-gpu📝 Commits (1)
01cb90dsetup: calibrate a dual config whose gpu is the string 0,1 (#2378)📊 Changes
2 files changed (+31 additions, -2 deletions)
View changed files
📝
setup.py(+20 -2)📝
tools/test_setup_amd.py(+11 -0)📄 Description
Fixes #2378.
hardware_key()passed the config's raw"gpu"value togpu_info(), which matches a single card by number — so./setup.sh --calibrateon a dual config with"gpu": "0,1"ran every measurement round, then died withthere is no GPU 0,1at the save step (and left tier-measurement flags half-written into the user's file).gpu_sel()normalizes0,[0, 2]and"0,2"(the string formservealready splits);hardware_key()uses it for the string case, keepingNoneflowing tohip_config_cardswhere it means "default card".recommend_remote_expert_opt()uses it too instead of silently skipping string-form duals with a helper cache.test_nvidia_string_dual_keys_like_the_listinCalibrationKey.Verified: string
"0,1"yields the identical key as[0, 1]; single-int, single-string, and missing-key forms unchanged; all 36test_setup_amd.pytests pass; fulltest_setup_*.py(583 tests) shows only the same 10 pre-existing environment failures as unmodified code (stash A/B).Tested live on 2x RTX 3090 (24GB): the previously crashing save path now completes.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.