Date: Sunday, April 26, 2020 @ 18:28:00 Author: svenstaro Revision: 621663
upgpkg: python-pytorch 1.5.0-1 Modified: python-pytorch/trunk/PKGBUILD ----------+ PKGBUILD | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-04-26 18:19:50 UTC (rev 621662) +++ PKGBUILD 2020-04-26 18:28:00 UTC (rev 621663) @@ -4,8 +4,8 @@ pkgbase=python-pytorch pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") _pkgname="pytorch" -pkgver=1.4.1 -pkgrel=4 +pkgver=1.5.0 +pkgrel=1 pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" arch=('x86_64') url="https://pytorch.org" @@ -15,6 +15,7 @@ makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git' 'magma' 'ninja' 'pkgconfig' 'doxygen') source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver" + https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/35359.patch fix_include_system.patch nccl_version.patch torch_cuda_api.patch @@ -21,6 +22,7 @@ https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/30332.patch https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/30333.patch) sha256sums=('SKIP' + '1a67a90174276e9462e632df1bbb2e9fd7890f08da45d831edf1610c0e3e3c72' '147bdaeac8ec46ea46382e6146878bd8f8d51e05d5bd6f930dfd8e2b520859b9' '1a276bd827a0c76dab908cbc6605fa4c9fc2cc2b9431b6578a41133ae27dba2b' '8965f003f5812c5ab1bd27ab66d916560ea4a644364727b9755dc0dea752ad77' @@ -41,8 +43,11 @@ # It will result in the same package, don't worry. git submodule update --init --recursive + # https://github.com/pytorch/pytorch/pull/35359 + patch -Np1 -i "${srcdir}/35359.patch" + # https://github.com/pytorch/pytorch/issues/26555 - sed -i 's#^ ${CMAKE_CURRENT_SOURCE_DIR}/tensor_iterator_test.cpp##g' aten/src/ATen/test/CMakeLists.txt + # sed -i 's#^ ${CMAKE_CURRENT_SOURCE_DIR}/tensor_iterator_test.cpp##g' aten/src/ATen/test/CMakeLists.txt # https://bugs.archlinux.org/task/64981 patch -N torch/utils/cpp_extension.py "${srcdir}"/fix_include_system.patch @@ -51,14 +56,14 @@ patch -Np1 -i "${srcdir}"/nccl_version.patch # correctly export torch cuda api for nccl runtime error - patch -Np1 -i "${srcdir}"/torch_cuda_api.patch + # patch -Np1 -i "${srcdir}"/torch_cuda_api.patch # https://github.com/pytorch/pytorch/issues/32277 - patch -Np1 -i "$srcdir"/30332.patch - patch -Np1 -i "$srcdir"/30333.patch + # patch -Np1 -i "$srcdir"/30332.patch + # patch -Np1 -i "$srcdir"/30333.patch # remove local nccl - rm -rf third_party/nccl/nccl + # rm -rf third_party/nccl/nccl cd ..