diff --git a/python-torch.spec b/python-torch.spec index a490e36..5c4640f 100644 --- a/python-torch.spec +++ b/python-torch.spec @@ -50,13 +50,22 @@ %bcond_without tensorpipe # For testing openvs +%if 0%{?fedora} +%bcond_without opencv +%else %bcond_with opencv +%endif # For testing cuda %ifarch x86_64 %bcond_with cuda %endif +# Disable dwz with rocm because memory can be exhausted +%if %{with rocm} +%define _find_debuginfo_dwz_opts %{nil} +%endif + Name: python-%{pypi_name} %if %{with gitcommit} Version: %{pypi_version}^git%{date0}.%{shortcommit0}