-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add AOTriton install step for ROCm * No common_utils.sh needed Co-authored-by: Jithun Nair <37884920+jithunnair-amd@users.noreply.github.com>
- Loading branch information
1 parent
eb11301
commit 01a9531
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