Skip to content

fix(utils_lib): detect MI350 by device ID when rocm-smi omits the model name - #316

Open
speriaswamy-amd wants to merge 3 commits into
speriaswamy/xdit-02-test-and-log-fixesfrom
speriaswamy/xdit-03-mi350-detection
Open

fix(utils_lib): detect MI350 by device ID when rocm-smi omits the model name#316
speriaswamy-amd wants to merge 3 commits into
speriaswamy/xdit-02-test-and-log-fixesfrom
speriaswamy/xdit-03-mi350-detection

Conversation

@speriaswamy-amd

Copy link
Copy Markdown
Contributor

Part 3 of 12 in a stack that replaces #184. Base: #315.

Why

On some driver / rocm-smi versions an MI350 node reports no marketing-name string anywhere in rocm-smi -a — only Device ID: 0x75a0 and GFX Version: gfx950. get_model_from_rocm_smi_output then fell through to its conservative 'mi300x' default, so MI350 nodes silently picked the MI300X entry in expected_results and were graded against the wrong performance threshold.

What changed

  • cvs/lib/utils_lib.py — added a Device ID: 0x75a0 fallback after the existing marketing-name checks, so the name-based path is unchanged whenever a name is present.
  • cvs/lib/unittests/test_utils_lib.py — tests for all four marketing names, the device-ID fallback, and the unrecognized-input default.

…el name

On some driver / rocm-smi versions an MI350 node reports no marketing-name
string anywhere in `rocm-smi -a` — only "Device ID: 0x75a0" and
"GFX Version: gfx950". get_model_from_rocm_smi_output then fell through to its
conservative 'mi300x' default, so MI350 nodes silently picked the MI300X entry
in expected_results and were graded against the wrong performance threshold.

Adds a Device ID fallback after the existing marketing-name checks, so the
name-based path is unchanged when a name is present.

Adds unit tests covering all four marketing names, the device-ID fallback, and
the unrecognized-input default.

Co-Authored-By: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant