endif()
endforeach(flag_var)
- foreach(flag_var
+ foreach(flag_var
CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL)
if(${flag_var} MATCHES "/Z[iI7]")
Name: caffe2
Description: caffe2 static library
-Version: 1.1.0
-Libs: -L${libdir} -L${sharedlibdir} -lc10 -lcaffe2 -ltorch
+Version: 1.6.0-rc1
+Libs: -L${libdir} -L${sharedlibdir} -lc10 -ltorch -ltorch_cpu
Cflags: -I${includedir}/torch
# 3. If MSVC_Z7_OVERRIDE is ON, then /Zi and /ZI will be replaced with /Z7
# for Debug and RelWithDebInfo builds
if(MSVC)
- foreach(flag_var
+ foreach(flag_var
CMAKE_C_FLAGS CMAKE_C_FLAGS_RELEASE CMAKE_C_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_RELEASE CMAKE_CXX_FLAGS_MINSIZEREL)
if(${flag_var} MATCHES "/Z[iI7]")
# These should fill in the rest of the variables, like versions, but resepct
# the variables we set above
- set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION} 3.8 3.7 3.6 3.5)
- find_package(PythonInterp 3.0)
- find_package(PythonLibs 3.0)
+ set(Python_ADDITIONAL_VERSIONS ${PYTHON_VERSION} 3.8 3.7 3.6)
+ find_package(PythonInterp 3.6 REQUIRED)
+ find_package(PythonLibs 3.6)
if(${PYTHONLIBS_VERSION_STRING} VERSION_LESS 3)
message(FATAL_ERROR
+pytorch (1.6.0-rc1) xenial; urgency=medium
+
+ * Version update
+
+ -- Parichay Kapoor <pk.kapoor@samsung.com> Tue, 14 Jul 2020 19:40:34 +0900
+
pytorch (1.3.1) xenial; urgency=medium
* Version updates (version number was incorrectly written previously).
Section: devel
Homepage: https://pytorch.org/
Priority: optional
-Standards-Version: 1.1.0
+Standards-Version: 1.6.0-rc1
Maintainer: Parichay Kapoor <pk.kapoor@samsung.com>
Build-Depends:
cmake,
git,
libasio-dev,
libblas-dev | libblas.so,
- python,
- python-yaml,
python3-all,
python3-all-dev,
python3-cffi,
Architecture: any
Multi-Arch: foreign
Depends:
- python3 (>= 3.5),
+ python3 (>= 3.6),
python3-cffi,
python3-numpy,
${misc:Depends},
#!/usr/bin/make -f
export PYBUILD_NAME=pytorch
export PYBUILD_DISABLE_python2=1 # No more Python2 Packages
-export USE_FBGEMM=0
-export BUILD_TEST=0
-export BUILD_BINARY=1
-export NO_CUDA=1
export PYBUILD_DISABLE=test
+
export DEB_BUILD_OPTIONS+=nocheck
export DEB_BUILD_OPTIONS+=noddebs
+export USE_FBGEMM=0
+export USE_CUDA=0
+export USE_CUDNN=0
+export USE_NUMPY=0
+export USE_NCCL=0
+export BUILD_DOCS=0
+export BUILD_TEST=0
+# Enable necessary items
+export BUILD_CAFFE2_OPS=1
+export BUILD_BINARY=1
+
name = ${PYBUILD_NAME}
topdir = $(shell pwd)
buildroot = ${topdir}/debian/tmp
THP25=QNNPACK.tar.gz
THP26=neon2sse.tar.gz
THP27=fbgemm.tar.gz
-THP28=foxi.tar.gz
+THP28=fmt.tar.gz
+THP29=miniz-2.0.8.tar.gz
+THP30=tbb.tar.gz
+THP31=tensorpipe.tar.gz
+THP32=XNNPACK.tar.gz
+THP33=foxi.tar.gz
%:
dh $@ --with python3 --buildsystem=pybuild
tar -xf ${packagingdir}/${THP26} -C ${topdir}/third_party/
tar -xf ${packagingdir}/${THP27} -C ${topdir}/third_party/
tar -xf ${packagingdir}/${THP28} -C ${topdir}/third_party/
+ tar -xf ${packagingdir}/${THP29} -C ${topdir}/third_party/
+ tar -xf ${packagingdir}/${THP30} -C ${topdir}/third_party/
+ tar -xf ${packagingdir}/${THP31} -C ${topdir}/third_party/
+ tar -xf ${packagingdir}/${THP32} -C ${topdir}/third_party/
+ tar -xf ${packagingdir}/${THP33} -C ${topdir}/third_party/
dh_testdir
dh_auto_configure
Name: pytorch
Summary: PyTorch
-Version: 1.3.1
+Version: 1.6.0_rc1
Release: 0
License: BSD-3-Clause and Apache-2.0
Provides: caffe2 = %{version}-%{release}
Source10025: QNNPACK.tar.gz
Source10026: neon2sse.tar.gz
Source10027: fbgemm.tar.gz
-Source10028: foxi.tar.gz
-
+Source10028: fmt.tar.gz
+Source10029: miniz-2.0.8.tar.gz
+Source10030: tbb.tar.gz
+Source10031: tensorpipe.tar.gz
+Source10032: XNNPACK.tar.gz
+Source10033: foxi.tar.gz
BuildRequires: cmake
BuildRequires: openblas-devel
BuildRequires: python3
BuildRequires: python3-PyYAML
BuildRequires: protobuf-devel
-BuildRequires: python3-PyYAML
BuildRequires: libyaml-devel
# Appears to support 64bit only
tar -xf %SOURCE10026 -C third_party/
tar -xf %SOURCE10027 -C third_party/
tar -xf %SOURCE10028 -C third_party/
-
+tar -xf %SOURCE10029 -C third_party/
+tar -xf %SOURCE10030 -C third_party/
+tar -xf %SOURCE10031 -C third_party/
+tar -xf %SOURCE10032 -C third_party/
+tar -xf %SOURCE10033 -C third_party/
%build
-export USE_CUDA=0
-export NO_CUDA=1
-export USE_FBGEMM=0
export PYTHON_EXECUTABLE=/usr/bin/python3
mkdir -p build
pushd build
alias python=python3
-%cmake .. -DATEN_NO_TEST=ON -DBUILD_BINARY=ON -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILD_PYTHON=OFF -DUSE_CUDA=OFF -DUSE_MPI=OFF -DUSE_NCCL=OFF -DUSE_METAL=OFF -DUSE_NUMA=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3
+%cmake .. -DATEN_NO_TEST=ON -DBUILD_BINARY=ON -DBUILD_CUSTOM_PROTOBUF=OFF -DBUILD_PYTHON=OFF -DUSE_CUDA=OFF -DUSE_MPI=OFF -DUSE_NCCL=OFF -DUSE_METAL=OFF -DUSE_NUMA=OFF -DPYTHON_EXECUTABLE=/usr/bin/python3 -DUSE_NUMPY=OFF -DUSE_MKLDNN=OFF -DUSE_FBGEMM=OFF -DUSE_DISTRIBUTED=OFF
make %{?_smp_mflags}
popd
install -m0644 -p caffe2.pc %{buildroot}%{_libdir}/pkgconfig/
install -m0644 -p pytorch.pc %{buildroot}%{_libdir}/pkgconfig/
-## CMAKE script of pytorch installs headers incorrectly
-pushd %{buildroot}
-mv torch %{buildroot}%{_includedir}
-popd
-
%post -p %{_sbindir}/ldconfig
%postun -p %{_sbindir}/ldconfig
Name: pytorch
Description: pytorch static library
-Version: 1.1.0
-Libs: -L${libdir} -L${sharedlibdir} -lc10 -lcaffe2 -ltorch
+Version: 1.6.0-rc1
+Libs: -L${libdir} -L${sharedlibdir} -lc10 -ltorch -ltorch_cpu
Cflags: -I${includedir}/torch