Skip to content

[release/internal/3.8.x] Remove git version suffix - #957

Draft
ethanwee1 wants to merge 1 commit into
ROCm:release/internal/3.8.xfrom
ethanwee1:remove-git-version-suffix-3.8.x
Draft

[release/internal/3.8.x] Remove git version suffix#957
ethanwee1 wants to merge 1 commit into
ROCm:release/internal/3.8.xfrom
ethanwee1:remove-git-version-suffix-3.8.x

Conversation

@ethanwee1

@ethanwee1 ethanwee1 commented Jul 23, 2026

Copy link
Copy Markdown

Part of the ROCm release/2.11 wheel-build fix stack tracked by ROCm/pytorch#3477 (all pieces validated together in one combined green build). Jira: https://amd-hub.atlassian.net/browse/AIPYTORCH-827

Why

When a consumer (e.g. PyTorch's build_triton_wheel.py) checks out a pinned commit as a detached HEAD, get_triton_version_suffix() appends a +git<sha> segment. Combined with the externally supplied TRITON_WHEEL_VERSION_SUFFIX (e.g. +rocm<ver>.git<sha>, whose + is then rewritten to -), the wheel ends up versioned 3.8.0+git<sha>.rocm<ver>.git<sha>.

That no longer matches the triton==3.8.0+rocm<ver>.git<sha> dependency that gets pinned into the torch wheel, so pip install torch fails to resolve triton:

ERROR: Could not find a version that satisfies the requirement triton==3.8.0+rocm7.2.4.git4cff872c
       (from versions: ..., 3.8.0+git4cff872c.rocm7.2.4.git4cff872c)
ERROR: No matching distribution found for triton==3.8.0+rocm7.2.4.git4cff872c

Fix

Build TRITON_VERSION from the base version plus only the externally supplied TRITON_WHEEL_VERSION_SUFFIX, instead of also appending the git commit hash via get_triton_version_suffix().

Mirrors the fix already applied to release/internal/3.6.x (#920).

Build TRITON_VERSION from the base version plus only the externally
supplied TRITON_WHEEL_VERSION_SUFFIX, instead of also appending the
git commit hash via get_triton_version_suffix().

When a consumer (e.g. PyTorch's build_triton_wheel.py) checks out a
pinned commit as a detached HEAD, get_git_version_suffix() adds a
"+git<sha>" segment. Combined with the supplied
TRITON_WHEEL_VERSION_SUFFIX (e.g. "+rocm<ver>.git<sha>", whose "+" is
then rewritten to "-"), the wheel is versioned
"3.8.0+git<sha>.rocm<ver>.git<sha>". That no longer matches the
"triton==3.8.0+rocm<ver>.git<sha>" dependency pinned into the torch
wheel, so `pip install torch` fails to resolve triton.

Mirrors the fix already applied to release/internal/3.6.x (triton-lang#920).
ethanwee1 added a commit to ROCm/pytorch that referenced this pull request Jul 23, 2026
…ild-script workaround

Point the Triton pin at ROCm/triton#957 (72c9556a1, "Remove git version
suffix" on release/internal/3.8.x), which fixes the wheel version at the
source. With that commit, TRITON_VERSION no longer appends "+git<sha>",
so the build-script workaround in build_triton_wheel.py is unnecessary
and is reverted to upstream behavior.
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