Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-torch for openSUSE:Factory checked in at 2026-07-28 17:56:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-torch (Old) and /work/SRC/openSUSE:Factory/.python-torch.new.2004 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-torch" Tue Jul 28 17:56:17 2026 rev:11 rq:1367903 version:2.12.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-torch/python-torch.changes 2026-07-14 13:47:33.730136801 +0200 +++ /work/SRC/openSUSE:Factory/.python-torch.new.2004/python-torch.changes 2026-07-28 18:02:54.527027155 +0200 @@ -1,0 +2,6 @@ +Wed Jul 22 09:09:57 UTC 2026 - Andreas Schwab <[email protected]> + +- Enable use of oneDNN on riscv64 +- Use mold on riscv64 to avoid running out of memory + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-torch.spec ++++++ --- /var/tmp/diff_new_pack.Q5aaAG/_old 2026-07-28 18:02:58.659171739 +0200 +++ /var/tmp/diff_new_pack.Q5aaAG/_new 2026-07-28 18:02:58.663171879 +0200 @@ -111,7 +111,7 @@ BuildRequires: lmdb-devel BuildRequires: ninja BuildRequires: nlohmann_json-devel -%ifarch x86_64 aarch64 ppc64le +%ifarch x86_64 aarch64 ppc64le riscv64 BuildRequires: onednn-devel %endif BuildRequires: openblas-devel @@ -143,6 +143,9 @@ BuildRequires: vulkan-devel Conflicts: %{python_module torch} %endif +%ifarch riscv64 +BuildRequires: mold +%endif Requires: libtorch%{?pkg_suffix} = %{version} Requires: python-numpy Requires: python-protobuf @@ -297,6 +300,9 @@ export CFLAGS="\${CFLAGS} -Wno-incompatible-pointer-types" %endif export LDFLAGS="\${LDFLAGS} -Wl,--allow-shlib-undefined" +%ifarch riscv64 +LDFLAGS+=" -fuse-ld=mold" +%endif EOF # Build both C++ libraries and Python bindings in a single pass
