Skip to content

Report ROCm memory type and runtime version - #1123

Merged
anandhu-eng merged 1 commit into
mainfrom
rocm-memory-type-version
Oct 8, 2026
Merged

anandhu-eng merged 1 commit into
mainfrom
rocm-memory-type-version

Conversation

@anandhu-eng

Copy link
Copy Markdown
Contributor

Brings the AMD ROCm changes from #1112 to main. #1112 targets feat/tpu-devices.

Changes

  • get-rocm-devices/detect.py: exports Memory Type using the VRAM type that amd-smi static reports, e.g. HBM3 or GDDR6. N/A is mapped to "".
  • get-mlperf-single-node-system-info/parse.py:
    • accelerator_memory_type now includes MLC_ROCM_DEVICE_PROP_MEMORY_TYPE as a candidate.
    • accelerator_memory_configuration now falls back to the ROCm capacity (MLC_ROCM_DEVICE_PROP_GLOBAL_MEMORY_IN_GIB) and memory type.
    • inference_backend falls back to MLC_ROCM_DEVICE_PROP_ROCM_RUNTIME_VERSION, which is the key get-rocm-devices actually exports. HIP's major*10000000 + minor*100000 + build encoding is decoded to major.minor. Before this change, ROCm systems reported "runtime not found".

Differences from #1112

#1112 edits the _ACCELERATOR_MEMORY_KEYS table, but that refactor only exists on feat/tpu-devices. Here the ROCm keys go into the CUDA → ROCm → TPU fallback chain that main already uses. The other hunks match #1112 exactly.

Testing

parse.py smoke test with MLC_ROCM_DEVICE_PROP_GLOBAL_MEMORY_IN_GIB=191.98, MLC_ROCM_DEVICE_PROP_MEMORY_TYPE=HBM3 and MLC_ROCM_DEVICE_PROP_ROCM_RUNTIME_VERSION=70226015:

  • accelerator_memory_configuration → 192 GiB HBM3
  • accelerator_memory_type → HBM3
  • inference_backend → ROCm 7.2

This hasn't been run on AMD hardware here.

🤖 Generated with Claude Code

get-rocm-devices now exports the VRAM type amd-smi reports (e.g. GDDR6),
so accelerator_memory_type and accelerator_memory_configuration are no
longer N/A on AMD GPUs.

inference_backend looked for MLC_ROCM_VERSION and
MLC_ROCM_DEVICE_PROP_ROCM_VERSION, but get-rocm-devices exports
MLC_ROCM_DEVICE_PROP_ROCM_RUNTIME_VERSION, so ROCm systems reported
"runtime not found". Keep the existing keys first and fall back to the
runtime version, decoding HIP's major*10000000 + minor*100000 + build
encoding to major.minor.

Cherry-picked from #1112 (f963914) onto main. main does not have the
_ACCELERATOR_MEMORY_KEYS refactor, so the ROCm capacity and memory type
keys were added to the existing accelerator_memory_configuration fallback
chain instead.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@anandhu-eng
anandhu-eng requested a review from a team as a code owner October 8, 2026 13:38
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@anandhu-eng
anandhu-eng merged commit 5a6273b into main Oct 8, 2026
13 checks passed
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.

2 participants