Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package tvm for openSUSE:Factory checked in at 2024-10-23 21:10:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/tvm (Old) and /work/SRC/openSUSE:Factory/.tvm.new.26871 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "tvm" Wed Oct 23 21:10:55 2024 rev:25 rq:1217155 version:0.17.0 Changes: -------- --- /work/SRC/openSUSE:Factory/tvm/tvm.changes 2024-10-11 17:02:31.443188819 +0200 +++ /work/SRC/openSUSE:Factory/.tvm.new.26871/tvm.changes 2024-10-23 21:12:03.955167327 +0200 @@ -1,0 +2,6 @@ +Thu Oct 10 13:04:56 UTC 2024 - Guillaume GARDET <guillaume.gar...@opensuse.org> + +- Update to 0.17.0: + * Release notes: https://github.com/apache/tvm/releases/tag/v0.17.0 + +------------------------------------------------------------------- Old: ---- tvm-0.16.0.tar.gz New: ---- dmlc-core.tar.gz tvm-0.17.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ tvm.spec ++++++ --- /var/tmp/diff_new_pack.ZroFmv/_old 2024-10-23 21:12:05.979251826 +0200 +++ /var/tmp/diff_new_pack.ZroFmv/_new 2024-10-23 21:12:06.003252829 +0200 @@ -18,6 +18,10 @@ %define _lto_cflags %{nil} +# System dmlc is too old - https://github.com/apache/tvm/issues/17459#issuecomment-2429144716 +%bcond_with system_dmlc +%define dmlc_version 3031e4a + %{?!python_module:%define python_module() python3-%{**}} %define skip_python2 1 %ifarch aarch64 x86_64 ppc64le @@ -35,12 +39,14 @@ # regular cmake builddir conflicts with the python singlespec %global __builddir build_cmake Name: tvm -Version: 0.16.0 +Version: 0.17.0 Release: 0 Summary: An end-to-end Deep Learning Compiler Stack License: Apache-2.0 URL: https://tvm.apache.org/ Source: https://github.com/apache/tvm/archive/refs/tags/v%{version}.tar.gz#/tvm-%{version}.tar.gz +# License2: MIT +Source2: https://github.com/dmlc/dmlc-core/archive/%{dmlc_version}.tar.gz#/dmlc-core.tar.gz # PATCH-FIX-OPENSUSE lib-finder-python-cmake.patch -- custom cmake path Patch1: lib-finder-python-cmake.patch # PATCH-FIX-OPENSUSE tvm-fix-openblas.patch -- We use openblas headers instead of netlib cblas @@ -68,7 +74,9 @@ BuildRequires: antlr4-java BuildRequires: cmake BuildRequires: dlpack-devel >= 0.7 +%if %{with system_dmlc} BuildRequires: dmlc-core-devel +%endif BuildRequires: fdupes BuildRequires: gcc-c++ BuildRequires: git @@ -142,6 +150,11 @@ %prep %setup -q %autopatch -p1 +pushd 3rdparty +%if %{without system_dmlc} +tar xf %{SOURCE2} && rmdir dmlc-core && mv dmlc-core-* dmlc-core +%endif +popd # Workaround - https://discuss.tvm.ai/t/build-fails-on-tvm-0-6-0-0-6-1-with-gcc10-and-gcc7/7462/5?u=ggardet ln -s %{_includedir}/endian.h include/endian.h @@ -166,7 +179,11 @@ -DUSE_ARM_COMPUTE_LIB_GRAPH_RUNTIME=ON \ -DUSE_ARM_COMPUTE_LIB=ON \ %endif +%if %{with system_dmlc} -DDMLC_PATH="%{_includedir}/dmlc" \ +%else + -DDMLC_PATH="$(pwd)/../3rdparty/dmlc-core/include" \ +%endif -DDLPACK_PATH="%{_includedir}/dlpack" \ -DRANG_PATH="%{_includedir}/rang" \ -DUSE_GRAPH_RUNTIME=ON \ @@ -211,6 +228,9 @@ rm -rf %{buildroot}%{_prefix}/tvm # Remove src,include,3rdparty dirs %python_expand rm -rf %{buildroot}/%{$python_sitearch}/tvm/{src,include,3rdparty}/ +%if %{without system_dmlc} +rm -rf %{buildroot}%{_includedir}/dmlc +%endif # Remove .cpp file %python_expand rm %{buildroot}/%{$python_sitearch}/tvm/_ffi/_cython/core.cpp # tvmc shebang should be default python, not highest available version ++++++ tvm-0.16.0.tar.gz -> tvm-0.17.0.tar.gz ++++++ /work/SRC/openSUSE:Factory/tvm/tvm-0.16.0.tar.gz /work/SRC/openSUSE:Factory/.tvm.new.26871/tvm-0.17.0.tar.gz differ: char 13, line 1