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

**URL:** https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581
**Category:** release/packaging
**Created:** [November 7, 2024, 2:12pm UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581 "2024-11-07T14:12:00Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![atalman](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/atalman/32/1857_2.png) [@atalman](https://dev-discuss.pytorch.org/u/atalman)
#### Post date: [November 7, 2024, 2:12pm UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581/1 "2024-11-07T14:12:00Z")

</div>

**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=1  
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:

- Build Linux Wheels job: [test-infra/.github/workflows/build\_wheels\_linux.yml at main · pytorch/test-infra · GitHub](https://github.com/pytorch/test-infra/blob/main/.github/workflows/build_wheels_linux.yml)
- Linux Job: [test-infra/.github/workflows/linux\_job.yml at main · pytorch/test-infra · GitHub](https://github.com/pytorch/test-infra/blob/main/.github/workflows/linux_job.yml)

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](https://github.com/pytorch/pytorch/issues/123649)

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](https://github.com/pytorch/pytorch/issues/123649)

Pytorch/Pytorch PR: [Use Manylinux2\_28 for wheel builds by atalman · Pull Request #138732 · pytorch/pytorch · GitHub](https://github.com/pytorch/pytorch/pull/138732)

---

<div class="post-metadata">

### Author: ![guoyejun](https://avatars.discourse-cdn.com/v4/letter/g/3e96dc/32.png) [@guoyejun](https://dev-discuss.pytorch.org/u/guoyejun)
#### Post date: [November 11, 2024, 1:24pm UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581/2 "2024-11-11T13:24:18Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![atalman](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/atalman/32/1857_2.png) [@atalman](https://dev-discuss.pytorch.org/u/atalman)
#### Post date: [December 4, 2024, 8:26pm UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581/3 "2024-12-04T20:26:33Z")

</div>

> [@guoyejun](#):
>
> D\_GLIBCXX\_USE\_CXX11\_ABI=1

Hi @guoyejun We are planning on using D\_GLIBCXX\_USE\_CXX11\_ABI=1 for all Manylinux 2.28 builds

---

<div class="post-metadata">

### Author: ![chuanqi129](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/chuanqi129/32/2422_2.png) [@chuanqi129](https://dev-discuss.pytorch.org/u/chuanqi129)
#### Post date: [December 10, 2024, 5:14am UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581/4 "2024-12-10T05:14:22Z")

</div>

Hi @atalman, since the PR [[CD] xpu nightly manylinux whl with cxx11-abi by chuanqi129 · Pull Request #142210 · pytorch/pytorch · GitHub](https://github.com/pytorch/pytorch/pull/142210) landed, let’s update the information of xpu in configuration for release 2.6 to “Linux XPU: Manylinux 2.28, D\_GLIBCXX\_USE\_CXX11\_ABI=1”.

---

<div class="post-metadata">

### Author: ![atalman](https://yyz2.discourse-cdn.com/flex036/user_avatar/dev-discuss.pytorch.org/atalman/32/1857_2.png) [@atalman](https://dev-discuss.pytorch.org/u/atalman)
#### Post date: [December 11, 2024, 5:22pm UTC](https://dev-discuss.pytorch.org/t/pytorch-linux-wheels-switching-to-new-wheel-build-platform-manylinux-2-28-on-november-12-2024/2581/5 "2024-12-11T17:22:38Z")

</div>

This is done. Information updated
