Skip to content

Commit 4a2795e

Browse files
authored
add rocm 4.0 manywheel support (pytorch#614)
* add rocm 4.0 manywheel support * in rocm4.0, libamdhip64.so.3 changed to *.so.4
1 parent 53a11b4 commit 4a2795e

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
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' 'rocm3.9' 'rocm3.10')
12+
export CUDA_VERSIONS=('cpu' 'cu92' 'cu100' 'cu101' 'cu102' 'cu110' 'rocm3.7' 'rocm3.8' 'rocm3.9' 'rocm3.10' 'rocm4.0')
1313
fi
1414

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

manywheel/build_rocm.sh

+10-3
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,20 @@ else
7373
COMGR_LIBDIR="lib64"
7474
fi
7575

76+
# in rocm4.0, libamdhip64.so.3 changed to *.so.4
77+
if [[ $ROCM_VERSION == "rocm4.0" ]]; then
78+
LIBAMDHIP64=libamdhip64.so.4
79+
else
80+
LIBAMDHIP64=libamdhip64.so.3
81+
fi;
82+
7683
# NOTE: Some ROCm versions have identical dependencies, or very close deps.
7784
# To avoid copy/paste mistakes, version condition branches are combined.
78-
if [[ $ROCM_VERSION == "rocm3.7" || $ROCM_VERSION == "rocm3.8" || $ROCM_VERSION == "rocm3.9" || $ROCM_VERSION == "rocm3.10" ]]; then
85+
if [[ $ROCM_VERSION == "rocm3.7" || $ROCM_VERSION == "rocm3.8" || $ROCM_VERSION == "rocm3.9" || $ROCM_VERSION == "rocm3.10" || $ROCM_VERSION == "rocm4.0" ]]; then
7986

8087
DEPS_LIST=(
8188
"/opt/rocm/miopen/lib/libMIOpen.so.1"
82-
"/opt/rocm/hip/lib/libamdhip64.so.3"
89+
"/opt/rocm/hip/lib/$LIBAMDHIP64"
8390
"/opt/rocm/hiprand/lib/libhiprand.so.1"
8491
"/opt/rocm/hipsparse/lib/libhipsparse.so.0"
8592
"/opt/rocm/hsa/lib/libhsa-runtime64.so.1"
@@ -99,7 +106,7 @@ DEPS_LIST=(
99106

100107
DEPS_SONAME=(
101108
"libMIOpen.so.1"
102-
"libamdhip64.so.3"
109+
"$LIBAMDHIP64"
103110
"libhiprand.so.1"
104111
"libhipsparse.so.0"
105112
"libhsa-runtime64.so.1"

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 3.9 3.10; do
5+
for rocm_version in 3.7 3.8 3.9 3.10 4.0; do
66
(
77
set -x
88
DOCKER_BUILDKIT=1 docker build \

0 commit comments

Comments
 (0)