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 2024-09-01 19:22:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-torch (Old)
 and      /work/SRC/openSUSE:Factory/.python-torch.new.2698 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-torch"

Sun Sep  1 19:22:16 2024 rev:2 rq:1198004 version:2.3.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-torch/python-torch.changes        
2024-07-25 16:21:31.845458761 +0200
+++ /work/SRC/openSUSE:Factory/.python-torch.new.2698/python-torch.changes      
2024-09-01 19:22:51.723540953 +0200
@@ -1,0 +2,10 @@
+Thu Aug 29 04:28:03 UTC 2024 - Guang Yee <g...@suse.com>
+
+- Enable sle15_python_module_pythons.
+- GCC 9.3 or newer is required, regardless if CUDA is enabled.
+  See https://github.com/pytorch/pytorch/blob/v2.3.1/CMakeLists.txt#L48
+  Therefore, for SLE15 we went with GCC 11 as it seems to be the most
+  common one.
+- Use %gcc_version macro for Tumbleweed.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-torch.spec ++++++
--- /var/tmp/diff_new_pack.nbbMWU/_old  2024-09-01 19:22:52.891588774 +0200
+++ /var/tmp/diff_new_pack.nbbMWU/_new  2024-09-01 19:22:52.895588938 +0200
@@ -75,6 +75,7 @@
 %define sleef_version e0a003e
 %define tensorpipe 52791a2
 
+%{?sle15_python_module_pythons}
 Name:           python-torch%{?pkg_suffix}
 Version:        2.3.1
 Release:        0
@@ -147,19 +148,17 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module typing_extensions}
 BuildRequires:  %{python_module typing}
-%if 0%{?suse_version} <= 1500
 # Python 3.6 still need dataclasses
-BuildRequires:  %{python_module dataclasses}
-%ifarch aarch64
-# XNNPACK uses +dotprod modifier which requires GCC8+
-BuildRequires:  gcc8
-BuildRequires:  gcc8-c++
-%endif
-%endif
+BuildRequires:  %{python_module dataclasses if %python-base < 3.7}
 BuildRequires:  cmake >= 3.5
 BuildRequires:  eigen3-devel
 BuildRequires:  fdupes
+%if 0%{?suse_version} > 1500
 BuildRequires:  gcc-c++
+%else
+BuildRequires:  gcc11
+BuildRequires:  gcc11-c++
+%endif
 BuildRequires:  glog-devel
 BuildRequires:  gtest
 BuildRequires:  leveldb-devel
@@ -182,10 +181,6 @@
 BuildRequires:  cuda-misc-headers-%cudaver
 BuildRequires:  cuda-nsight-%cudaver
 BuildRequires:  cuda-toolkit-%cudaver
-%if 0%{?suse_version} > 1500
-BuildRequires:  gcc7
-BuildRequires:  gcc7-c++
-%endif
 BuildRequires:  libcudnn7-devel
 BuildRequires:  libnccl-devel
 %endif
@@ -253,7 +248,6 @@
 Conflicts:      %{python_module torch-converters}
 %endif
 
-
 %description converters
 Converter from caffe2 to onnx and from caffe2 to onnx formated files.
 
@@ -332,20 +326,17 @@
   export C_INCLUDE_PATH="/usr/local/cuda-10.1/include" \
   export LD_LIBRARY_PATH="/usr/local/cuda-10.1/lib" \
   export NCCL_INCLUDE_DIR="/usr/include/" \
-  %if 0%{?suse_version} > 1500  \
-  export CC=gcc-7 \
-  export CXX=g++-7 \
-  %endif \
   %else \
-  %if 0%{?suse_version} <= 1500 \
-  %ifarch aarch64 \
-  export CC=gcc-8 \
-  export CXX=g++-8 \
-  %endif \
-  %endif \
   export USE_CUDA=OFF \
   export USE_CUDNN=OFF \
   %endif \
+  %if 0%{?suse_version} > 1500 \
+  export CC=gcc-%gcc_version \
+  export CXX=g++-%gcc_version \
+  %else \
+  export CC=gcc-11 \
+  export CXX=g++-11 \
+  %endif \
   export USE_KINETO=OFF \
   export USE_LEVELDB=ON \
   export USE_LMDB=ON \

Reply via email to