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

Important Update as of Dec 4:

Please Review following update to PyTorch Manylinux Wheels that we plan to build for the Release 2.6. We are also planning on switching to only Manylinux 2.28 after branch cut for Release 2.6 is complete.

Configuration For Release 2.6:

Linux CPU, CUDA 11.8, CUDA 12.4: Manylinux2014, D_GLIBCXX_USE_CXX11_ABI=0
Linux CUDA 12.6: Manylinux 2.28, D_GLIBCXX_USE_CXX11_ABI=1
Linux Aarch64 CPU and GPU: Manylinux 2.28, D_GLIBCXX_USE_CXX11_ABI=1
Linux ROCm 6.1 and 6.2.4: Manylinux 2.28, D_GLIBCXX_USE_CXX11_ABI=1
Linux XPU: Manylinux 2.28, D_GLIBCXX_USE_CXX11_ABI=0
Libtorch Builds: No change from release 2.5.1. Compiled on Manylinux2014

Nightly builds:

Linux Builds: CPU, CUDA 11.8, CUDA 12.4 switched to Manylinux 2.28 and D_GLIBCXX_USE_CXX11_ABI=1 on the week of Dec 16
Libtorch Builds: switched to Manylinux 2.28 and D_GLIBCXX_USE_CXX11_ABI=1 on the week of Dec 16.

Original Message:

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.

Hi @guoyejun We are planning on using D_GLIBCXX_USE_CXX11_ABI=1 for all Manylinux 2.28 builds