Skip to content

Commit d69c421

Browse files
authored
[Release Only] Build triton using pinned version rather branch (pytorch#121765)
1 parent 6725db0 commit d69c421

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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.12 are supported wheels for triton
8080
TRITON_CONSTRAINT="platform_system == 'Linux' and platform_machine == 'x86_64' and python_version < '3.12'"
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

.github/workflows/build-triton-wheel.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ jobs:
114114
115115
docker exec -t "${container_name}" yum install -y zlib-devel zip
116116
docker exec -t "${container_name}" "${PYTHON_EXECUTABLE}" -m pip install -U setuptools==67.4.0
117-
docker exec -t "${container_name}" "${PYTHON_EXECUTABLE}" /pytorch/.github/scripts/build_triton_wheel.py $BUILD_ROCM $RELEASE
117+
docker exec -t "${container_name}" "${PYTHON_EXECUTABLE}" /pytorch/.github/scripts/build_triton_wheel.py $BUILD_ROCM
118118
docker exec -t "${container_name}" chown -R 1000.1000 /artifacts
119119
120120
- uses: actions/upload-artifact@v3
@@ -241,7 +241,7 @@ jobs:
241241
fi
242242
243243
docker exec -t "${container_name}" yum install -y llvm11 llvm11-devel llvm11-static llvm11-libs zlib-devel
244-
docker exec -t "${container_name}" python /pytorch/.github/scripts/build_triton_wheel.py --build-conda --py-version="${PY_VERS}" $RELEASE
244+
docker exec -t "${container_name}" python /pytorch/.github/scripts/build_triton_wheel.py --build-conda --py-version="${PY_VERS}"
245245
docker exec -t "${container_name}" chown -R 1000.1000 /artifacts
246246
247247
- uses: actions/upload-artifact@v3

0 commit comments

Comments
 (0)