Repository navigation
feat(setup): pin ROCm + rocm-libraries in rocm-pin.json, remove rocm-libraries submodule (ALMIOPEN-3465) - #147
Merged
Conversation
tvy-amd
approved these changes
Nov 23, 2026
tvy-amd
left a comment
Collaborator
There was a problem hiding this comment.
Makes sense to me. Let's try it out.
tvy-amd
reviewed
Nov 23, 2026
tvy-amd
reviewed
Nov 23, 2026
…le for the GPU arch setup_env.py --torch-mode rocm reads the Quartz status.json of each TheRock nightly and installs the newest one of the last 14 days that qualifies for the host platform and the GPU architecture: - the ROCm and PyTorch builds of the platform are success - the TheRock target of the arch is among the built architectures - the wheels URL is set - pipelines.rocm.test and pipelines.pytorch.test of the target are success, when the entry exists A missing test entry does not reject the nightly. Setup prints the suites without a result and records them as untested. When no nightly qualifies, setup lists each nightly with every failed check, for example "linux rocm tests of gfx94X-dcgpu are failure". --rocm-version pins a build and warns when Quartz reports a failed build or test for the arch. --torch-index-url without --rocm-version installs the newest build on that index and does not read Quartz. Setup writes dnn-bench-rocm-build.json into the venv. Result files copy it to environment.rocm_build_version, rocm_build_date, therock_commit and rocm_build_untested. The image build script selects the nightly on the host and passes it as ROCM_VERSION. CI logs the selected build and takes the ROCM_VERSION repository variable. check-deserialize builds for gfx942: Quartz reports failed gfx90a ROCm tests on every nightly from 20261106 to 20261119.
…libraries submodule, add Quartz bump workflow Replace the independent rocm-libraries git submodule + rolling nightly wheel setup with a single checked-in rocm-pin.json that pins the ROCm/PyTorch wheel version, TheRock commit, and matching rocm-libraries commit together: - Add rocm-pin.json (10.3.0a20261123 / TheRock eaa2f988 / rocm-libraries 6b5f0a16) so default setup_env.py, CI, and Docker builds stay in lockstep (preventing MIOpen/miopen-provider ABI skew such as ROCm/rocm-libraries#16128) with zero runtime Quartz/TheRock network calls. - Remove the rocm-libraries git submodule (.gitmodules, gitlink, add /rocm-libraries/ to .gitignore); keep the aiter submodule. setup_env.py sparse-clones rocm-libraries on demand from https://github.com/ROCm/rocm-libraries.git. - Support --rocm-version latest for opt-in live Quartz selection, resolving the matching rocm-libraries commit from ROCm/TheRock via a tree-filtered git fetch (advisory on existing checkouts; --rocm-libraries-ref still overrides). - Add .github/workflows/bump-rocm-pin.yml to open/update bump PRs from the newest Quartz nightly passing Linux gfx942 + gfx950 tests and Windows gfx1151 builds, skipping redundant pushes when the open bump branch already has the candidate pin. Trigger check-deserialize on rocm-pin.json and setup_env.py changes. - Simplify build-dnn-benchmark-performance-image.sh and move ROCM_TORCH_INDEX_URL, ROCM_VERSION, and ROCM_LIBRARIES_REF below COPY . . in Dockerfile.dnn-benchmark-performance-linux so new pins reuse the apt layer.
… auto-merge Address review feedback on #147: - Key rocm-pin.json by architecture under archs (gfx90a, gfx942, gfx950, gfx1151) with a default fallback (gfx950), so each arch tracks its own last-known-good ROCm nightly + matched rocm-libraries commit (gfx90a pinned at 10.3.0a20261120 / bd4da658; gfx942, gfx950, gfx1151 at 10.3.0a20261123 / 6b5f0a16). - Update bump-rocm-pin.yml to advance each arch independently from Quartz (leaving failing archs untouched) and enable squash auto-merge on the bump PR (main ruleset blocks direct/force pushes). - Update Docker build script, docs/setup.md, and unit tests.
SamuelReeder
force-pushed
the
users/sareeder/rocm-pin-quartz
branch
from
November 24, 2026 16:01
2d80e09 to
436727c
Compare
…ual-dispatch Extract per-arch Quartz pin resolution into tools/bump_rocm_pin.py (with unit tests in tests/unit/test_bump_rocm_pin.py) so both manual GitHub Actions dispatches and local scheduled automation share one script. Remove the schedule trigger from .github/workflows/bump-rocm-pin.yml to avoid racing local cron bumps while keeping workflow_dispatch available.
SamuelReeder
force-pushed
the
users/sareeder/rocm-pin-quartz
branch
from
November 24, 2026 16:17
66f09c0 to
65aec3e
Compare
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.
Summary
Previously,
setup_env.py --torch-mode rocminstalled rolling ROCm/PyTorch nightly wheels while building hipDNN andmiopen-providerfrom the pinnedrocm-librariesgit submodule. Whenever the nightly wheel's MIOpen andmiopen-providerchanged together (such asROCm/rocm-libraries#16128, renamingmiopenConvolution*GetWorkSpaceSizeRangeto*_implinlibMIOpen_private.so),libmiopen_plugin.sofailed to load onmain. Conversely, rolling both live on every CI run exposes developer PRs to upstream regressions that Quartz does not test (for example rocKE, which TheRock builds withHIPKERNELPROVIDER_ENABLE_ROCKE=OFF).This PR replaces the
rocm-librariessubmodule with a per-architecture checked-inrocm-pin.jsonupdated via gated Quartz bump PRs:rocm-pin.json): Maps each architecture (gfx90a,gfx942,gfx950,gfx1151) to its own last-known-goodrocm_version,build_date,therock_commit,rocm_libraries_commit, andindex_url, with adefaultfallback (gfx950) for unlisted architectures and non-ROCm modes.gfx90a:10.3.0a20261120/rocm-librariesbd4da658…(newest nightly passinggfx90aQuartz tests)gfx942,gfx950,gfx1151:10.3.0a20261123/rocm-libraries6b5f0a16…setup_env.py, CI (setup.yml,check-deserialize.yml), and Docker builds readrocm-pin.jsonwith zero Quartz/TheRock network calls.rocm-librariesgit submodule: Deleted therocm-librariesgitlink and.gitmodulesentry (keepingaiter), gitignored/rocm-libraries/, and updatedsetup_env.pyto sparse-clone fromhttps://github.com/ROCm/rocm-libraries.giton demand. Eliminates broken Dependabotrocm-librariesbump PRs.--rocm-version latestqueries Quartz live and resolves the matchingrocm-librariescommit fromROCm/TheRockvia a bare--depth 1 --filter=tree:0fetch (~10 KB, no GitHub REST API rate limit).--rocm-version <VERSION>pins another nightly and resolves its matchedrocm-librariescommit.--rocm-libraries-ref <SHA>or an existingrocm-libraries/checkout/worktree overrides the source commit; on an existing checkout, TheRock lookup is advisory (warns instead of failing offline)..github/workflows/bump-rocm-pin.yml): Runs Mon/Wed (and onworkflow_dispatch), checks each architecture independently in Quartz (gfx90a/gfx942/gfx950on Linux;gfx1151on Windows + Linux builds), advances only architectures with a newer passing nightly, leaves failing architectures untouched, opens/updates a PR onchore/bump-rocm-pin(skipping redundant pushes when unchanged), and enables squash auto-merge (gh pr merge --auto --squash). Updatedcheck-deserialize.ymlpath filters to includerocm-pin.jsonandsetup_env.py.build-dnn-benchmark-performance-image.shreadsrocm-pin.jsonfor--device-targetoffline by default (no hostgitor network required), validates--rocm-version/--rocm-libraries-refup front, andDockerfile.dnn-benchmark-performance-linuxdeclaresROCM_TORCH_INDEX_URL,ROCM_VERSION, andROCM_LIBRARIES_REFbelowCOPY . .so new pins reuse the apt layer.Verification
.venv/bin/pytest tests/unit/test_setup_env.py tests/unit/metrics/test_machine_info.py tests/unit/reporting/test_schema_v3.py -q: 186 passed, 1 skipped (Windows-only test).uvx black==25.12.0 --check setup_env.py tests/unit/test_setup_env.py: passed.bash -n, Docker dry runs acrossgfx90a/gfx942/gfx950/gfx1201, and live simulations of.github/workflows/bump-rocm-pin.yml(both no-op and single-arch bump paths): all passed.