Do not apply ROCm patches with CUDA build

Signed-off-by: Tom Rix <trix@redhat.com>
This commit is contained in:
Tom Rix 2024-06-08 12:04:20 -04:00
commit cefcc3d9e0

View file

@ -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