This repository was archived by the owner on Aug 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ retry () {
2525OS_NAME=$( awk -F= ' /^NAME/{print $2}' /etc/os-release)
2626if [[ " $OS_NAME " == * " CentOS Linux" * ]]; then
2727 retry yum install -q -y zip openssl
28+ elif [[ " $OS_NAME " == * " AlmaLinux" * ]]; then
29+ retry yum install -q -y zip openssl
2830elif [[ " $OS_NAME " == * " Red Hat Enterprise Linux" * ]]; then
2931 retry dnf install -q -y zip openssl
3032elif [[ " $OS_NAME " == * " Ubuntu" * ]]; then
Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ if [[ "$OS_NAME" == *"CentOS Linux"* ]]; then
3131 LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
3232elif [[ " $OS_NAME " == * " Red Hat Enterprise Linux" * ]]; then
3333 LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
34+ elif [[ " $OS_NAME " == * " AlmaLinux" * ]]; then
35+ LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
3436elif [[ " $OS_NAME " == * " Ubuntu" * ]]; then
3537 if [[ " $( uname -m) " == " s390x" ]]; then
3638 LIBGOMP_PATH=" /usr/lib/s390x-linux-gnu/libgomp.so.1"
Original file line number Diff line number Diff line change @@ -113,6 +113,8 @@ mkdir -p "$PYTORCH_FINAL_PACKAGE_DIR" || true
113113OS_NAME=$( awk -F= ' /^NAME/{print $2}' /etc/os-release)
114114if [[ " $OS_NAME " == * " CentOS Linux" * ]]; then
115115 LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
116+ elif [[ " $OS_NAME " == * " AlmaLinux" * ]]; then
117+ LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
116118elif [[ " $OS_NAME " == * " Red Hat Enterprise Linux" * ]]; then
117119 LIBGOMP_PATH=" /usr/lib64/libgomp.so.1"
118120elif [[ " $OS_NAME " == * " Ubuntu" * ]]; then
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ retry () {
2424OS_NAME=` awk -F= ' /^NAME/{print $2}' /etc/os-release`
2525if [[ " $OS_NAME " == * " CentOS Linux" * ]]; then
2626 retry yum install -q -y zip openssl
27+ elif [[ " $OS_NAME " == * " AlmaLinux" * ]]; then
28+ retry yum install -q -y zip openssl
2729elif [[ " $OS_NAME " == * " Red Hat Enterprise Linux" * ]]; then
2830 retry dnf install -q -y zip openssl
2931elif [[ " $OS_NAME " == * " Ubuntu" * ]]; then
@@ -278,7 +280,7 @@ for pkg in /$LIBTORCH_HOUSE_DIR/libtorch*.zip; do
278280 if [[ " $filepath " != " $destpath " ]]; then
279281 cp $filepath $destpath
280282 fi
281-
283+
282284 if [[ " $DESIRED_CUDA " == * " rocm" * ]]; then
283285 patchedpath=$( fname_without_so_number $destpath )
284286 else
@@ -299,7 +301,7 @@ for pkg in /$LIBTORCH_HOUSE_DIR/libtorch*.zip; do
299301 patchedname=${patched[i]}
300302 if [[ " $origname " != " $patchedname " ]] || [[ " $DESIRED_CUDA " == * " rocm" * ]]; then
301303 set +e
302- origname=$( $PATCHELF_BIN --print-needed $sofile | grep " $origname .*" )
304+ origname=$( $PATCHELF_BIN --print-needed $sofile | grep " $origname .*" )
303305 ERRCODE=$?
304306 set -e
305307 if [ " $ERRCODE " -eq " 0" ]; then
You can’t perform that action at this time.
0 commit comments