mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #566] Proposal: extend existing calibration to Linux HIP #269
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#269
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?
Originally created by @xyzzing on GitHub (Oct 3, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/566
Would you be open to a small contribution extending the existing calibration flow to Linux HIP?
In the revision I reviewed (
db4f91a), setup excludes HIP from the calibration offer and saved-profile reuse, while the calibration hardware key uses NVIDIA-oriented GPU discovery.I propose starting with:
Correct HIP device identification and calibration profile matching.
Would you be open to a small contribution extending the existing calibration flow to Linux HIP?
In the revision I reviewed (
db4f91a), setup excludes HIP from the calibration offer and saved-profile reuse, while the calibration hardware key uses NVIDIA-oriented GPU discovery.I propose starting with:
The goal is to let AMD users tune the existing execution settings for their CPU/GPU combination. I would build on tools/calibrate.py and the current setup flow.
Broader workload tuning and RDNA3 matrix-core attention could follow as separate contributions once there is supporting evidence.
Does this scope fit your direction, and are there existing changes or interface preferences I should coordinate with before implementing it?
@Niko1221 commented on GitHub (Oct 3, 2026):
Yes, this fits, thanks for offering. Starting with HIP device identification and profile matching is the right first step (setup skips calibration on HIP today,
setup.pyaroundcal = None if hip, andhardware_keyassumes NVIDIA). Then add the existing controls one at a time as you verify each on HIP.A few preferences: small PRs (identification and matching first), the NVIDIA path's behavior and the saved settings format unchanged, tests in
tools/test_calibrate.py/tools/test_setup_amd.py, and your 7900 XTX measurements in the PR description. RDNA3 attention work is best kept separate, as you suggest.@Niko1221 commented on GitHub (Oct 4, 2026):
The first step is in 0.1.39 (there was no PR yet, so we wrote the small part ourselves):
hardware_key(the settings file's key for a saved calibration) names a HIP config's cards fromamd_gpus, in HIP's numbering, with the architecture in the name (AMD Radeon RX 7900 XTX (gfx1100)|24GB|...). Before, every AMD card was?|0GB, and on a PC with an NVIDIA card too a HIP index named that NVIDIA card../setup.sh --calibraterun by hand is kept for its card and model, and applied when setup runs again. Windows HIP keeps the defaults for now.We have no Linux AMD card here, so this is covered by unit tests (
tools/test_setup_amd.py,CalibrationKey) only. A run on your 7900 XTX (./setup.sh --calibrate, then./setup.sh --setupagain, and check that it says "the settings tuned for this PC earlier are used") would be the real check. After that, the controls (CPU workers, PCIe share, spec confidence) one at a time as you verify each on HIP, as you planned. PRs for those are welcome.@xyzzing commented on GitHub (Oct 7, 2026):
PR #1297 carries the remaining
calibrate.pyHIP surface re-based on current main:--calibrate-draft,--calibrate-prompts, the HIP PCIe-share left as configured, andload_prompts/EDIT_PROMPT. It is reconciled with main'shost_worker_extras(). It rides with the kernel-shape PR so both are testable together. Happy to split it out if one PR per concern is preferred here too.@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.