Repository navigation
Report ROCm memory type and runtime version - #1123
Merged
Merged
Conversation
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>
Contributor
|
MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅ |
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.
Brings the AMD ROCm changes from #1112 to
main. #1112 targetsfeat/tpu-devices.Changes
get-rocm-devices/detect.py: exportsMemory Typeusing the VRAM type thatamd-smi staticreports, e.g.HBM3orGDDR6.N/Ais mapped to"".get-mlperf-single-node-system-info/parse.py:accelerator_memory_typenow includesMLC_ROCM_DEVICE_PROP_MEMORY_TYPEas a candidate.accelerator_memory_configurationnow falls back to the ROCm capacity (MLC_ROCM_DEVICE_PROP_GLOBAL_MEMORY_IN_GIB) and memory type.inference_backendfalls back toMLC_ROCM_DEVICE_PROP_ROCM_RUNTIME_VERSION, which is the keyget-rocm-devicesactually exports. HIP'smajor*10000000 + minor*100000 + buildencoding is decoded tomajor.minor. Before this change, ROCm systems reported "runtime not found".Differences from #1112
#1112 edits the
_ACCELERATOR_MEMORY_KEYStable, but that refactor only exists onfeat/tpu-devices. Here the ROCm keys go into the CUDA → ROCm → TPU fallback chain thatmainalready uses. The other hunks match #1112 exactly.Testing
parse.pysmoke test withMLC_ROCM_DEVICE_PROP_GLOBAL_MEMORY_IN_GIB=191.98,MLC_ROCM_DEVICE_PROP_MEMORY_TYPE=HBM3andMLC_ROCM_DEVICE_PROP_ROCM_RUNTIME_VERSION=70226015:accelerator_memory_configuration→192 GiB HBM3accelerator_memory_type→HBM3inference_backend→ROCm 7.2This hasn't been run on AMD hardware here.
🤖 Generated with Claude Code