Repository navigation
fix: inference: parse the rocm-smi probe the probe already ran - #2047
Merged
Merged
Conversation
probe_command has asked every machine with rocm-smi for its cards — product names and VRAM, JSON, every probe — and parse_probe had no "rocm" arm, so the line was dropped on the floor: a real command's cost on each probe, and nothing to show for it. An iGPU or a container whose sysfs carries no mem_info_vram_total is exactly where rocm-smi is the only source: the DRM probe saw the card as vendor 0x1002 with a zero read, and said "AMD GPU" with no memory. The answer is read now: each card's gpu_type/market_name and its VRAM unit-converted to MiB, replacing the DRM probe's blind slot (a card with no figure) rather than sitting beside it, and appended as-is when there were more cards than blind slots. Where sysfs already answered with a real figure, rocm-smi's output is left unread — the two would have listed the same card twice.
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
Contributor
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
Owner
|
Two issues against real
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
probe_commandasks every machine withrocm-smifor its cards — product names and VRAM, JSON, on every probe — andparse_probehad no"rocm"arm, so the line was dropped on the floor. A real command's cost on each probe, and nothing to show for it.The machine this matters on is exactly where rocm-smi is the only source: an iGPU or a container whose sysfs carries no
mem_info_vram_total— the DRM probe there saw the card as vendor0x1002with a zero read, and reported an unnamed "AMD GPU" carrying no memory.The answer is read now:
gpu_type/market_nameand itsvram.totalunit-converted to MiB (MB/GB/KB/B).How it was tested
Two new tests in
inference.rs: one where the DRM probe read zero and rocm-smi's two cards replace the blind slot and extend the list (MB and GB units both exercised), one where sysfs already answered and rocm-smi's copy is skipped.cargo test -p sbm_parser --lib— 315 passed; the 2monitor_agentshell-validation failures fail identically on unmodified main on this Windows machine (environment, not this change — noted in #2011 where the maintainer merged it as-is).cargo clippy -p sbm_parserclean.No Dart, no ARB, no
monitor/change.