PyTorch Linux Wheels switching to new wheel build platform: manylinux-2.28 on November 12, 2024

Since CentOS 7 reached EOL. We will be switching our Linux Wheel Builds to Manylinux 2.28 (AlmaLinux 8 based) starting Nov 12, 2024.

With Migration to manylinux_2_28 (AlmaLinux 8 based) we would not be able to support OS distros with glibc2_26, these include popular Amazon Linux 2 and CentOS 7.

The pip nightly wheels will no longer work on Glibc 2.26 OS’s:
pip3 install --pre torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/cu121

Additionally if your project is onboarded to Nova workflows on test-infra, you maybe affected:

Please contact us if you have any issues related to these jobs. Comment on: [RFC] PyTorch next wheel build platform: manylinux-2.28 · Issue #123649 · pytorch/pytorch · GitHub

How does error looks like when try to execute new Manylinux 2.28 wheels on OS that is not supported:

ImportError: /lib64/libc.so.6: version GLIBC_2.28 not found (required by /__w/_temp/conda_environment_11702742309/lib/python3.9/site-packages/torch/lib/libtorch_python.so)

Related issue: [RFC] PyTorch next wheel build platform: manylinux-2.28 · Issue #123649 · pytorch/pytorch · GitHub

Pytorch/Pytorch PR: Use Manylinux2_28 for wheel builds by atalman · Pull Request #138732 · pytorch/pytorch · GitHub

looks that manylinux_2_28 supports the compile flag -D_GLIBCXX_USE_CXX11_ABI=1, which value will pytorch choose, 0 or 1 (the default value is 1) to build pytorch? thanks.