From ec583b0435e040155d9f0d4e11ac231cb801432c Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Thu, 21 Aug 2025 07:25:51 -0700 Subject: [PATCH 1/2] Disable aarch64 on EPEL Signed-off-by: Tom Rix --- python-torch.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-torch.spec b/python-torch.spec index 6034593..de807e5 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -114,7 +114,14 @@ Patch11: 0001-Add-cmake-variable-USE_ROCM_CK.patch # Patch12: 0001-Use-horrible-dynamo-stub.patch Patch12: 0001-Fix-compilation-and-import-torch-issues-for-cpython-.patch -ExclusiveArch: x86_64 aarch64 +# 2.8 has this problem on aarch64 +# /builddir/build/BUILD/pytorch-v2.8.0/c10/util/FunctionRef.h:45:3: error: unrecognizable insn: +# (insn 3196 3195 3197 78 (set (reg:VNx8BF 1368 [ _494 ]) +# (unspec:VNx8BF [ +# (reg:VNx8BF 1374) +# (reg:VNx8BF 1375) +# ] UNSPEC_IORF)) "/builddir/build/BUILD/pytorch-v2.8.0/aten/src/ATen/cpu/vec/sve/vec_bfloat16.h":228:31 discrim 1 -1 +ExclusiveArch: x86_64 %global toolchain gcc %global _lto_cflags %nil From b444753d2f67fad6714f855d9f328b0487af10c9 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 20 Jun 2026 09:00:10 -0700 Subject: [PATCH 2/2] Rebuild for ROCm 7.2 Signed-off-by: Tom Rix --- python-torch.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python-torch.spec b/python-torch.spec index 09d6699..0e73ca6 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -67,7 +67,7 @@ Version: %{pypi_version}^git%{date0}.%{shortcommit0} %else Version: %{pypi_version} %endif -Release: 1%{?dist} +Release: 2%{?dist} Summary: PyTorch AI/ML framework # See license.txt for license details License: BSD-3-Clause AND BSD-2-Clause AND 0BSD AND Apache-2.0 AND MIT AND BSL-1.0 AND GPL-3.0-or-later AND Zlib