Skip to content

Commit a15fac8

Browse files
authored
add ROCm 3.9 manywheel build (pytorch#561)
* add rocm 3.9 to manywheel/deploy.sh * update manywheel/build_rocm.sh for rocm 3.9 * update cron/update_s3_htmls.sh for rocm 3.9
1 parent c286aad commit a15fac8

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

cron/update_s3_htmls.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99

1010
# Upload for all CUDA/cpu versions if not given one to use
1111
if [[ -z "$CUDA_VERSIONS" ]]; then
12-
export CUDA_VERSIONS=('cpu' 'cu92' 'cu100' 'cu101' 'cu102' 'cu110' 'rocm3.7' 'rocm3.8')
12+
export CUDA_VERSIONS=('cpu' 'cu92' 'cu100' 'cu101' 'cu102' 'cu110' 'rocm3.7' 'rocm3.8' 'rocm3.9')
1313
fi
1414

1515
if [[ -z "$HTML_NAME" ]]; then

manywheel/build_rocm.sh

+13-4
Original file line numberDiff line numberDiff line change
@@ -59,22 +59,31 @@ elif [[ "$OS_NAME" == *"Ubuntu"* ]]; then
5959
LIBELF_PATH="/usr/lib/x86_64-linux-gnu/libelf.so.1"
6060
fi
6161

62+
# rocm3.8 and later use TensileLibrary.dat
6263
if [[ $ROCM_VERSION == "rocm3.7" ]]; then
6364
TENSILE_LIBRARY_NAME=TensileLibrary.yaml
64-
elif [[ $ROCM_VERSION == "rocm3.8" ]]; then
65+
else
6566
TENSILE_LIBRARY_NAME=TensileLibrary.dat
6667
fi
6768

68-
# NOTE: Some ROCm versions have identical dependencies.
69-
# To avoid copy/paste mistakes, version condition branches are combined.
69+
# in rocm3.9, libamd_comgr path changed from lib to lib64
7070
if [[ $ROCM_VERSION == "rocm3.7" || $ROCM_VERSION == "rocm3.8" ]]; then
71+
COMGR_LIBDIR="lib"
72+
else
73+
COMGR_LIBDIR="lib64"
74+
fi
75+
76+
# NOTE: Some ROCm versions have identical dependencies, or very close deps.
77+
# To avoid copy/paste mistakes, version condition branches are combined.
78+
if [[ $ROCM_VERSION == "rocm3.7" || $ROCM_VERSION == "rocm3.8" || $ROCM_VERSION == "rocm3.9" ]]; then
79+
7180
DEPS_LIST=(
7281
"/opt/rocm/miopen/lib/libMIOpen.so.1"
7382
"/opt/rocm/hip/lib/libamdhip64.so.3"
7483
"/opt/rocm/hiprand/lib/libhiprand.so.1"
7584
"/opt/rocm/hipsparse/lib/libhipsparse.so.0"
7685
"/opt/rocm/hsa/lib/libhsa-runtime64.so.1"
77-
"/opt/rocm/lib/libamd_comgr.so.1"
86+
"/opt/rocm/${COMGR_LIBDIR}/libamd_comgr.so.1"
7887
"/opt/rocm/lib64/libhsakmt.so.1"
7988
"/opt/rocm/rccl/lib/librccl.so.1"
8089
"/opt/rocm/rocblas/lib/librocblas.so.0"

manywheel/deploy.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eou pipefail
44

5-
for rocm_version in 3.7 3.8; do
5+
for rocm_version in 3.7 3.8 3.9; do
66
(
77
set -x
88
DOCKER_BUILDKIT=1 docker build \

0 commit comments

Comments
 (0)