From 87c9fbda22c229d4e5512011e050efd6ffea1241 Mon Sep 17 00:00:00 2001 From: Aleksei Nikiforov Date: Tue, 7 Oct 2025 12:02:29 +0000 Subject: [PATCH] Follow up to PR 163980 for s390x (#164464) Now with same updates propagated to s390x it works on s390x runners too. Pull Request resolved: https://github.com/pytorch/pytorch/pull/164464 Approved by: https://github.com/atalman --- .ci/docker/manywheel/Dockerfile_s390x | 3 +++ .ci/pytorch/check_binary.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/docker/manywheel/Dockerfile_s390x b/.ci/docker/manywheel/Dockerfile_s390x index 46ec7f77ae8..1cf83acb1c7 100644 --- a/.ci/docker/manywheel/Dockerfile_s390x +++ b/.ci/docker/manywheel/Dockerfile_s390x @@ -115,6 +115,9 @@ RUN env GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True pip3 install grpcio # cmake-3.28.0 from pip for onnxruntime RUN python3 -mpip install cmake==3.28.0 +ADD ./common/patch_libstdc.sh patch_libstdc.sh +RUN bash ./patch_libstdc.sh && rm patch_libstdc.sh + # build onnxruntime 1.21.0 from sources. # it is not possible to build it from sources using pip, # so just build it from upstream repository. diff --git a/.ci/pytorch/check_binary.sh b/.ci/pytorch/check_binary.sh index cca289ac146..0f632f8006c 100755 --- a/.ci/pytorch/check_binary.sh +++ b/.ci/pytorch/check_binary.sh @@ -67,7 +67,7 @@ fi # wheels with cxx11-abi echo "Checking that the gcc ABI is what we expect" -if [[ "$(uname)" != 'Darwin' && "$(uname -m)" != "s390x" ]]; then +if [[ "$(uname)" != 'Darwin' ]]; then # We also check that there are cxx11 symbols in libtorch # echo "Checking that symbols in libtorch.so have the right gcc abi"