- moved libraries to seperate package, unfortunatley they have no

version, so these are plain .so files
- THNN.h and THCUNN.h are interpred by the python and can so not
  be part of the devel package

OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-torch?expand=0&rev=1
This commit is contained in:
Christian Goll 2019-08-28 11:58:32 +00:00 committed by Git OBS Bridge
commit ba0a6629a5
22 changed files with 517 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0684fafb0e9c43ae080a218c02360d13880a0dff39af70ac02c59c2298854314
size 130389

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3e71681e0a67cd28552aa0bbb78ec6a6bd238216df15336dc1326280f7958de2
size 71108

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:07625551202a1f35fe5e826669ad495962b26f6a139290e90b321c5996f002ef
size 8567

10
_constraints Normal file
View File

@ -0,0 +1,10 @@
<constraints>
<hardware>
<memory>
<size unit="G">8</size>
</memory>
<disk>
<size unit="G">8</size>
</disk>
</hardware>
</constraints>

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b84c49b4bdc12b0e8f1bff365dcefd50e5a2a25eeef8c928aeb2dab9fda4d599
size 3488961

53
fix-build-options.patch Normal file
View File

@ -0,0 +1,53 @@
From 80993cc82764264b3809847029a2d3c563148590 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Wed, 12 Jun 2019 09:50:22 +0200
Subject: [PATCH 1/2] fix build options
---
CMakeLists.txt | 2 +-
setup.py | 2 --
tools/build_pytorch_libs.py | 2 +-
3 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 71f8b69..1585d77 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,7 +67,7 @@ option(BUILD_ATEN_MOBILE "Build ATen for Android and iOS" OFF)
option(BUILD_ATEN_ONLY "Build only a subset focused on ATen only" OFF)
option(BUILD_BINARY "Build C++ binaries" OFF)
option(BUILD_DOCS "Build Caffe2 documentation" OFF)
-option(BUILD_CUSTOM_PROTOBUF "Build and use Caffe2's own protobuf under third_party" ON)
+option(BUILD_CUSTOM_PROTOBUF "Build and use Caffe2's own protobuf under third_party" OFF)
option(BUILD_PYTHON "Build Python binaries" ON)
option(BUILD_CAFFE2_OPS "Build Caffe2 operators" ON)
option(BUILD_SHARED_LIBS "Build libcaffe2.so" ON)
diff --git a/setup.py b/setup.py
index b1faf3a..9536549 100644
--- a/setup.py
+++ b/setup.py
@@ -272,8 +272,6 @@ def build_deps():
check_file(os.path.join(third_party_path, 'cpuinfo', 'CMakeLists.txt'))
check_file(os.path.join(third_party_path, 'onnx', 'CMakeLists.txt'))
check_file(os.path.join(third_party_path, 'foxi', 'CMakeLists.txt'))
- check_file(os.path.join(third_party_path, 'QNNPACK', 'CMakeLists.txt'))
- check_file(os.path.join(third_party_path, 'fbgemm', 'CMakeLists.txt'))
check_pydep('yaml', 'pyyaml')
check_pydep('typing', 'typing')
diff --git a/tools/build_pytorch_libs.py b/tools/build_pytorch_libs.py
index 432fed3..257e9f2 100644
--- a/tools/build_pytorch_libs.py
+++ b/tools/build_pytorch_libs.py
@@ -190,7 +190,7 @@ def run_cmake(version,
USE_QNNPACK=USE_QNNPACK,
USE_TENSORRT=check_env_flag('USE_TENSORRT'),
USE_FFMPEG=check_env_flag('USE_FFMPEG'),
- USE_SYSTEM_EIGEN_INSTALL="OFF",
+ USE_SYSTEM_EIGEN_INSTALL=True,
USE_MKLDNN=USE_MKLDNN,
USE_NCCL=USE_NCCL,
NCCL_EXTERNAL=USE_NCCL,
--
2.16.4

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b444b4428adc4befc777d9a1af2fd9bbf5f5a2339913668357196c5133e9cc7b
size 27632

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e12e096e986221d96d55185e870397b3717b625d6c5d155fbd9a7be314bed06a
size 825494

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e98a4fdb6e27add72b4bb0e63a5ed20a9271139c3d0ccc2c15c502e3366bca3
size 163744

26
honor-PSIMD-env.patch Normal file
View File

@ -0,0 +1,26 @@
From 72e66f5fa324eb2b5a38e3c69de30cc3d7a128fe Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Wed, 12 Jun 2019 11:10:04 +0200
Subject: [PATCH 2/2] honor PSIMD env
---
tools/build_pytorch_libs.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/build_pytorch_libs.py b/tools/build_pytorch_libs.py
index 257e9f2..3668b91 100644
--- a/tools/build_pytorch_libs.py
+++ b/tools/build_pytorch_libs.py
@@ -206,7 +206,8 @@ def run_cmake(version,
USE_REDIS=os.getenv('USE_REDIS'),
USE_GLOG=os.getenv('USE_GLOG'),
USE_GFLAGS=os.getenv('USE_GFLAGS'),
- WERROR=os.getenv('WERROR'))
+ WERROR=os.getenv('WERROR'),
+ PSIMD_SOURCE_DIR=os.getenv('PSIMD_SOURCE_DIR'))
if USE_GLOO_IBVERBS:
cmake_defines(cmake_args, USE_IBVERBS="1", USE_GLOO_IBVERBS="1")
--
2.16.4

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37b42dada8b6ef7b56a2099f71257ea9717cda86c149db80c24dc006597251fa
size 2427576

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:afd27417c6df1c85f79a68361055dd3adc292174913c39c1f58b698b9cfd7926
size 6182

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:90ab4f60ae0e99c0172dd5201dccc6de6c8f384a21b3d959588f4c1e00beec0f
size 12775

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1a1ccf8779332a7d6d0db9034d42df188867cbaf52eb71d74451f79aa8ce2040
size 559554

56
python-torch.changes Normal file
View File

@ -0,0 +1,56 @@
-------------------------------------------------------------------
Wed Jun 12 11:17:34 UTC 2019 - Christian Goll <cgoll@suse.com>
- Updated to stable version 1.1.0, which needed also updates of
following dependend sources:
* onnx-1.4.1.tar.gz ->
onnx-22662bfd4dcc6baebf29e3b823a051676f991001.tar.gz
- Removed following sources:
* FBGEMM-f65f0ebe54f0512d8f42ee10025b596e3f42e0b8.tar.gz
- Added following sources:
* foxi-8f74bc4df3a4cfc69b1a3eadf62aa29d9961c72d.tar.gz
- Changed patch
* fix-build-options.patch to work with new buid system and
exclude FBGEMM
- Added patch:
* honor-PSIMD-env.patch, which makes depend sources of pytorch
to use the source of psimd
-------------------------------------------------------------------
Tue Mar 26 09:33:11 UTC 2019 - Christian Goll <cgoll@suse.com>
- Inital commit of pytorch/caffe2 which is an opensource
machineleraning platform. This is the stable release 1.0.1
including like other tools a lot of third party sources,
which could not be used from the base system due to messy
build system. Additional sources are
* gloo, a communitcation library for GPUs as
gloo-670b4d4aa46886cc66874e2a4dc846f5cfc2a285.tar.gz
* fbgemm, a low precission, high peformance matrix lib
FBGEMM-f65f0ebe54f0512d8f42ee10025b596e3f42e0b8.tar.gz
* cpuinfo, a cross platform cpu information tool
cpuinfo-89fe1695edf9ee14c22f815f24bac45577a4f135.tar.gz
* sleef, a function for elementary functions
sleef-191f655caa25526ae226cf88dd2529265176014a.tar.gz
* pytbind11, which exposes C/C++ headers to pythob, but
the source code of this library is deeply integrated into
pytorch, so we need
pybind11-25abf7efba0b2990f5a6dfb0a31bc65c0f2f4d17.tar.gz
* onnx, which is an format for exchaning neural networks as
onnx-1.4.1.tar.gz
* pthreadpool, a pthread based thread tool implementation, which
can be used when omp is not available
pthreadpool-13da0b4c21d17f94150713366420baaf1b5a46f4.tar.gz
* FXdiv, a Header-only library for division via fixed-point
multiplication by inverse, which has no stable API atm, so
FXdiv-b742d1143724d646cd0f914646f1240eacf5bd73.tar.gz
* psimd, portable 128-bit SIMD intrinsics
psimd-90a938f30ba414ada2f4b00674ee9631d7d85e19.tar.gz
* fp16, a numeric conversion library
FP16-febbb1c163726b5db24bed55cc9dc42529068997.tar.gz
* gemmlowp, self-contained low-precision GEMM library as
gemmlowp-8416bab644641a5c0a81ecf91a5cda804af0aee1.tar.gz
* fix-build-options.patch, which points pytorch to system libs
* removed-peachpy-depedency.patch, which forces to use system
peachpy

240
python-torch.spec Normal file
View File

@ -0,0 +1,240 @@
#
# spec file for package pytorch
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define srcname pytorch
%define skip_python2 1
Name: torch
Version: 1.1.0
Release: 0
Summary: Deep learning framework aka pytorch/Caffe2
License: BSD-2-Clause and BSD-3-Clause and MIT and Zlib and BSL-1.0 and Apache-2.0
Group: Development/Languages/Python
Url: https://pytorch.org
Source0: https://github.com/pytorch/pytorch/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
#License10: BSD-3-Clause
Source10: https://github.com/facebookincubator/gloo/archive/670b4d4aa46886cc66874e2a4dc846f5cfc2a285.tar.gz#/gloo-670b4d4aa46886cc66874e2a4dc846f5cfc2a285.tar.gz
#License12: BSD-2-Clause
Source12: https://github.com/pytorch/cpuinfo/archive/89fe1695edf9ee14c22f815f24bac45577a4f135.tar.gz#/cpuinfo-89fe1695edf9ee14c22f815f24bac45577a4f135.tar.gz
#License13: BSL-1.0
Source13: https://github.com/zdevito/sleef/archive/191f655caa25526ae226cf88dd2529265176014a.tar.gz#/sleef-191f655caa25526ae226cf88dd2529265176014a.tar.gz
#License14: BSD-3-Clause
Source14: https://github.com/pybind/pybind11/archive/25abf7efba0b2990f5a6dfb0a31bc65c0f2f4d17.tar.gz#/pybind11-25abf7efba0b2990f5a6dfb0a31bc65c0f2f4d17.tar.gz
# License15: MIT
Source15: https://github.com/onnx/onnx/archive/22662bfd4dcc6baebf29e3b823a051676f991001.tar.gz#/onnx-22662bfd4dcc6baebf29e3b823a051676f991001.tar.gz
#License16: BSD-2-Clause
Source16: https://github.com/Maratyszcza/pthreadpool/archive/13da0b4c21d17f94150713366420baaf1b5a46f4.tar.gz#/pthreadpool-13da0b4c21d17f94150713366420baaf1b5a46f4.tar.gz
# License17: MIT
Source17: https://github.com/Maratyszcza/FXdiv/archive/b742d1143724d646cd0f914646f1240eacf5bd73.tar.gz#/FXdiv-b742d1143724d646cd0f914646f1240eacf5bd73.tar.gz
# License18: MIT
Source18: https://github.com/Maratyszcza/psimd/archive/90a938f30ba414ada2f4b00674ee9631d7d85e19.tar.gz#/psimd-90a938f30ba414ada2f4b00674ee9631d7d85e19.tar.gz
# License19: MIT
Source19: https://github.com/Maratyszcza/FP16/archive/febbb1c163726b5db24bed55cc9dc42529068997.tar.gz#/FP16-febbb1c163726b5db24bed55cc9dc42529068997.tar.gz
#License20: Apache-2.0
Source20: https://github.com/google/gemmlowp/archive/8416bab644641a5c0a81ecf91a5cda804af0aee1.tar.gz#/gemmlowp-8416bab644641a5c0a81ecf91a5cda804af0aee1.tar.gz
#License21: MIT
Source21: https://github.com/houseroad/foxi/archive/8f74bc4df3a4cfc69b1a3eadf62aa29d9961c72d.tar.gz#/foxi-8f74bc4df3a4cfc69b1a3eadf62aa29d9961c72d.tar.gz
Patch0: fix-build-options.patch
Patch1: removed-peachpy-depedency.patch
Patch2: honor-PSIMD-env.patch
Patch3: removed-some-tests.patch
BuildRequires: %{python_module devel}
BuildRequires: %{pythons}
BuildRequires: python-py-cpuinfo
BuildRequires: python-pybind11-devel
BuildRequires: %{python_module PeachPy}
BuildRequires: %{python_module opcodes}
BuildRequires: %{python_module PyYAML}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing-extensions}
BuildRequires: %{python_module typing}
BuildRequires: %{python_module numpy-devel}
BuildRequires: cmake
BuildRequires: eigen3-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: glog-devel
BuildRequires: gtest
BuildRequires: libopenblas_pthreads-devel
BuildRequires: libnuma-devel
BuildRequires: lmdb-devel
BuildRequires: leveldb-devel
BuildRequires: ninja
BuildRequires: memory-constraints
BuildRequires: openblas-devel
BuildRequires: protobuf-c
BuildRequires: protobuf-devel
BuildRequires: snappy-devel
BuildRequires: %{python_module future}
BuildRequires: %{python_module hypothesis}
BuildRequires: %{python_module protobuf}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module rpm-macros}
BuildRequires: %{python_module leveldb}
BuildRequires: %{python_module Gloo}
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: python-protobuf
Requires: python-six
Requires: python-future
Requires: python-numpy
Requires: python-leveldb
Provides: %{python_module caffe2 = %version}
Provides: %{python_module pytorch = %version}
%python_subpackages
%description
PyTorch enables fast, flexible experimentation and efficient production through
a hybrid front-end, distributed training, and ecosystem of tools and libraries.
The library is developed by Facebook and other groups.
PyTorch provides two high-level features:
* Tensor computing (like NumPy) with strong acceleration via graphics
* processing units (GPU) Deep neural networks built on a tape-based autodiff
system
%package devel
Summary: Headers for C/C++, cmake build description and libraries needed for development
Group: Development/Languages/Python
Requires: %{name} = %{version}
%description devel
Although the Python interface is more polished and the primary focus of
development, PyTorch also has a C++ frontend. This package contains the header
to access the C/C++ interface.
%package -n %{name}-converters
Summary: Converters for onnx and caffe2
Group: Development/Languages/Python
%description -n %{name}-converters
Converter from caffe2 to onnx and from caffe2 to onnx formated files.
%package -n %{name}-examples
Summary: Examples which can be used for testing
Group: Development/Languages/Python
BuildArch: noarch
%description -n %{name}-examples
This example files can be used to start an own pytorch/caffe2 project.
%package -n libtorch
Summary: Library which used by %{name}
Group: Development/Libraries/Python
%description -n libtorch
Library which is used by %{name}
%prep
%define make_depend_src() test -e $(basename %1| sed 's/-.*//') && rmdir %{?2}%{!?2:$(basename %1| sed 's/-.*//')}; tar xzf %1; mv $(basename %1 | sed 's/\.tar\.gz//' ) %{?2}%{!?2:$(basename %1| sed 's/-.*//')}
%define make_depend_src_uppercase() rmdir -p $(basename %1| sed 's/-.*//'| tr '[:upper:]' '[:lower:]'); tar xzf %1; mv $(basename %1 | cut -f 1 -d '.' ) $(basename %1| sed 's/-.*//'| tr '[:upper:]' '[:lower:]')
%setup -q -n %{srcname}-%{version}
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
%patch3 -p 1
cd third_party
rmdir python-peachpy/
%make_depend_src %{SOURCE10}
%make_depend_src %{SOURCE12}
%make_depend_src %{SOURCE13}
%make_depend_src %{SOURCE14}
%make_depend_src %{SOURCE15}
%make_depend_src %{SOURCE16}
%make_depend_src %{SOURCE17}
%make_depend_src %{SOURCE18}
%make_depend_src %{SOURCE19}
%make_depend_src %{SOURCE20} gemmlowp/gemmlowp
%make_depend_src %{SOURCE21}
%build
export NO_NNPACK=1
export NO_QNNPACK=1
export NO_CUDNN=1
#export NO_DISTRIBUTED=1
export NO_MKLDNN=1
export NO_TEST=1
export USE_LEVELDB=ON
export USE_LMDB=ON
export BUILD_CUSTOM_PROTOBUF=OFF
export USE_FBGEMM=0
export PSIMD_SOURCE_DIR=%{_topdir}/BUILD/%{srcname}-%{version}/third_party/psimd/
%limit_build -m 2000
export MAX_JOBS=%{?jobs}
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitearch}
install -m 644 -D caffe2/python/examples/* -t %{buildroot}%{_docdir}/%{name}/
install -m 644 -D %{buildroot}%{python_sitearch}/torch/lib/* %{buildroot}/%{_libdir}
rm -r %{buildroot}%{python_sitearch}/torch/lib
cd %{buildroot}/%{_libdir}
rm libtorch.so
ln -s libtorch.so.1 libtorch.so
cd -
for file in $(find %{buildroot}%{python_sitearch} -type f -name \*.py -perm 644 -size +1b); do
%{__grep} '/bin/env ' $file && sed -i 's@/bin/env python@/bin/python@' $file && chmod 755 $file
done
%check
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test/run_test.py
%post -n libtorch -p /sbin/ldconfig
%postun -n libtorch -p /sbin/ldconfig
%files %{python_files}
%defattr(-,root,root)
%doc README.md NOTICE
%license LICENSE
%{python_sitearch}/torch/
%{python_sitearch}/caffe2/
%{python_sitearch}/torch-*.egg-info/
# excluding nearly all headersm except THNN.h and THCUNN.h as they
# are read in by the python init
%exclude %{python_sitearch}/torch/share
%exclude %{python_sitearch}/torch/include/TH
%exclude %{python_sitearch}/torch/include/c10
%exclude %{python_sitearch}/torch/include/ATen
%exclude %{python_sitearch}/torch/include/pybind11
%exclude %{python_sitearch}/torch/include/caffe2
%exclude %{python_sitearch}/torch/include/torch/csrc
%exclude %{python_sitearch}/torch/include/torch/*.h
%files %{python_files devel}
%{python_sitearch}/torch/share
%{python_sitearch}/torch/include/TH/
%{python_sitearch}/torch/include/c10
%{python_sitearch}/torch/include/ATen
%{python_sitearch}/torch/include/pybind11
%{python_sitearch}/torch/include/caffe2
%{python_sitearch}/torch/include/torch/csrc
%{python_sitearch}/torch/include/torch/*.h
%files -n %{name}-converters
%{_bindir}/convert-caffe2-to-onnx
%{_bindir}/convert-onnx-to-caffe2
%files -n %{name}-examples
%{_docdir}/%{name}
%files -n libtorch
%{_libdir}/*.so*
%changelog

3
pytorch-1.1.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:15f1af53ee5cac59203ec2ab42bda95e9ae574acfcc84c35a36e29290a22b2ad
size 6991706

View File

@ -0,0 +1,24 @@
From f8d67af7a466d878581579af5a77848e552ffdfd Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Wed, 3 Apr 2019 12:04:10 +0200
Subject: [PATCH] removed peachpy depedency
---
cmake/External/nnpack.cmake | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmake/External/nnpack.cmake b/cmake/External/nnpack.cmake
index 2cd9efc..6e16257 100644
--- a/cmake/External/nnpack.cmake
+++ b/cmake/External/nnpack.cmake
@@ -47,7 +47,6 @@ if (ANDROID OR IOS OR ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR ${CMAKE_SYSTEM_NA
# Directories for NNPACK dependencies submoduled in Caffe2
set(PYTHON_SIX_SOURCE_DIR "${CAFFE2_THIRD_PARTY_ROOT}/python-six" CACHE STRING "six (Python package) source directory")
set(PYTHON_ENUM_SOURCE_DIR "${CAFFE2_THIRD_PARTY_ROOT}/python-enum" CACHE STRING "enum34 (Python package) source directory")
- set(PYTHON_PEACHPY_SOURCE_DIR "${CAFFE2_THIRD_PARTY_ROOT}/python-peachpy" CACHE STRING "PeachPy (Python package) source directory")
if (NOT DEFINED CPUINFO_SOURCE_DIR)
set(CPUINFO_SOURCE_DIR "${CAFFE2_THIRD_PARTY_ROOT}/cpuinfo" CACHE STRING "cpuinfo source directory")
endif()
--
2.16.4

45
removed-some-tests.patch Normal file
View File

@ -0,0 +1,45 @@
From 4621345f5c512eb5ddc98d370a0ba99184fcf112 Mon Sep 17 00:00:00 2001
From: Christian Goll <cgoll@suse.de>
Date: Thu, 13 Jun 2019 14:43:21 +0200
Subject: [PATCH 3/3] removed some tests
---
test/run_test.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/test/run_test.py b/test/run_test.py
index fd53902..19b7727 100644
--- a/test/run_test.py
+++ b/test/run_test.py
@@ -19,28 +19,21 @@ import torch.distributed as dist
TESTS = [
'autograd',
- 'cpp_extensions',
'c10d',
- 'cuda',
- 'cuda_primary_ctx',
- 'dataloader',
'distributed',
'distributions',
'docs_coverage',
'expecttest',
'indexing',
- 'indexing_cuda',
'jit',
'mkldnn',
'multiprocessing',
'multiprocessing_spawn',
'nccl',
- 'nn',
'numba_integration',
'optim',
'quantized',
'sparse',
- 'thd_distributed',
'torch',
'type_info',
'type_hints',
--
2.16.4

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:61a7a845468703660d86cf7e979f2d7630a6e78b308514c41569dce451a6bfce
size 677112