Skip to content

Commit 4a9a56c

Browse files
authored
[Release only] fix triton dependency (#1535)
1 parent 922b32e commit 4a9a56c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

manywheel/build_cuda.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,14 @@ else
257257
exit 1
258258
fi
259259

260+
# Prepare for 2.1.0 release
261+
if [[ $(uname) == "Linux" ]]; then
262+
TRITON_VERSION=$(cat $PYTORCH_ROOT/.ci/docker/triton_version.txt)
263+
if [[ -z "$PYTORCH_EXTRA_INSTALL_REQUIREMENTS" ]]; then
264+
export PYTORCH_EXTRA_INSTALL_REQUIREMENTS="triton==${TRITON_VERSION}"
265+
fi
266+
fi
267+
260268
# builder/test.sh requires DESIRED_CUDA to know what tests to exclude
261269
export DESIRED_CUDA="$cuda_version_nodot"
262270

0 commit comments

Comments
 (0)