File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -311,6 +311,12 @@ if [[ "$(uname)" == 'Linux' && "$PACKAGE_TYPE" == 'manywheel' ]]; then
311
311
# Per https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Dialect-Options.html gcc-11 is ABI16
312
312
# Though manylinux_2.28 should have been build with gcc-14, per
313
313
# 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
315
321
popd
316
322
fi
You can’t perform that action at this time.
0 commit comments