forked from pytorch/builder
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add AOTriton install step for ROCm manylinux images (pytorch#1862)
* Add AOTriton install step for ROCm * No common_utils.sh needed
- Loading branch information
1 parent
eb11301
commit c3365a8
Showing
4 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
0.6b | ||
manylinux_2_17 | ||
rocm6 | ||
04b5df8c8123f90cba3ede7e971e6fbc6040d506 | ||
3db6ecbc915893ff967abd6e1b43bd5f54949868873be60dc802086c3863e648 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/bash | ||
|
||
set -ex | ||
|
||
TARBALL='aotriton.tar.bz2' | ||
# This read command alwasy returns with exit code 1 | ||
read -d "\n" VER MANYLINUX ROCMBASE PINNED_COMMIT SHA256 < aotriton_version.txt || true | ||
ARCH=$(uname -m) | ||
AOTRITON_INSTALL_PREFIX="$1" | ||
AOTRITON_URL="https://github.com/ROCm/aotriton/releases/download/${VER}/aotriton-${VER}-${MANYLINUX}_${ARCH}-${ROCMBASE}.tar.bz2" | ||
|
||
cd "${AOTRITON_INSTALL_PREFIX}" | ||
# Must use -L to follow redirects | ||
curl -L --retry 3 -o "${TARBALL}" "${AOTRITON_URL}" | ||
ACTUAL_SHA256=$(sha256sum "${TARBALL}" | cut -d " " -f 1) | ||
if [ "${SHA256}" != "${ACTUAL_SHA256}" ]; then | ||
echo -n "Error: The SHA256 of downloaded tarball is ${ACTUAL_SHA256}," | ||
echo " which does not match the expected value ${SHA256}." | ||
exit | ||
fi | ||
tar xf "${TARBALL}" && rm -rf "${TARBALL}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters