mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3519] [CLOSED] [Benchmark] name the AMD card and its ROCm runtime in the standard report #4665
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#4665
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/3519
Author: @l33tm4st3r
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:terminal-bench-facts-rocm📝 Commits (1)
9b7147a[Benchmark] name the AMD card and its ROCm runtime in the standard report📊 Changes
3 files changed (+210 additions, -4 deletions)
View changed files
📝
docs/BENCHMARK_PROTOCOL.md(+6 -1)📝
strata_cli/bench_facts.py(+64 -3)➕
tests/terminal/test_bench_facts_amd.py(+140 -0)📄 Description
Problem and result
A standard-v1 run on a Radeon AI PRO R9700 (gfx1201) with ROCm 10.1 named the vendor instead of the card and left the
runtime unmeasured.
serve/telemetry.pyreports the GPU as the amdgpu driver'sproduct_name, which is empty ongfx1201, so the server answers
AMD Radeon;hardware()then preferred that answer over the name the local probe hadfound, the results folder came out
2026-10-20-standard-unknown-..., and the README saidruntime: not measuredbecause ROCm 7 and newer ship
amd-smiand norocm-smi.After the change, on the same machine and the same revision of everything else, the probe reports both cards
(
other_gpus()->AMD Radeon AI PRO R9700, 34208743424 bytesandAMD Radeon Graphics, 805306368 bytes), the run isfiled under
2026-10-20-standard-ai-pro-r9700-*, and the README readsruntime: rocm 10.1.0.gpu-driverstill saysit did not measure one, which is true here:
amd-smi static --driveranswersN/Abecause amdgpu is built into thekernel (CachyOS 7.3.0-rc6), and the version is not invented from the kernel string.
Related discussion
Searched issues and open pull requests: none of the 100 open PRs touches
strata_cli/bench_facts.py, and no issuecovers the bench facts naming. Community reports that hit the same hole are #3179 (RX 7900 XTX), #3468 (RX 6800 XTX)
and #3512 (AI PRO R9700), whose benchmark posts carry
not measuredfor these fields; #1735 is the same class ofproblem in the Monitor (board FRU string), not here. No scope agreement was opened for a change this size - say so if
one is wanted.
Approach
rocm-smi, read the card fromamd-smi:static --asicgives themarket name,
static --driverthe driver version, andamd-smi list --jsonthe PCI address. Memory comes from/sys/class/drm/cardN/device/mem_info_vram_totalfor the card whose realpath ends in that address, not from the cardnumber: on this box the discrete card is
card1and the iGPU iscard2, and the numbering is not the same asamd-smi'sgpuindex.N/Aor empty is not a version, sodriverstaysNoneand the report keeps its reason.AMD Radeon,NVIDIA,Intel,Advanced Micro Devices) no longer replacesthe card the local probe named. A card only the server can see still wins, which is the old behavior and is what a
second vendor or a different numbering needs.
rocm_version()reads<ROCM_PATH or /opt/rocm>/{.info,core/.info}/versionand falls back toamd-smi -h, whichprints
ROCm version: 10.1.0; the software block gains arocmruntime entry next tocudaandmetal.rocm-smi, Windows, and Apple silicon take the same code as before.Nothing here changes the machine or the run itself, only what the report says about it.
Validation
Passed:
PYTHONPATH=.:tests/terminal .venv/bin/python -m unittest test_bench_facts_amd-> 8 tests OK, at9de04cd4plus these three files (Python 3.14 in the project venv, CachyOS, one R9700). The cannedamd-smianswers in the test are this machine's real output trimmed to the fields read, and the fake sysfs tree repeats the
symlink shape so the PCI-address match is exercised.
... -m unittest test_download_integrity test_gfx_selection test_progress_words-> 59 tests OK (untouched upstreamtests, run to show the terminal suite still passes next to the change).
... -m unittest test_bench test_bench_standard-> 79 tests OK.bf.other_gpus()-> the two cards above,bf.rocm_version()->10.1.0.strata.py bench run --url http://127.0.0.1:8080), allStatus: complete. 21 of 21 required requests finished, 0 failed, 0 skipped,Sanity checks: 12 of 12, filed underbench/results/2026-10-20-standard-ai-pro-r9700-{383f636c,cc06a72d,93ba556c}/README.md, which now carry the cardname and
runtime: rocm 10.1.0.Failed: none observed.
Not run:
os.name == "nt".amd-smi static --driverreturns a real version. This box answersN/Afor both GPUs, so the"driver version exists" branch is unexercised on hardware; the null case is covered by the test.
rocm-smipresent (older ROCm not installed here). Those hosts keep the original probe.Limits
amd-smi27.1.0+7da43026). Whether every ROCm 7+install keeps the same
gpu_datashape and<install>/core/.info/versionis not established here.amd-smiGPU becomes one card, and the memory lookup only resolves whenamd-smi list --jsongives a BDF that matches a/sys/class/drm/cardN/device. A card without a BDF keepsmemory_bytesnull with the usual reason.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.