You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dockerfile - Add ROCm 10.1 dockerfile with MI455X (gfx1250) support - #867
Description
Adds an experimental ROCm 10.1 SuperBench image targeting MI300X (gfx942), MI355X (gfx950) and MI455X (gfx1250). The image work is ported from arsdragonfly/superbenchmark@rocm10. This PR includes only the ROCm 10 image, not the ROCm 7.0/7.2 work from #854/#855.
The image was first written for ROCm 10.0. It now uses ROCm 10.1, which avoids the ResNet and BERT crashes seen on the 10.0 base.
The prebuilt RCCL in ROCm 10.1 doesn't include gfx1250 fixes merged to rocm-systemsdevelop after therock-10.1 branched. The main one is ROCm/rocm-systems#12051: every gfx1250 GPU appears as a partition, so RCCL computed GPU→NIC paths as PHB and turned GPUDirect RDMA off. MI455X testers had to build RCCL from that PR to run all-reduce, so this image builds RCCL and RCCL-tests from source at that merge commit.
Per review, the benchmark code changes are in a separate PR (#868), and SKU configs are kept in the internal repo.
Major Revision
Add dockerfile/rocm10.1.x.dockerfile. It is based on the digest-pinned rocm/pytorch:rocm10.1.0_ubuntu26.04_py3.14_pytorch_release_2.13.0 and includes:
the rocm[devel,libraries,device-all]==10.1.0 wheel SDK, with pip constraints that keep the base's PyTorch, Triton and SDK versions
DOCA 3.4.0 userspace / Open MPI 5.0.10 at /usr/local/mpi
RVS/TransferBench from AMD's signed Ubuntu 26.04 APT repos (/opt/rocm/extras-10)
prebuilt rocblas-bench/hipblaslt-bench and their kernel packs from TheRock's SHA-256-pinned test archive
local benchmark kernels built for gfx942 gfx950 gfx1250 (AMDGPU_TARGETS)
Build RCCL and RCCL-tests from ROCm/rocm-systems@2a0c58e (the merge commit of #12051) into /opt/rccl. /opt/rccl/lib goes ahead of the SDK library on LD_LIBRARY_PATH, and the build fails if all_reduce_perf doesn't resolve to it. --build-arg RCCL_SOURCE_COMMIT= keeps AMD's prebuilt SDK RCCL and builds only RCCL-tests from the therock-10.1 revision.
Build TransformerEngine (v2.15_rocm), AITER and Megatron-LM (Core v0.19.2) inside the Dockerfile:
Sources are pinned with TE_COMMIT/AITER_COMMIT/MEGATRON_COMMIT and built without build isolation or dependency resolution.
The build first checks that the base's torch/triton/SDK versions match the tested ones, and afterwards that pip changed none of the protected packages.
Build-only settings run in their own layer, so they don't reach /etc/environment.
Minor Revision
The 10.1 base runs the system /usr/bin/python3 (the 10.0 base used /opt/venv). The image adds python3-venv and liblzma-dev, which TE's AOTriton build needs, and checks both at build time.
The pinned TE revision still includes the legacy ROCm SMI header, which the SDK no longer ships. rocm-smi-lib is built from the therock-10.1rocm-systems revision into /usr/local as a compatibility library, separate from the SDK's AMD SMI.
third_party/Makefile: build rocm_perftest against $(ROCM_PATH) instead of the hard-coded /opt/rocm; other images keep /opt/rocm as the default.
Add third_party/Megatron/megatron_core_0.19.2_rocm10.patch, which fixes Megatron-LM argument parsing under the base image's Python 3.14 (% in help strings, type=bool with BooleanOptionalAction).
Docs: add ROCm 10 build notes and migration considerations to installation.mdx, and add disabling NUMA auto-balancing (kernel.numa_balancing=0) to the AMD host prerequisites. As on MI200/MI300, MI455X runs hang or behave unexpectedly with it enabled, and the container can't change this host setting.
Tests: add tests/test_rocm10_dockerfile.py. It covers architecture routing, SDK environment generation, RCCL override ordering, AMD SMI registration, framework source pins, the base-version check, and the system-Python/ROCm SMI prerequisites, all without Docker or a GPU.
Validation
python3 -m unittest tests.test_rocm10_dockerfile: 23 tests passed on Linux.
An earlier ROCm 10.0 build using the prebuilt SDK RCCL was checked on an 8-GPU MI300X node. It built, passed pip check, GEMM and flash-SDPA correctness, the GPU-copy wrapper with data checking, and 8-rank RCCL all-reduce with data checking.
Not yet done: runs on MI455X.
The image is not yet in the build-image.yml matrix.
Record TheRock packaging, RVS/TransferBench coverage, and the public MI455X gfx1250 mapping without enabling unqualified targets.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Build TransformerEngine, AITER and Megatron-LM directly in
rocm10.0.x.dockerfile (pinned ARGs) and remove
dockerfile/etc/install-rocm10-frameworks.sh. Build-only settings run in
their own layer so they do not reach /etc/environment.
- Move the TransferBench mem-bw backend and model benchmark changes, with
their tests, to a separate PR.
- Remove superbench/config/amd_mi455x.yaml; configs are kept internally.
- Docs: qualify the packaged-RCCL validation, drop the moved TransferBench
and MI455X config sections.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Derive NVTE_ROCM_ARCH from AMDGPU_TARGETS, normalized like RCCL.
- Docs: ROCM_PATH is the wheel SDK root (no /opt/rocm alias); native
amdrocm-* packages are RVS dependencies only; AMD SMI bindings use .pth.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Document that the image uses an Open MPI 5.0.10 release candidate
docs/getting-started/installation.mdx:150
This identifies the MPI runtime as the final Open MPI 5.0.10 release, but the pinned package is 5.0.10rc2.2605121430-1.b99be7132e (line 61), i.e. a 5.0.10 release-candidate build. Please document the actual version so users do not mistake this experimental image for one qualified against the final release.
Replace rocm10.0.x.dockerfile with rocm10.1.x.dockerfile on AMD's rocm10.1.0 Ubuntu 26.04 PyTorch 2.13 base, which avoids the ResNet and BERT crashes seen on 10.0. Bump the SDK, therock-10.1 rocm-systems revision, APT dependencies and test archive checksum; keep the RCCL source override because therock-10.1 branched before ROCm/rocm-systems#12051.
The 10.1 base uses the system /usr/bin/python3 instead of /opt/venv, so install python3-venv and liblzma-dev for TE's AOTriton build. Build legacy rocm-smi-lib into /usr/local for TE's ROCm SMI header, and drop stale build output from the context before installing SuperBench. Update tests and docs.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Nguyen Vuong (normanvuong)
changed the title
Dockerfile - Add ROCm 10.0 dockerfile with MI455X (gfx1250) support
Dockerfile - Add ROCm 10.1 dockerfile with MI455X (gfx1250) support
Nov 2, 2026
As on MI200/MI300 hosts, MI455X runs with the ROCm 10 image hang or behave unexpectedly unless kernel.numa_balancing is 0. Document the host setting, how to check it and how to disable it persistently, since the container cannot change it.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed because critical RCCL selection issues span build-time linking and Python preloading, alongside a gfx1250-only framework build failure.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
Human assessment is needed to evaluate the benchmark impact of discarded caller library paths and test failures in the Python 3.7 CI job.
No open issues 🎉
Review effort: Balanced
This branch has not been deployed
No deployments
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
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.
Description
Adds an experimental ROCm 10.1 SuperBench image targeting MI300X (gfx942), MI355X (gfx950) and MI455X (gfx1250). The image work is ported from arsdragonfly/superbenchmark@rocm10. This PR includes only the ROCm 10 image, not the ROCm 7.0/7.2 work from #854/#855.
The image was first written for ROCm 10.0. It now uses ROCm 10.1, which avoids the ResNet and BERT crashes seen on the 10.0 base.
The prebuilt RCCL in ROCm 10.1 doesn't include gfx1250 fixes merged to
rocm-systemsdevelopaftertherock-10.1branched. The main one is ROCm/rocm-systems#12051: every gfx1250 GPU appears as a partition, so RCCL computed GPU→NIC paths as PHB and turned GPUDirect RDMA off. MI455X testers had to build RCCL from that PR to run all-reduce, so this image builds RCCL and RCCL-tests from source at that merge commit.Per review, the benchmark code changes are in a separate PR (#868), and SKU configs are kept in the internal repo.
Major Revision
dockerfile/rocm10.1.x.dockerfile. It is based on the digest-pinnedrocm/pytorch:rocm10.1.0_ubuntu26.04_py3.14_pytorch_release_2.13.0and includes:rocm[devel,libraries,device-all]==10.1.0wheel SDK, with pip constraints that keep the base's PyTorch, Triton and SDK versions/usr/local/mpi/opt/rocm/extras-10)rocblas-bench/hipblaslt-benchand their kernel packs from TheRock's SHA-256-pinned test archivegfx942 gfx950 gfx1250(AMDGPU_TARGETS)ROCm/rocm-systems@2a0c58e(the merge commit of #12051) into/opt/rccl./opt/rccl/libgoes ahead of the SDK library onLD_LIBRARY_PATH, and the build fails ifall_reduce_perfdoesn't resolve to it.--build-arg RCCL_SOURCE_COMMIT=keeps AMD's prebuilt SDK RCCL and builds only RCCL-tests from thetherock-10.1revision.TE_COMMIT/AITER_COMMIT/MEGATRON_COMMITand built without build isolation or dependency resolution./etc/environment.Minor Revision
/usr/bin/python3(the 10.0 base used/opt/venv). The image addspython3-venvandliblzma-dev, which TE's AOTriton build needs, and checks both at build time.rocm-smi-libis built from thetherock-10.1rocm-systemsrevision into/usr/localas a compatibility library, separate from the SDK's AMD SMI.third_party/Makefile: buildrocm_perftestagainst$(ROCM_PATH)instead of the hard-coded/opt/rocm; other images keep/opt/rocmas the default.third_party/Megatron/megatron_core_0.19.2_rocm10.patch, which fixes Megatron-LM argument parsing under the base image's Python 3.14 (%in help strings,type=boolwithBooleanOptionalAction)..pthentry) until python packages: No amdsmi package available ROCm/TheRock#3054 is fixed, soimport amdsmifinds the bundled module.SB_ROCM_MEM_BW_BACKEND=transferbenchandSB_MEGATRON_PATH. Both do nothing until Benchmarks - Add ROCm TransferBench mem-bw backend and fix PyTorch DDP store init #868 merges, so neither PR depends on the other.mem-bwcan't run in this image until then. PyTorch DDP model benchmarks (ResNet, BERT, ...) also need Benchmarks - Add ROCm TransferBench mem-bw backend and fix PyTorch DDP store init #868's TCPStore fix to run reliably.installation.mdx, and add disabling NUMA auto-balancing (kernel.numa_balancing=0) to the AMD host prerequisites. As on MI200/MI300, MI455X runs hang or behave unexpectedly with it enabled, and the container can't change this host setting.tests/test_rocm10_dockerfile.py. It covers architecture routing, SDK environment generation, RCCL override ordering, AMD SMI registration, framework source pins, the base-version check, and the system-Python/ROCm SMI prerequisites, all without Docker or a GPU.Validation
python3 -m unittest tests.test_rocm10_dockerfile: 23 tests passed on Linux.kernel.numa_balancing=0.pip check, GEMM and flash-SDPA correctness, the GPU-copy wrapper with data checking, and 8-rank RCCL all-reduce with data checking.build-image.ymlmatrix.