8000 [ROCm] Use AOTriton as a dynamic library (#1893) · pytorch/builder@decc1a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit decc1a1

Browse files
[ROCm] Use AOTriton as a dynamic library (#1893)
* Add AOTriton dependency * Update aotriton install scripts to download tarball with shared object
1 parent 99a233b commit decc1a1

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

common/aotriton_version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
0.6b
22
manylinux_2_17
3-
rocm6
3+
rocm6.1
44
04b5df8c8123f90cba3ede7e971e6fbc6040d506
5-
3db6ecbc915893ff967abd6e1b43bd5f54949868873be60dc802086c3863e648
5+
77c29fa3f3b614e187d7213d745e989a92708cee2bc6020419ab49019af399d1

common/install_aotriton.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ TARBALL='aotriton.tar.bz2'
77
read -d "\n" VER MANYLINUX ROCMBASE PINNED_COMMIT SHA256 < aotriton_version.txt || true
88
ARCH=$(uname -m)
99
AOTRITON_INSTALL_PREFIX="$1"
10-
AOTRITON_URL="https://github.com/ROCm/aotriton/releases/download/${VER}/aotriton-${VER}-${MANYLINUX}_${ARCH}-${ROCMBASE}.tar.bz2"
10+
AOTRITON_URL="https://github.com/ROCm/aotriton/releases/download/${VER}/aotriton-${VER}-${MANYLINUX}_${ARCH}-${ROCMBASE}-shared.tar.bz2"
1111

1212
cd "${AOTRITON_INSTALL_PREFIX}"
1313
# Must use -L to follow redirects

manywheel/build_rocm.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,12 @@ do
184184
OS_SO_FILES[${#OS_SO_FILES[@]}]=$file_name # Append lib to array
185185
done
186186

187+
# PyTorch-version specific
188+
# AOTriton dependency only for PyTorch >= 2.4
189+
if (( $(echo "${PYTORCH_VERSION} 2.4" | awk '{print ($1 >= $2)}') )); then
190+
ROCM_SO_FILES+=("libaotriton_v2.so")
191+
fi
192+
187193
# rocBLAS library files
188194
if [[ $ROCM_INT -ge 50200 ]]; then
189195
ROCBLAS_LIB_SRC=$ROCM_HOME/lib/rocblas/library

0 commit comments

Comments
 (0)
0