File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,18 @@ elif [[ $ROCM_INT -ge 50600 ]]; then
214
214
DEPS_AUX_DSTLIST+=(${RCCL_SHARE_FILES[@]/#/ $RCCL_SHARE_DST / } )
215
215
fi
216
216
217
+ # Add triton install dependency
218
+ if [[ $( uname) == " Linux" ]]; then
219
+ TRITON_SHORTHASH=$( cut -c1-10 $PYTORCH_ROOT /.ci/docker/ci_commit_pins/triton-rocm.txt)
220
+ TRITON_VERSION=$( cat $PYTORCH_ROOT /.ci/docker/triton_version.txt)
221
+
222
+ if [[ -z " $PYTORCH_EXTRA_INSTALL_REQUIREMENTS " ]]; then
223
+ export PYTORCH_EXTRA_INSTALL_REQUIREMENTS=" pytorch-triton-rocm==${TRITON_VERSION} +${TRITON_SHORTHASH} "
224
+ else
225
+ export PYTORCH_EXTRA_INSTALL_REQUIREMENTS=" ${PYTORCH_EXTRA_INSTALL_REQUIREMENTS} | pytorch-triton-rocm==${TRITON_VERSION} +${TRITON_SHORTHASH} "
226
+ fi
227
+ fi
228
+
217
229
218
230
echo " PYTORCH_ROCM_ARCH: ${PYTORCH_ROCM_ARCH} "
219
231
You can’t perform that action at this time.
0 commit comments