Skip to content

Commit 22d7be5

Browse files
authored
Do not hardcode triton version in builder code (#1646)
* Do not hardcode triton version in builder code * Minor tweak to use pytorch_rootdir
1 parent cd257e9 commit 22d7be5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

conda/build_pytorch.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,9 @@ else
275275
fi
276276
if [[ "$OSTYPE" != "msys" ]]; then
277277
# TODO: Remove me when Triton has a proper release channel
278+
TRITON_VERSION=$(cat $pytorch_rootdir/.ci/docker/triton_version.txt)
278279
TRITON_SHORTHASH=$(cut -c1-10 $pytorch_rootdir/.github/ci_commit_pins/triton.txt)
279-
export CONDA_TRITON_CONSTRAINT=" - torchtriton==2.1.0+${TRITON_SHORTHASH} # [py < 312]"
280+
export CONDA_TRITON_CONSTRAINT=" - torchtriton==${TRITON_VERSION}+${TRITON_SHORTHASH} # [py < 312]"
280281
fi
281282

282283
build_string_suffix="cuda${CUDA_VERSION}_cudnn${CUDNN_VERSION}_${build_string_suffix}"

0 commit comments

Comments
 (0)