From c5c84ab4b2aa5a0f8b51b1ce537e3715409d7ea2 Mon Sep 17 00:00:00 2001 From: Tom Rix Date: Wed, 7 Aug 2024 11:13:43 -0700 Subject: [PATCH] Disable fbgemm with rocm With building python-torchvision, there is this link error. trix@fedora:~/fedora/python-torchvision$ c++filt _ZN2at4cuda4blas9int8_gemmEbblllPKalS3_lPil at::cuda::blas::int8_gemm(bool, bool, long, long, long, signed char const*, long, signed char const*, long,\ int*, long) So disable fbgemm with rocm is enabled. Signed-off-by: Tom Rix --- python-torch.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/python-torch.spec b/python-torch.spec index fd46384..6eb7447 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -69,14 +69,14 @@ %bcond_with pocketfft %endif -%if 0%{?fedora} > 40 %ifarch x86_64 -%bcond_without fbgemm + %if %{with rocm} + %bcond_with fbgemm + %else + %bcond_without fbgemm + %endif %else -%bcond_with fbgemm -%endif -%else -%bcond_with fbgemm + %bcond_with fbgemm %endif # For testing cuda