Skip to content

Commit aa575ca

Browse files
AlekseiNikiforovIBMmalfet
authored andcommitted
Skip cxxabi check for s390x (pytorch#149954)
On s390x gcc 14 is used because it contains fix for interaction between precompiled headers and vectorization builtins. This fix is not available in earlier gcc versions. gcc-14 uses ABI19, but check still fails, so skip it for now.. Pull Request resolved: pytorch#149954 Approved by: https://github.com/cyyever, https://github.com/malfet Co-authored-by: Nikita Shulga <[email protected]>
1 parent 6ae8eb8 commit aa575ca

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.ci/pytorch/check_binary.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,12 @@ if [[ "$(uname)" == 'Linux' && "$PACKAGE_TYPE" == 'manywheel' ]]; then
311311
# Per https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html gcc-11 is ABI16
312312
# Though manylinux_2.28 should have been build with gcc-14, per
313313
# https://github.com/pypa/manylinux?tab=readme-ov-file#manylinux_2_28-almalinux-8-based
314-
python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1016' else 1)"
314+
# On s390x gcc 14 is used because it contains fix for interaction
315+
# between precompiled headers and vectorization builtins.
316+
# This fix is not available in earlier gcc versions.
317+
# gcc-14 uses ABI19.
318+
if [[ "$(uname -m)" != "s390x" ]]; then
319+
python -c "import torch; exit(0 if torch._C._PYBIND11_BUILD_ABI == '_cxxabi1016' else 1)"
320+
fi
315321
popd
316322
fi

0 commit comments

Comments
 (0)