Skip to content

Commit eba456f

Browse files
Add pytorch-triton-rocm as an install dependency for ROCm (#1463)
* Add pytorch-triton-rocm as an install dependency for ROCm * Update build_rocm.sh
1 parent a5aa27f commit eba456f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

manywheel/build_rocm.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,18 @@ elif [[ $ROCM_INT -ge 50600 ]]; then
214214
DEPS_AUX_DSTLIST+=(${RCCL_SHARE_FILES[@]/#/$RCCL_SHARE_DST/})
215215
fi
216216

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+
217229

218230
echo "PYTORCH_ROCM_ARCH: ${PYTORCH_ROCM_ARCH}"
219231

0 commit comments

Comments
 (0)