Skip to content

Commit 1cd4199

Browse files
authored
[Release 2.4] Release only changes - use pinned triton. (#128388)
[Release 2.4] Release only changes - use pinned triton version
1 parent c85e2ca commit 1cd4199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/scripts/binary_populate_env.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ if [[ "$PACKAGE_TYPE" =~ .*wheel.* && -n "${PYTORCH_EXTRA_INSTALL_REQUIREMENTS:
7979
# Only linux Python < 3.13 are supported wheels for triton
8080
TRITON_CONSTRAINT="platform_system == 'Linux' and platform_machine == 'x86_64' and python_version < '3.13'"
8181
TRITON_REQUIREMENT="triton==${TRITON_VERSION}; ${TRITON_CONSTRAINT}"
82-
if [[ -n "$PYTORCH_BUILD_VERSION" && "$PYTORCH_BUILD_VERSION" =~ .*dev.* ]]; then
82+
if [[ -n "$PYTORCH_BUILD_VERSION" ]]; then
8383
TRITON_SHORTHASH=$(cut -c1-10 $PYTORCH_ROOT/.ci/docker/ci_commit_pins/triton.txt)
8484
TRITON_REQUIREMENT="pytorch-triton==${TRITON_VERSION}+${TRITON_SHORTHASH}; ${TRITON_CONSTRAINT}"
8585
fi
@@ -89,7 +89,7 @@ fi
8989
# Set triton via PYTORCH_EXTRA_INSTALL_REQUIREMENTS for triton rocm package
9090
if [[ "$PACKAGE_TYPE" =~ .*wheel.* && -n "$PYTORCH_BUILD_VERSION" && "$PYTORCH_BUILD_VERSION" =~ .*rocm.* && $(uname) == "Linux" && "$DESIRED_PYTHON" != "3.12" ]]; then
9191
TRITON_REQUIREMENT="pytorch-triton-rocm==${TRITON_VERSION}"
92-
if [[ -n "$PYTORCH_BUILD_VERSION" && "$PYTORCH_BUILD_VERSION" =~ .*dev.* ]]; then
92+
if [[ -n "$PYTORCH_BUILD_VERSION" ]]; then
9393
TRITON_SHORTHASH=$(cut -c1-10 $PYTORCH_ROOT/.ci/docker/ci_commit_pins/triton-rocm.txt)
9494
TRITON_REQUIREMENT="pytorch-triton-rocm==${TRITON_VERSION}+${TRITON_SHORTHASH}"
9595
fi

0 commit comments

Comments
 (0)