Skip to content

Commit

Permalink
Add pytorch-triton to small wheel (#1426)
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Jun 13, 2023
1 parent 78c5ce7 commit fd80689
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions manywheel/build_cuda.sh
Original file line number Diff line number Diff line change
Expand Up @@ -272,9 +272,14 @@ else
fi

# TODO: Remove me when Triton has a proper release channel
if [[ $(uname) == "Linux" && -z "$PYTORCH_EXTRA_INSTALL_REQUIREMENTS" ]]; then
if [[ $(uname) == "Linux" ]]; then
TRITON_SHORTHASH=$(cut -c1-10 $PYTORCH_ROOT/.github/ci_commit_pins/triton.txt)
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="pytorch-triton==2.1.0+${TRITON_SHORTHASH}"

if [[ -z "$PYTORCH_EXTRA_INSTALL_REQUIREMENTS" ]]; then
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="pytorch-triton==2.1.0+${TRITON_SHORTHASH}"
else
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="${PYTORCH_EXTRA_INSTALL_REQUIREMENTS} | pytorch-triton==2.1.0+${TRITON_SHORTHASH}"
fi
fi

# builder/test.sh requires DESIRED_CUDA to know what tests to exclude
Expand Down

0 comments on commit fd80689

Please sign in to comment.