Skip to content

Commit fd80689

Browse files
authored
Add pytorch-triton to small wheel (#1426)
1 parent 78c5ce7 commit fd80689

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

manywheel/build_cuda.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,14 @@ else
272272
fi
273273

274274
# TODO: Remove me when Triton has a proper release channel
275-
if [[ $(uname) == "Linux" && -z "$PYTORCH_EXTRA_INSTALL_REQUIREMENTS" ]]; then
275+
if [[ $(uname) == "Linux" ]]; then
276276
TRITON_SHORTHASH=$(cut -c1-10 $PYTORCH_ROOT/.github/ci_commit_pins/triton.txt)
277-
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="pytorch-triton==2.1.0+${TRITON_SHORTHASH}"
277+
278+
if [[ -z "$PYTORCH_EXTRA_INSTALL_REQUIREMENTS" ]]; then
279+
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="pytorch-triton==2.1.0+${TRITON_SHORTHASH}"
280+
else
281+
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="${PYTORCH_EXTRA_INSTALL_REQUIREMENTS} | pytorch-triton==2.1.0+${TRITON_SHORTHASH}"
282+
fi
278283
fi
279284

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

0 commit comments

Comments
 (0)