commit tvm for openSUSE:Factory

2020-10-23 Thread root
Hello community,

here is the log from the commit of package tvm for openSUSE:Factory checked in 
at 2020-10-23 16:09:15

Comparing /work/SRC/openSUSE:Factory/tvm (Old)
 and  /work/SRC/openSUSE:Factory/.tvm.new.3463 (New)


Package is "tvm"

Fri Oct 23 16:09:15 2020 rev:4 rq:839532 version:0.6.1

Changes:

--- /work/SRC/openSUSE:Factory/tvm/tvm.changes  2020-10-02 17:44:07.346982606 
+0200
+++ /work/SRC/openSUSE:Factory/.tvm.new.3463/tvm.changes2020-10-23 
16:09:39.807772176 +0200
@@ -1,0 +2,10 @@
+Fri Oct  2 12:16:21 UTC 2020 - Guillaume GARDET 
+
+- Enable onednn (formerly mkl-dnn) for aarch64 and ppc64le as well
+- Add support to:
+  * Antlr4
+  * openBLAS
+- Add patch to fix build with openblas enabled:
+  * tvm-fix-openblas.patch
+
+---

New:

  tvm-fix-openblas.patch



Other differences:
--
++ tvm.spec ++
--- /var/tmp/diff_new_pack.Pqcqi0/_old  2020-10-23 16:09:40.867772726 +0200
+++ /var/tmp/diff_new_pack.Pqcqi0/_new  2020-10-23 16:09:40.867772726 +0200
@@ -18,10 +18,10 @@
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
-%ifarch x86_64
-%bcond_without mkldnn
+%ifarch aarch64 x86_64 ppc64le
+%bcond_without onednn
 %else
-%bcond_with mkldnn
+%bcond_with onednn
 %endif
 # regular cmake builddir conflicts with the python singlespec
 %global __builddir build_cmake
@@ -33,6 +33,8 @@
 URL:https://tvm.apache.org/
 Source: 
https://github.com/apache/incubator-tvm/archive/v%{version}.tar.gz
 Patch0: lib-finder-python-cmake.patch
+# Fix cblas.h path
+Patch1: tvm-fix-openblas.patch
 BuildRequires:  %{python_module Cython}
 BuildRequires:  %{python_module attrs}
 BuildRequires:  %{python_module decorator}
@@ -42,14 +44,16 @@
 BuildRequires:  %{python_module scipy}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module tornado}
+BuildRequires:  antlr4-java
 BuildRequires:  cmake
 BuildRequires:  dlpack-devel
 BuildRequires:  dmlc-core-devel
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  gtest
-#BuildRequires:  openblas-devel
 BuildRequires:  memory-constraints
+BuildRequires:  openblas-devel
+BuildRequires:  opencl-headers
 BuildRequires:  pkgconfig
 BuildRequires:  rang-devel
 BuildRequires:  spirv-headers
@@ -77,8 +81,8 @@
 %else
 BuildRequires:  llvm-devel
 %endif
-%if %{with mkldnn}
-BuildRequires:  mkl-dnn-devel
+%if %{with onednn}
+BuildRequires:  onednn-devel
 %endif
 %python_subpackages
 
@@ -131,29 +135,24 @@
 
 %build
 %limit_build -m 800
-# USE_ANTLR - fails to find the antlr4 we provide
 # USE_CUDA - we would need cuda
 # USE_METAL
 # USE_MICRO USE_MICRO_STANDALONE_RUNTIME
-# USE_GRAPH_RUNTIME
 # USE_NNPACK
 # USE_ROCBLAS USE_ROCM
 %cmake \
   -DDMLC_PATH="%{_includedir}/dmlc" \
   -DDLPACK_PATH="%{_includedir}/dlpack" \
   -DRANG_PATH="%{_includedir}/rang" \
+  -DUSE_GRAPH_RUNTIME=ON \
   -DUSE_LLVM=ON \
-  -DUSE_BLAS="none" \
-%if %{with mkldnn}
+  -DUSE_BLAS="openblas" \
+%if %{with onednn}
   -DUSE_MKLDNN=ON \
 %else
   -DUSE_MKLDNN=OFF \
 %endif
-%if 0%{?suse_version} > 1500
   -DUSE_OPENCL=ON \
-%else
-  -DUSE_OPENCL=OFF \
-%endif
   -DUSE_OPENGL=ON \
   -DUSE_OPENMP=ON \
   -DUSE_RANDOM=ON \
@@ -162,6 +161,7 @@
   -DUSE_SORT=ON \
   -DUSE_THREADS=ON \
   -DUSE_VULKAN=ON \
+  -DUSE_ANTLR="/usr/share/java/antlr4/antlr4-runtime.jar" \
   -DINSTALL_DEV=ON
 %cmake_build
 cd ..

++ tvm-fix-openblas.patch ++
--- incubator-tvm-0.6.1.orig/src/runtime/contrib/cblas/cblas.cc 2020-10-02 
14:17:41.273707898 +0200
+++ incubator-tvm-0.6.1/src/runtime/contrib/cblas/cblas.cc  2020-10-05 
09:28:06.788585163 +0200
@@ -29,7 +29,7 @@ extern "C" {
 #if USE_MKL_BLAS == 1
 #include 
 #else
-#include 
+#include 
 #endif
 #if USE_DNNL == 1
 #include 



commit tvm for openSUSE:Factory

2020-10-02 Thread root
Hello community,

here is the log from the commit of package tvm for openSUSE:Factory checked in 
at 2020-10-02 17:43:30

Comparing /work/SRC/openSUSE:Factory/tvm (Old)
 and  /work/SRC/openSUSE:Factory/.tvm.new.4249 (New)


Package is "tvm"

Fri Oct  2 17:43:30 2020 rev:3 rq:839146 version:0.6.1

Changes:

--- /work/SRC/openSUSE:Factory/tvm/tvm.changes  2020-09-09 18:07:25.567497624 
+0200
+++ /work/SRC/openSUSE:Factory/.tvm.new.4249/tvm.changes2020-10-02 
17:44:07.346982606 +0200
@@ -1,0 +2,7 @@
+Fri Oct  2 09:01:09 UTC 2020 - Michel Normand 
+
+- Add _constraints with 4GB min disk space
+- Use limit_build macro for all arches
+- Exclude more tests for ppc64 & ppc64le
+
+---

New:

  _constraints



Other differences:
--
++ tvm.spec ++
--- /var/tmp/diff_new_pack.0GQRqd/_old  2020-10-02 17:44:10.690984600 +0200
+++ /var/tmp/diff_new_pack.0GQRqd/_new  2020-10-02 17:44:10.694984602 +0200
@@ -49,6 +49,7 @@
 BuildRequires:  gcc-c++
 BuildRequires:  gtest
 #BuildRequires:  openblas-devel
+BuildRequires:  memory-constraints
 BuildRequires:  pkgconfig
 BuildRequires:  rang-devel
 BuildRequires:  spirv-headers
@@ -129,6 +130,7 @@
 ln -s %{_includedir}/endian.h include/endian.h
 
 %build
+%limit_build -m 800
 # USE_ANTLR - fails to find the antlr4 we provide
 # USE_CUDA - we would need cuda
 # USE_METAL
@@ -201,9 +203,16 @@
 # test_device_module_dump or test_conv2d_scalar_bop or test_broadcast_bop or 
test_tensor_scalar_bop or test_vulkan or test_add_pipeline or 
test_cmp_load_store - also need vulkan
 # test_task_tuner_without_measurement or test_fit or test_tuner or 
test_opencl_ternary_expression or test_opencl_inf_nan or test_gpu or 
test_simplex_data_transferring or test_duplex_data_transferring - Needs openCL
 # test_fp16_to_fp32 fails on non-x86 as it uses skylake as llvm target
+more_not_test=''
+%ifarch ppc64le
+more_not_test="or test_popcount or test_vmlal_s16 or test_llvm_add_pipeline"
+%endif
+%ifarch ppc64
+more_not_test="or test_check_correctness or test_graph_simple or 
test_llvm_add_pipeline or test_popcount or test_rpc_array or 
test_rpc_file_exchange or test_rpc_remote_module or test_rpc_return_func or 
test_rpc_return_ndarray or test_rpc_simple or test_rpc_tracker_register or 
test_rpc_tracker_request or test_vmlal_s16"
+%endif
 %{python_expand # test with both $python sitearch and sitelib
 export 
PYTHONPATH="%{buildroot}%{$python_sitearch}:%{buildroot}%{$python_sitelib}"
-$python -m pytest -v tests/python/unittest -k 'not (test_device_module_dump or 
test_conv2d_scalar_bop or test_broadcast_bop or test_tensor_scalar_bop or 
test_vulkan or test_add_pipeline or test_cmp_load_store or 
test_task_tuner_without_measurement or test_fit or test_tuner or 
test_opencl_ternary_expression or test_opencl_inf_nan or test_gpu or 
test_simplex_data_transferring or test_duplex_data_transferring or 
test_fp16_to_fp32)'}
+$python -m pytest -v tests/python/unittest -k "not (test_device_module_dump or 
test_conv2d_scalar_bop or test_broadcast_bop or test_tensor_scalar_bop or 
test_vulkan or test_add_pipeline or test_cmp_load_store or 
test_task_tuner_without_measurement or test_fit or test_tuner or 
test_opencl_ternary_expression or test_opencl_inf_nan or test_gpu or 
test_simplex_data_transferring or test_duplex_data_transferring or 
test_fp16_to_fp32 $more_not_test)"}
 
 %post -n %{name} -p /sbin/ldconfig
 %postun -n %{name} -p /sbin/ldconfig

++ _constraints ++

  
  
4
  
  





commit tvm for openSUSE:Factory

2020-09-09 Thread root
Hello community,

here is the log from the commit of package tvm for openSUSE:Factory checked in 
at 2020-09-09 18:01:07

Comparing /work/SRC/openSUSE:Factory/tvm (Old)
 and  /work/SRC/openSUSE:Factory/.tvm.new.3399 (New)


Package is "tvm"

Wed Sep  9 18:01:07 2020 rev:2 rq:833203 version:0.6.1

Changes:

--- /work/SRC/openSUSE:Factory/tvm/tvm.changes  2020-09-04 11:12:04.179029456 
+0200
+++ /work/SRC/openSUSE:Factory/.tvm.new.3399/tvm.changes2020-09-09 
18:07:25.567497624 +0200
@@ -1,0 +2,47 @@
+Wed Sep  9 07:24:05 UTC 2020 - Tomáš Chvátal 
+
+- Fix typo
+
+---
+Tue Sep  8 15:46:48 UTC 2020 - Guillaume GARDET 
+
+- Exclude %arm %{ix86} as tests fail
+
+---
+Tue Sep  8 13:59:13 UTC 2020 - Guillaume GARDET 
+
+- Skip tests requiring opencl
+- Skip test requiring a specific arch
+
+---
+Tue Sep  8 08:21:36 UTC 2020 - Tomáš Chvátal 
+
+- Split cmake folder to not override it with python builds
+- Fix detection of this folder in the python modules:
+  * lib-finder-python-cmake.patch
+
+---
+Tue Sep  8 07:04:06 UTC 2020 - Tomáš Chvátal 
+
+- Add provides/obsoletes on TVM
+
+---
+Mon Sep  7 10:40:07 UTC 2020 - Guillaume GARDET 
+
+- Build fails on Tumbleweed with llvm10, so use llvm9 - boo#1176220
+
+---
+Mon Sep  7 09:40:47 UTC 2020 - Tomáš Chvátal 
+
+- Format with spec-cleaner
+- Expand properly the fdupes call
+- Fix headers install
+- Fix python pkg names
+- Fix python requires
+
+---
+Thu Sep  3 16:26:06 UTC 2020 - Guillaume GARDET 
+
+- Package nnvm and topi python packages
+
+---

New:

  lib-finder-python-cmake.patch



Other differences:
--
++ tvm.spec ++
--- /var/tmp/diff_new_pack.UdxYNk/_old  2020-09-09 18:07:26.667498627 +0200
+++ /var/tmp/diff_new_pack.UdxYNk/_new  2020-09-09 18:07:26.671498630 +0200
@@ -15,25 +15,16 @@
 # Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
+
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
-# Build python binding
-%bcond_without python
-
-
 %ifarch x86_64
 %bcond_without mkldnn
 %else
 %bcond_with mkldnn
 %endif
-
-# Build fails on TW with LLVM
-%if 0%{?suse_version} > 1500
-%bcond_with llvm
-%else
-%bcond_without llvm
-%endif
-
+# regular cmake builddir conflicts with the python singlespec
+%global __builddir build_cmake
 Name:   tvm
 Version:0.6.1
 Release:0
@@ -41,20 +32,25 @@
 License:Apache-2.0
 URL:https://tvm.apache.org/
 Source: 
https://github.com/apache/incubator-tvm/archive/v%{version}.tar.gz
+Patch0: lib-finder-python-cmake.patch
+BuildRequires:  %{python_module Cython}
+BuildRequires:  %{python_module attrs}
+BuildRequires:  %{python_module decorator}
+BuildRequires:  %{python_module numpy}
+BuildRequires:  %{python_module psutil}
+BuildRequires:  %{python_module pytest}
+BuildRequires:  %{python_module scipy}
+BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module tornado}
 BuildRequires:  cmake
 BuildRequires:  dlpack-devel
 BuildRequires:  dmlc-core-devel
 BuildRequires:  fdupes
 BuildRequires:  gcc-c++
 BuildRequires:  gtest
-%if %{with llvm}
-BuildRequires:  llvm-devel
-%endif
-%if %{with mkldnn}
-BuildRequires:  mkl-dnn-devel
-%endif
 #BuildRequires:  openblas-devel
 BuildRequires:  pkgconfig
+BuildRequires:  rang-devel
 BuildRequires:  spirv-headers
 BuildRequires:  spirv-tools
 BuildRequires:  spirv-tools-devel
@@ -62,24 +58,47 @@
 BuildRequires:  pkgconfig(OpenCL)
 BuildRequires:  pkgconfig(gl)
 BuildRequires:  pkgconfig(glfw3)
-BuildRequires:  rang-devel
-%if %{with python}
-BuildRequires:  %{python_module pytest}
-BuildRequires:  %{python_module numpy}
-BuildRequires:  %{python_module Cython}
-BuildRequires:  %{python_module decorator}
-BuildRequires:  %{python_module attrs}
-BuildRequires:  %{python_module psutil}
-BuildRequires:  %{python_module setuptools}
+Requires:   python-attrs
+Requires:   python-decorator
+Requires:   python-numpy
+Requires:   python-psutil
+# Tests are failing on 32-bit
+ExcludeArch:%{arm} %{ix86}
 %if 0%{?suse_version} > 1500
 BuildRequires:  xgboost
 %endif
-BuildRequires:  %{python_module scipy}
-BuildRequires:  %{python_module tornado}
+%if 0%{?suse_version} > 1500
+Requires: