From cefcc3d9e05c487b92c8e89157a3a79f74660a49 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Sat, 8 Jun 2024 12:04:20 -0400 Subject: [PATCH] Do not apply ROCm patches with CUDA build Signed-off-by: Tom Rix --- python-torch.spec | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python-torch.spec b/python-torch.spec index 20eaf4c..38c70c9 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -178,12 +178,14 @@ Patch8: 0001-dynamo-3.12-enable-dynamo-on-3.12-enable-most-dynamo.patch # ROCm patches # https://github.com/pytorch/pytorch/pull/120551 +%if %{without cuda} Patch100: 0001-Optionally-use-hipblaslt.patch Patch101: 0001-cuda-hip-signatures.patch Patch102: 0001-silence-an-assert.patch Patch103: 0001-can-not-use-with-c-files.patch Patch104: 0001-use-any-hip.patch Patch105: 0001-disable-use-of-aotriton.patch +%endif ExclusiveArch: x86_64 aarch64 %global toolchain gcc