Repository navigation
Detect AMD GPUs whose amd-smi board product name is N/A - #114
Merged
Merged
Conversation
On some boards, such as a Strix Halo (gfx1151) in a Framework Desktop, amd-smi reports every board field as N/A, so no gpu_mapping key matches. Fall back to the ASIC's market name and then its gfx target, name all three in the error when none match, and look for amd-smi and rocm-smi in /opt/rocm/bin when they aren't on the repository rule's PATH.
KenJones-Modular
marked this pull request as ready for review
November 14, 2026 01:44
patrickdoc
approved these changes
Nov 14, 2026
Ahajha
approved these changes
Nov 16, 2026
Ahajha
left a comment
Member
There was a problem hiding this comment.
LGTM, for future reference it might be good to have the exact amd-smi output for this case.
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.
On some boards, such as a Strix Halo (gfx1151) in a Framework Desktop,
amd-smi static --jsonreports everyboardfield asN/A, somojo_host_platformfinds no match ingpu_mappingand fails, or builds CPU-only when unknown GPUs are ignored.This change falls back to
asic.market_nameand thenasic.target_graphics_version, lists all three names in the error when none match, and also looks foramd-smiandrocm-smiin/opt/rocm/binwhen they aren't on the repository rule's PATH.Testing
Tested on a Strix Halo with ROCm 7.2.4. The host platform gets the
amd_gpuandhas_gpuconstraints, plus the GPU-specific constraint from the caller's mapping (strixhalo_gpuwith"gfx1151": "strixhalo"). The new matching logic, run against sampleamd-smidata, still matches an MI355 by its product name first. This repo's CI has no GPU runners, so it doesn't exercise this path.Assisted-by: AI