File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
8989# Set triton via PYTORCH_EXTRA_INSTALL_REQUIREMENTS for triton rocm package
9090if [[ " $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
You can’t perform that action at this time.
0 commit comments