[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Sunday, January 26, 2020 @ 05:00:42 Author: svenstaro Revision: 555636 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 555635, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/fix_include_system.patch (from rev 555635, python-pytorch/trunk/fix_include_system.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/fix_include_system.patch --+ PKGBUILD | 344 ++--- fix_include_system.patch | 22 +- 2 files changed, 183 insertions(+), 183 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-01-26 05:00:32 UTC (rev 555635) +++ PKGBUILD2020-01-26 05:00:42 UTC (rev 555636) @@ -1,172 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") -_pkgname="pytorch" -pkgver=1.4.0 -pkgrel=2 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf' 'ffmpeg' 'python-future' 'qt5-base') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git' 'magma') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver; -fix_include_system.patch - https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/30332.patch - https://patch-diff.githubusercontent.com/raw/pytorch/pytorch/pull/30333.patch) -sha256sums=('SKIP' -'147bdaeac8ec46ea46382e6146878bd8f8d51e05d5bd6f930dfd8e2b520859b9' -'3170551116798dc496636a87f00b86c6463895bb6d174df616c5224adfb74ff3' -'c8c305c892be85c47872ae1f1ecd5b3b8af12876fbfe3641045c8c839e5126da') - -get_pyver () { - python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - # 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 - - # https://bugs.archlinux.org/task/64981 - patch -N torch/utils/cpp_extension.py "${srcdir}"/fix_include_system.patch - - # https://github.com/pytorch/pytorch/issues/32277 - patch -Np1 -i "$srcdir"/30332.patch - patch -Np1 -i "$srcdir"/30333.patch - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt-cuda" - - export VERBOSE=1 - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - - # Check tools/setup_helpers/cmake.py, setup.py and CMakeLists.txt for a list of flags that can be set via env vars. - export USE_MKLDNN=OFF - # export BUILD_CUSTOM_PROTOBUF=OFF - # export BUILD_SHARED_LIBS=OFF - export USE_FFMPEG=ON - export USE_GFLAGS=ON - export USE_GLOG=ON - export BUILD_BINARY=ON - export USE_OPENCV=ON - export USE_SYSTEM_NCCL=ON - export CUDAHOSTCXX=g++-8 - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.0+PTX;6.1;6.1+PTX;6.2;6.2+PTX;7.0;7.0+PTX;7.2;7.2+PTX;7.5;7.5+PTX" -} - -build() { - echo "Building without cuda and without non-x86-64 optimizations" - export USE_CUDA=0 - export USE_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build - - - echo "Building without cuda and with non-x86-64 optimizations" - export USE_CUDA=0 - export USE_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}-opt" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export USE_CUDA=1 - export USE_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - python setup.py build - - - echo "Building with cuda and with non-x86-64 optimizations" - export USE_CUDA=1 - export USE_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-opt-cuda" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build -} - -_package() { - # Prevent
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Sunday, June 23, 2019 @ 23:28:37 Author: svenstaro Revision: 483356 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 483355, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/change_default_config.patch (from rev 483355, python-pytorch/trunk/change_default_config.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/change_default_config.patch -+ PKGBUILD| 316 +- change_default_config.patch | 56 +++ 2 files changed, 186 insertions(+), 186 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-06-23 23:28:26 UTC (rev 483355) +++ PKGBUILD2019-06-23 23:28:37 UTC (rev 483356) @@ -1,158 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") -_pkgname="pytorch" -pkgver=1.1.0 -pkgrel=5 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf' 'ffmpeg') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver;) -sha256sums=('SKIP') - -get_pyver () { -python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt-cuda" - - export CC=gcc - export CXX=g++ - export VERBOSE=1 - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - - # Check tools/setup_helpers/cmake.py, setup.py and CMakeLists.txt for a list of flags that can be set via env vars. - export USE_MKLDNN=OFF - # export BUILD_CUSTOM_PROTOBUF=OFF - # export BUILD_SHARED_LIBS=OFF - export USE_FFMPEG=ON - export USE_GFLAGS=ON - export USE_GLOG=ON - export BUILD_BINARY=ON - export USE_OPENCV=ON - export USE_SYSTEM_NCCL=ON - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" -} - -build() { - echo "Building without cuda and without non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build - - - echo "Building without cuda and with non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}-opt" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - python setup.py build - - - echo "Building with cuda and with non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-opt-cuda" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build -} - -_package() { - # Prevent setup.py from re-running CMake and rebuilding - sed -e 's/RUN_BUILD_DEPS = True/RUN_BUILD_DEPS = False/g' -i setup.py - - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build - - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" - - pytorchpath="usr/lib/python$(get_pyver)/site-packages/torch" - install -d "${pkgdir}/usr/lib" - - # put CMake files in correct place - mv "${pkgdir}/${pytorchpath}/share/cmake" "${pkgdir}/usr/lib/cmake" - - # put C++ API in correct place - mv "${pkgdir}/${pytorchpath}/include" "${pkgdir}/usr/include" - mv "${pkgdir}/${pytorchpath}/lib"/*.so* "${pkgdir}/usr/lib/" - - # clean up duplicates - # TODO: move towards direct shared library dependecy of: - # c10, caffe2, libcpuinfo, CUDA RT, gloo, GTest, Intel MKL, - # NVRTC, ONNX, protobuf, libthreadpool, QNNPACK - rm -rf "${pkgdir}/usr/include/pybind11" - -
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Wednesday, June 19, 2019 @ 04:28:59 Author: svenstaro Revision: 482299 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 482298, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/change_default_config.patch (from rev 482298, python-pytorch/trunk/change_default_config.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/change_default_config.patch -+ PKGBUILD| 324 -- change_default_config.patch | 56 +++ 2 files changed, 186 insertions(+), 194 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-06-19 04:28:49 UTC (rev 482298) +++ PKGBUILD2019-06-19 04:28:59 UTC (rev 482299) @@ -1,166 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") -_pkgname="pytorch" -pkgver=1.1.0 -pkgrel=4 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf' 'ffmpeg') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver;) -sha256sums=('SKIP') - -get_pyver () { -python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt-cuda" - - export CC=gcc - export CXX=g++ - export VERBOSE=1 - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - - # Check tools/setup_helpers/cmake.py, setup.py and CMakeLists.txt for a list of flags that can be set via env vars. - export USE_MKLDNN=OFF - # export BUILD_CUSTOM_PROTOBUF=OFF - # export BUILD_SHARED_LIBS=OFF - export USE_FFMPEG=ON - export USE_GFLAGS=ON - export USE_GLOG=ON - export BUILD_BINARY=ON - export USE_OPENCV=ON - export USE_SYSTEM_NCCL=ON - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" -} - -build() { - echo "Building without cuda and without non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build - - - echo "Building without cuda and with non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - cd "${srcdir}/${_pkgname}-${pkgver}-opt" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - python setup.py build - - - echo "Building with cuda and with non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - cd "${srcdir}/${_pkgname}-${pkgver}-opt-cuda" - echo "add_definitions(-march=haswell)" >> cmake/MiscCheck.cmake - python setup.py build -} - -_package() { - # Prevent setup.py from re-running CMake and rebuilding - sed -e 's/RUN_BUILD_DEPS = True/RUN_BUILD_DEPS = False/g' -i setup.py - - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build - - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - - # put CMake files in correct place - install -d "${pkgdir}/usr/lib/cmake" - pytorchpath="usr/lib/python$(get_pyver)/site-packages/torch" - mv "${pkgdir}/${pytorchpath}/share/cmake"/* \ - "${pkgdir}/usr/lib/cmake/" - - # put C++ API in correct place - install -d "${pkgdir}/usr/include" - install -d "${pkgdir}/usr/lib/pytorch" - mv "${pkgdir}/${pytorchpath}/include"/* "${pkgdir}/usr/include/" - mv "${pkgdir}/${pytorchpath}/lib"/*.so* "${pkgdir}/usr/lib/pytorch/" - - # clean up duplicates - # TODO: move towards direct shared library dependecy of: - # c10, caffe2, libcpuinfo, CUDA RT, gloo, GTest,
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Sunday, June 16, 2019 @ 02:12:16 Author: svenstaro Revision: 481803 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 481802, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/change_default_config.patch (from rev 481802, python-pytorch/trunk/change_default_config.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/change_default_config.patch -+ PKGBUILD| 340 -- change_default_config.patch | 56 +++--- 2 files changed, 194 insertions(+), 202 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-06-16 02:12:03 UTC (rev 481802) +++ PKGBUILD2019-06-16 02:12:16 UTC (rev 481803) @@ -1,174 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") -_pkgname="pytorch" -pkgver=1.1.0 -pkgrel=3 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver;) -sha256sums=('SKIP') - -get_pyver () { -python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt-cuda" - - export CC=gcc - export CXX=g++ - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - export USE_MKLDNN=0 - # export BUILD_CUSTOM_PROTOBUF=0 - # export BUILD_SHARED_LIBS=0 - export USE_GFLAGS=1 - export USE_GLOG=1 - export BUILD_BINARY=1 - export USE_OPENCV=1 - export USE_SYSTEM_NCCL=1 -} - -build() { - echo "Building without cuda and without non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - - cd "${srcdir}/${_pkgname}-${pkgver}" - sed -i "s/march=native/march=x86-64/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building without cuda and with non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - - cd "${srcdir}/${_pkgname}-${pkgver}-opt" - sed -i "s/march=native/march=haswell/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" - - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - sed -i "s/march=native/march=x86-64/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" - - cd "${srcdir}/${_pkgname}-${pkgver}-opt-cuda" - sed -i "s/march=native/march=haswell/g" cmake/MiscCheck.cmake - python setup.py build -} - -_package() { - # Prevent setup.py from re-running CMake and rebuilding - sed -e 's/RUN_BUILD_DEPS = True/RUN_BUILD_DEPS = False/g' -i setup.py - - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build - - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - - # put CMake files in correct place - install -d "${pkgdir}/usr/lib/cmake" - pytorchpath="usr/lib/python$(get_pyver)/site-packages/torch" - mv "${pkgdir}/${pytorchpath}/share/cmake"/* \ - "${pkgdir}/usr/lib/cmake/" - - # put C++ API in correct place - install -d "${pkgdir}/usr/include" - install -d "${pkgdir}/usr/lib/pytorch" - mv "${pkgdir}/${pytorchpath}/include"/* "${pkgdir}/usr/include/"
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Thursday, June 13, 2019 @ 07:57:32 Author: svenstaro Revision: 481128 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 481127, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/change_default_config.patch (from rev 481127, python-pytorch/trunk/change_default_config.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/change_default_config.patch -+ PKGBUILD| 342 +- change_default_config.patch | 56 +++--- 2 files changed, 202 insertions(+), 196 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-06-13 07:57:18 UTC (rev 481127) +++ PKGBUILD2019-06-13 07:57:32 UTC (rev 481128) @@ -1,168 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-opt" "python-pytorch-cuda" "python-pytorch-opt-cuda") -_pkgname="pytorch" -pkgver=1.1.0 -pkgrel=2 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver;) -sha256sums=('SKIP') - -get_pyver () { -python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-opt-cuda" - - export CC=gcc - export CXX=g++ - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - export USE_MKLDNN=0 - # export BUILD_CUSTOM_PROTOBUF=0 - # export BUILD_SHARED_LIBS=0 - export USE_GFLAGS=1 - export USE_GLOG=1 - export BUILD_BINARY=1 - export USE_OPENCV=1 - export USE_SYSTEM_NCCL=1 -} - -build() { - echo "Building without cuda and without non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - - cd "${srcdir}/${_pkgname}-${pkgver}" - sed -i "s/march=native/march=x86-64/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building without cuda and with non-x86-64 optimizations" - export NO_CUDA=1 - export WITH_CUDNN=0 - - cd "${srcdir}/${_pkgname}-${pkgver}-opt" - sed -i "s/march=native/march=haswell/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" - - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - sed -i "s/march=native/march=x86-64/g" cmake/MiscCheck.cmake - python setup.py build - - - echo "Building with cuda and without non-x86-64 optimizations" - export NO_CUDA=0 - export WITH_CUDNN=1 - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" - - cd "${srcdir}/${_pkgname}-${pkgver}-opt-cuda" - sed -i "s/march=native/march=haswell/g" cmake/MiscCheck.cmake - python setup.py build -} - -_package() { - # Prevent setup.py from re-running CMake and rebuilding - sed -e 's/RUN_BUILD_DEPS = True/RUN_BUILD_DEPS = False/g' -i setup.py - - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build - - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - - # put CMake files in correct place - install -d "${pkgdir}/usr/lib/cmake" - pytorchpath="usr/lib/python$(get_pyver)/site-packages/torch" - mv "${pkgdir}/${pytorchpath}/share/cmake"/* \ - "${pkgdir}/usr/lib/cmake/" - - # put C++ API in correct place - install -d "${pkgdir}/usr/include" - install -d "${pkgdir}/usr/lib/pytorch" - mv "${pkgdir}/${pytorchpath}/include"/*
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Wednesday, June 12, 2019 @ 08:17:02 Author: svenstaro Revision: 480629 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 480628, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/change_default_config.patch (from rev 480628, python-pytorch/trunk/change_default_config.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/change_default_config.patch -+ PKGBUILD| 309 ++ change_default_config.patch | 56 +++ 2 files changed, 196 insertions(+), 169 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-06-12 08:16:49 UTC (rev 480628) +++ PKGBUILD2019-06-12 08:17:02 UTC (rev 480629) @@ -1,141 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.1.0 -pkgrel=1 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('google-glog' 'gflags' 'opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy' 'protobuf') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver; -'change_default_config.patch') -sha256sums=('SKIP' -'36fa08167c5a54c2ae7e5b67b750d35f7a1b3812fa90153d66f6aa2fce71f2b4') - -get_pyver () { -python -c 'import sys; print(str(sys.version_info[0]) + "." + str(sys.version_info[1]))' -} - -prepare() { - cd "${_pkgname}-${pkgver}" - - # Change default config manually, as setup.py filters some flags - patch -Np1 -i "${srcdir}/change_default_config.patch" - - # This is the lazy way since pytorch has sooo many submodules and they keep - # changing them around but we've run into more problems so far doing it the - # manual than the lazy way. This lazy way (not explicitly specifying all - # submodules) will make building inefficient but for now I'll take it. - # It will result in the same package, don't worry. - git submodule update --init --recursive - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-cuda" -} - -build() { - export CC=gcc - export CXX=g++ - export PYTORCH_BUILD_VERSION="${pkgver}" - export PYTORCH_BUILD_NUMBER=1 - export USE_MKLDNN=0 - - echo "Building without cuda" - export NO_CUDA=1 - export WITH_CUDNN=0 - export USE_OPENCV=1 - export BUILD_BINARY=1 - - cd "${srcdir}/${_pkgname}-${pkgver}" - python setup.py build - - echo "Building with cuda" - export NO_CUDA=0 - export WITH_CUDNN=1 - export CUDAHOSTCXX=g++ - export CUDA_HOME=/opt/cuda - export CUDNN_LIB_DIR=/usr/lib - export CUDNN_INCLUDE_DIR=/usr/include - export TORCH_NVCC_FLAGS="-Xfatbin -compress-all" - export TORCH_CUDA_ARCH_LIST="3.0;3.2;3.5;3.7;5.0;5.2;5.3;6.0;6.1;6.2;7.0;7.2;7.5" - - cd "${srcdir}/${_pkgname}-${pkgver}-cuda" - python setup.py build -} - -package_python-pytorch() { - cd "${srcdir}/${_pkgname}-${pkgver}" - # Prevent setup.py from re-running CMake and rebuilding - sed -e 's/RUN_BUILD_DEPS = True/RUN_BUILD_DEPS = False/g' -i setup.py - python setup.py install --root="${pkgdir}"/ --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - # put CMake files in correct place - install -d "${pkgdir}/usr/lib/cmake" - pytorchpath="usr/lib/python$(get_pyver)/site-packages/torch" - mv "${pkgdir}/${pytorchpath}/share/cmake"/* \ - "${pkgdir}/usr/lib/cmake/" - # put C++ API in correct place - install -d "${pkgdir}/usr/include" - install -d "${pkgdir}/usr/lib/pytorch" - mv "${pkgdir}/${pytorchpath}/include"/* "${pkgdir}/usr/include/" - mv "${pkgdir}/${pytorchpath}/lib"/*.so* "${pkgdir}/usr/lib/pytorch/" - # clean up duplicates - # TODO: move towards direct shared library dependecy of: - # c10, caffe2, libcpuinfo, CUDA RT, gloo, GTest, Intel MKL, - # NVRTC, ONNX, protobuf, libthreadpool, QNNPACK - rm -rf "${pkgdir}/${pytorchpath}/share/cmake" - rm -rf "${pkgdir}/${pytorchpath}/include" - rm -rf "${pkgdir}/usr/include/pybind11" - # python module is hardcoded to look there at runtime - ln -s /usr/include "${pkgdir}/${pytorchpath}/include" - find "${pkgdir}"/usr/lib/pytorch -type f -name "*.so*" -print0 | while read -rd $'\0' _lib; do -ln -s ${_lib#"$pkgdir"} "${pkgdir}/${pytorchpath}/lib/" - done - # ldconfig - install -d "${pkgdir}/etc/ld.so.conf.d" - echo '/usr/lib/pytorch' > "${pkgdir}/etc/ld.so.conf.d/pytorch.conf" -} - -package_python-pytorch-cuda() { - depends+=('cuda' 'cudnn') - provides=('python-pytorch') - conflicts=('python-pytorch') - cd
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Sunday, December 9, 2018 @ 21:03:15 Author: svenstaro Revision: 413233 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 413232, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/12116.patch python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/opencv4.patch ---+ 12116.patch | 70 PKGBUILD | 309 +++- opencv4.patch | 72 - 3 files changed, 152 insertions(+), 299 deletions(-) Deleted: 12116.patch === --- 12116.patch 2018-12-09 21:03:10 UTC (rev 413232) +++ 12116.patch 2018-12-09 21:03:15 UTC (rev 413233) @@ -1,70 +0,0 @@ -From cea0d3269daf34fa32b55237d393de7c47928f65 Mon Sep 17 00:00:00 2001 -From: Xiaodong Wang -Date: Wed, 26 Sep 2018 13:44:53 -0700 -Subject: [PATCH] Caffe 2 adoption - -Summary: -Adapt Caffe 2 to platform007 (gcc 8): -* gcc 8 + nvcc template symbol lookup (D9319742): -context_.template CopySameDevice ==> this->context_.template CopySameDevice -* New gcc 8 warning (error): - * -Werror=sizeof-pointer-div - * Unnecessary parenthesis - -Differential Revision: D10045844 - -fbshipit-source-id: 0b0569401fac69f83b8c2be758eea7c8fa18a019 - aten/src/THC/generic/THCTensor.cpp | 2 +- - caffe2/operators/rnn/recurrent_op_cudnn.cc | 8 - 2 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp -index a7779047863..673870288e8 100644 a/aten/src/THC/generic/THCTensor.cpp -+++ b/aten/src/THC/generic/THCTensor.cpp -@@ -596,7 +596,7 @@ int THCTensor_(checkGPU)(THCState *state, unsigned int nTensors, ...) - { - int curDev = -1; - THCudaCheck(cudaGetDevice()); -- va_list(args); -+ va_list args; - va_start(args, nTensors); - int valid = 1; - for (unsigned int i = 0; i < nTensors; i++) { -diff --git a/caffe2/operators/rnn/recurrent_op_cudnn.cc b/caffe2/operators/rnn/recurrent_op_cudnn.cc -index 4b349655843..fa37874bd3e 100644 a/caffe2/operators/rnn/recurrent_op_cudnn.cc -+++ b/caffe2/operators/rnn/recurrent_op_cudnn.cc -@@ -458,13 +458,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ( - biasDims[0] * biasDims[1] * biasDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - Input(2).template data(), - static_cast(bias)); - } else { - Output(0)->Resize(biasDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - static_cast(bias), - Output(0)->template mutable_data()); -@@ -495,13 +495,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - CAFFE_ENFORCE_EQ(numDims, 3); - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ(matDims[0] * matDims[1] * matDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - Input(2).template data(), - static_cast(pmatrix)); - } else { - Output(0)->Resize(matDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - static_cast(pmatrix), - Output(0)->template mutable_data()); Deleted: PKGBUILD === --- PKGBUILD2018-12-09 21:03:10 UTC (rev 413232) +++ PKGBUILD2018-12-09 21:03:15 UTC (rev 413233) @@ -1,157 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0rc1 -pkgrel=6 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('python' 'python-yaml' 'python-numpy' 'opencv' 'nccl') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#tag=v$pkgver; -"git+https://github.com/catchorg/Catch2; -"git+https://github.com/pybind/pybind11; -"git+https://github.com/NVlabs/cub; -"git+https://github.com/eigenteam/eigen-git-mirror; -"git+https://github.com/google/googletest; -"git+https://github.com/NervanaSystems/nervanagpu; -"git+https://github.com/google/benchmark; -"git+https://github.com/google/protobuf; -"git+https://github.com/Yangqing/ios-cmake; -
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Friday, October 19, 2018 @ 00:12:23 Author: svenstaro Revision: 396173 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/12116.patch (from rev 396172, python-pytorch/trunk/12116.patch) python-pytorch/repos/community-x86_64/PKGBUILD (from rev 396172, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/12116.patch python-pytorch/repos/community-x86_64/PKGBUILD -+ 12116.patch | 140 +- PKGBUILD| 310 +- 2 files changed, 225 insertions(+), 225 deletions(-) Deleted: 12116.patch === --- 12116.patch 2018-10-19 00:12:12 UTC (rev 396172) +++ 12116.patch 2018-10-19 00:12:23 UTC (rev 396173) @@ -1,70 +0,0 @@ -From cea0d3269daf34fa32b55237d393de7c47928f65 Mon Sep 17 00:00:00 2001 -From: Xiaodong Wang -Date: Wed, 26 Sep 2018 13:44:53 -0700 -Subject: [PATCH] Caffe 2 adoption - -Summary: -Adapt Caffe 2 to platform007 (gcc 8): -* gcc 8 + nvcc template symbol lookup (D9319742): -context_.template CopySameDevice ==> this->context_.template CopySameDevice -* New gcc 8 warning (error): - * -Werror=sizeof-pointer-div - * Unnecessary parenthesis - -Differential Revision: D10045844 - -fbshipit-source-id: 0b0569401fac69f83b8c2be758eea7c8fa18a019 - aten/src/THC/generic/THCTensor.cpp | 2 +- - caffe2/operators/rnn/recurrent_op_cudnn.cc | 8 - 2 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp -index a7779047863..673870288e8 100644 a/aten/src/THC/generic/THCTensor.cpp -+++ b/aten/src/THC/generic/THCTensor.cpp -@@ -596,7 +596,7 @@ int THCTensor_(checkGPU)(THCState *state, unsigned int nTensors, ...) - { - int curDev = -1; - THCudaCheck(cudaGetDevice()); -- va_list(args); -+ va_list args; - va_start(args, nTensors); - int valid = 1; - for (unsigned int i = 0; i < nTensors; i++) { -diff --git a/caffe2/operators/rnn/recurrent_op_cudnn.cc b/caffe2/operators/rnn/recurrent_op_cudnn.cc -index 4b349655843..fa37874bd3e 100644 a/caffe2/operators/rnn/recurrent_op_cudnn.cc -+++ b/caffe2/operators/rnn/recurrent_op_cudnn.cc -@@ -458,13 +458,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ( - biasDims[0] * biasDims[1] * biasDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - Input(2).template data(), - static_cast(bias)); - } else { - Output(0)->Resize(biasDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - static_cast(bias), - Output(0)->template mutable_data()); -@@ -495,13 +495,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - CAFFE_ENFORCE_EQ(numDims, 3); - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ(matDims[0] * matDims[1] * matDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - Input(2).template data(), - static_cast(pmatrix)); - } else { - Output(0)->Resize(matDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - static_cast(pmatrix), - Output(0)->template mutable_data()); Copied: python-pytorch/repos/community-x86_64/12116.patch (from rev 396172, python-pytorch/trunk/12116.patch) === --- 12116.patch (rev 0) +++ 12116.patch 2018-10-19 00:12:23 UTC (rev 396173) @@ -0,0 +1,70 @@ +From cea0d3269daf34fa32b55237d393de7c47928f65 Mon Sep 17 00:00:00 2001 +From: Xiaodong Wang +Date: Wed, 26 Sep 2018 13:44:53 -0700 +Subject: [PATCH] Caffe 2 adoption + +Summary: +Adapt Caffe 2 to platform007 (gcc 8): +* gcc 8 + nvcc template symbol lookup (D9319742): +context_.template CopySameDevice ==> this->context_.template CopySameDevice +* New gcc 8 warning (error): + * -Werror=sizeof-pointer-div + * Unnecessary parenthesis + +Differential Revision: D10045844 + +fbshipit-source-id: 0b0569401fac69f83b8c2be758eea7c8fa18a019 +--- + aten/src/THC/generic/THCTensor.cpp | 2 +- + caffe2/operators/rnn/recurrent_op_cudnn.cc | 8 + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp +index a7779047863..673870288e8 100644 +--- a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp +@@ -596,7 +596,7 @@ int THCTensor_(checkGPU)(THCState *state, unsigned int
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Tuesday, October 16, 2018 @ 21:27:10 Author: svenstaro Revision: 394862 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/12116.patch (from rev 394861, python-pytorch/trunk/12116.patch) python-pytorch/repos/community-x86_64/PKGBUILD (from rev 394861, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/12116.patch python-pytorch/repos/community-x86_64/PKGBUILD -+ 12116.patch | 140 +- PKGBUILD| 309 +- 2 files changed, 225 insertions(+), 224 deletions(-) Deleted: 12116.patch === --- 12116.patch 2018-10-16 21:27:02 UTC (rev 394861) +++ 12116.patch 2018-10-16 21:27:10 UTC (rev 394862) @@ -1,70 +0,0 @@ -From cea0d3269daf34fa32b55237d393de7c47928f65 Mon Sep 17 00:00:00 2001 -From: Xiaodong Wang -Date: Wed, 26 Sep 2018 13:44:53 -0700 -Subject: [PATCH] Caffe 2 adoption - -Summary: -Adapt Caffe 2 to platform007 (gcc 8): -* gcc 8 + nvcc template symbol lookup (D9319742): -context_.template CopySameDevice ==> this->context_.template CopySameDevice -* New gcc 8 warning (error): - * -Werror=sizeof-pointer-div - * Unnecessary parenthesis - -Differential Revision: D10045844 - -fbshipit-source-id: 0b0569401fac69f83b8c2be758eea7c8fa18a019 - aten/src/THC/generic/THCTensor.cpp | 2 +- - caffe2/operators/rnn/recurrent_op_cudnn.cc | 8 - 2 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp -index a7779047863..673870288e8 100644 a/aten/src/THC/generic/THCTensor.cpp -+++ b/aten/src/THC/generic/THCTensor.cpp -@@ -596,7 +596,7 @@ int THCTensor_(checkGPU)(THCState *state, unsigned int nTensors, ...) - { - int curDev = -1; - THCudaCheck(cudaGetDevice()); -- va_list(args); -+ va_list args; - va_start(args, nTensors); - int valid = 1; - for (unsigned int i = 0; i < nTensors; i++) { -diff --git a/caffe2/operators/rnn/recurrent_op_cudnn.cc b/caffe2/operators/rnn/recurrent_op_cudnn.cc -index 4b349655843..fa37874bd3e 100644 a/caffe2/operators/rnn/recurrent_op_cudnn.cc -+++ b/caffe2/operators/rnn/recurrent_op_cudnn.cc -@@ -458,13 +458,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ( - biasDims[0] * biasDims[1] * biasDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - Input(2).template data(), - static_cast(bias)); - } else { - Output(0)->Resize(biasDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - biasDims[0] * biasDims[1] * biasDims[2], - static_cast(bias), - Output(0)->template mutable_data()); -@@ -495,13 +495,13 @@ bool RecurrentParamAccessOp::RunOnDevice() { - CAFFE_ENFORCE_EQ(numDims, 3); - if (mode == SET_PARAM) { - CAFFE_ENFORCE_EQ(matDims[0] * matDims[1] * matDims[2], Input(2).size()); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - Input(2).template data(), - static_cast(pmatrix)); - } else { - Output(0)->Resize(matDims); -- context_.template CopySameDevice( -+ this->context_.template CopySameDevice( - matDims[0] * matDims[1] * matDims[2], - static_cast(pmatrix), - Output(0)->template mutable_data()); Copied: python-pytorch/repos/community-x86_64/12116.patch (from rev 394861, python-pytorch/trunk/12116.patch) === --- 12116.patch (rev 0) +++ 12116.patch 2018-10-16 21:27:10 UTC (rev 394862) @@ -0,0 +1,70 @@ +From cea0d3269daf34fa32b55237d393de7c47928f65 Mon Sep 17 00:00:00 2001 +From: Xiaodong Wang +Date: Wed, 26 Sep 2018 13:44:53 -0700 +Subject: [PATCH] Caffe 2 adoption + +Summary: +Adapt Caffe 2 to platform007 (gcc 8): +* gcc 8 + nvcc template symbol lookup (D9319742): +context_.template CopySameDevice ==> this->context_.template CopySameDevice +* New gcc 8 warning (error): + * -Werror=sizeof-pointer-div + * Unnecessary parenthesis + +Differential Revision: D10045844 + +fbshipit-source-id: 0b0569401fac69f83b8c2be758eea7c8fa18a019 +--- + aten/src/THC/generic/THCTensor.cpp | 2 +- + caffe2/operators/rnn/recurrent_op_cudnn.cc | 8 + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp +index a7779047863..673870288e8 100644 +--- a/aten/src/THC/generic/THCTensor.cpp b/aten/src/THC/generic/THCTensor.cpp +@@ -596,7 +596,7 @@ int THCTensor_(checkGPU)(THCState *state, unsigned int
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Wednesday, August 8, 2018 @ 23:45:30 Author: svenstaro Revision: 370461 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 370460, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/noplt.patch (from rev 370460, python-pytorch/trunk/noplt.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/noplt.patch -+ PKGBUILD| 401 -- noplt.patch | 26 +-- 2 files changed, 212 insertions(+), 215 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-08-08 23:45:20 UTC (rev 370460) +++ PKGBUILD2018-08-08 23:45:30 UTC (rev 370461) @@ -1,202 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -_commit=200fb22 -pkgver=0.4.1 -pkgrel=3 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'cmake' 'cuda' 'cudnn' 'git' 'python2-typing') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#commit=$_commit; -"git+https://github.com/01org/tbb; -"git+https://github.com/catchorg/Catch2; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/google/benchmark; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/NVlabs/cub; -"git+https://github.com/eigenteam/eigen-git-mirror; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/google/googletest; -"git+https://github.com/Yangqing/ios-cmake; -"git+https://github.com/nanopb/nanopb; -"git+https://github.com/NervanaSystems/nervanagpu; -"git+https://github.com/nvidia/nccl; -"git+https://github.com/onnx/onnx; -"git+https://github.com/google/protobuf; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/pybind/pybind11; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/facebook/zstd; -noplt.patch) -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'8e845663abbbd78bd4d3fcb8997b85c644a09470b166ed3a95429636670eb4ef') - -prepare() { - cd "${_pkgname}-${pkgver}" - - patch -Np1 -i "${srcdir}"/noplt.patch - - git submodule init - git config submodule."aten/src/ATen/cpu/cpuinfo".url "${srcdir}"/cpuinfo - git config submodule."aten/src/ATen/cpu/tbb/tbb_remote".url "${srcdir}"/tbb - git config submodule."aten/src/ATen/utils/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/nanopb".url "${srcdir}"/nanopb - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - git config submodule."third_party/nccl".url "${srcdir}"/nccl - git config submodule."third_party/cub".url "${srcdir}"/cub - git config submodule."third_party/eigen".url "${srcdir}"/eigen-git-mirror - git config submodule."third_party/googletest".url "${srcdir}"/googletest - git config submodule."third_party/nervanagpu".url "${srcdir}"/nervanagpu - git config submodule."third_party/benchmark".url "${srcdir}"/benchmark - git config submodule."third_party/protobuf".url "${srcdir}"/protobuf - git config submodule."third_party/ios-cmake".url "${srcdir}"/ios-cmake - git config submodule."third_party/NNPACK".url "${srcdir}"/NNPACK - git config submodule."third_party/gloo".url "${srcdir}"/gloo - git config submodule."third_party/NNPACK_deps/pthread_ool".url "${srcdir}"/pthreadpool - git config submodule."third_party/NNPACK_deps/FXdiv".url "${srcdir}"/FXdiv - git config submodule."third_party/NNPACK_deps/FP16".url "${srcdir}"/FP16 - git config submodule."third_party/NNPACK_deps/psimd".url "${srcdir}"/psimd - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Monday, July 30, 2018 @ 20:56:26 Author: eschwartz Revision: 365001 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 365000, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/noplt.patch (from rev 365000, python-pytorch/trunk/noplt.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/noplt.patch -+ PKGBUILD| 404 +- noplt.patch | 26 +-- 2 files changed, 215 insertions(+), 215 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-07-30 20:56:01 UTC (rev 365000) +++ PKGBUILD2018-07-30 20:56:26 UTC (rev 365001) @@ -1,202 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -_commit=200fb22 -pkgver=0.4.0 -pkgrel=4 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'cmake' 'cuda' 'cudnn' 'git' 'python2-typing') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#commit=$_commit; -"git://github.com/01org/tbb" -"git://github.com/catchorg/Catch2" -"git://github.com/ARM-software/ComputeLibrary" -"git://github.com/Maratyszcza/FP16" -"git://github.com/Maratyszcza/FXdiv" -"git://github.com/Maratyszcza/NNPACK" -"git://github.com/google/benchmark" -"git://github.com/Maratyszcza/cpuinfo" -"git://github.com/NVlabs/cub" -"git://github.com/eigenteam/eigen-git-mirror" -"git://github.com/facebookincubator/gloo" -"git://github.com/google/googletest" -"git://github.com/Yangqing/ios-cmake" -"git://github.com/nanopb/nanopb" -"git://github.com/NervanaSystems/nervanagpu" -"git://github.com/nvidia/nccl" -"git://github.com/onnx/onnx" -"git://github.com/google/protobuf" -"git://github.com/Maratyszcza/psimd" -"git://github.com/Maratyszcza/pthreadpool" -"git://github.com/pybind/pybind11" -"git://github.com/PeachPy/enum34" -"git://github.com/Maratyszcza/PeachPy" -"git://github.com/benjaminp/six" -"git://github.com/facebook/zstd" -noplt.patch) -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'8e845663abbbd78bd4d3fcb8997b85c644a09470b166ed3a95429636670eb4ef') - -prepare() { - cd "${_pkgname}-${pkgver}" - - patch -Np1 -i "${srcdir}"/noplt.patch - - git submodule init - git config submodule."aten/src/ATen/cpu/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."aten/src/ATen/cpu/tbb/tbb_remote".url ${srcdir}/tbb - git config submodule."aten/src/ATen/utils/catch".url ${srcdir}/Catch2 - git config submodule."third_party/nanopb".url ${srcdir}/nanopb - git config submodule."third_party/pybind11".url ${srcdir}/pybind11 - git config submodule."third_party/nccl".url ${srcdir}/nccl - git config submodule."third_party/cub".url ${srcdir}/cub - git config submodule."third_party/eigen".url ${srcdir}/eigen-git-mirror - git config submodule."third_party/googletest".url ${srcdir}/googletest - git config submodule."third_party/nervanagpu".url ${srcdir}/nervanagpu - git config submodule."third_party/benchmark".url ${srcdir}/benchmark - git config submodule."third_party/protobuf".url ${srcdir}/protobuf - git config submodule."third_party/ios-cmake".url ${srcdir}/ios-cmake - git config submodule."third_party/NNPACK".url ${srcdir}/NNPACK - git config submodule."third_party/gloo".url ${srcdir}/gloo - git config submodule."third_party/NNPACK_deps/pthread_ool".url ${srcdir}/pthreadpool - git config submodule."third_party/NNPACK_deps/FXdiv".url ${srcdir}/FXdiv - git config submodule."third_party/NNPACK_deps/FP16".url ${srcdir}/FP16 - git config submodule."third_party/NNPACK_deps/psimd".url ${srcdir}/psimd - git config submodule."third_party/zstd".url ${srcdir}/zstd - git config submodule."third_party/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."third_party/python-enum".url ${srcdir}/enum34 - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Saturday, July 28, 2018 @ 10:35:24 Author: svenstaro Revision: 363729 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 363728, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/noplt.patch (from rev 363728, python-pytorch/trunk/noplt.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/noplt.patch -+ PKGBUILD| 404 +- noplt.patch | 26 +-- 2 files changed, 215 insertions(+), 215 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-07-28 10:35:17 UTC (rev 363728) +++ PKGBUILD2018-07-28 10:35:24 UTC (rev 363729) @@ -1,202 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -_commit=200fb22 -pkgver=0.4.0 -pkgrel=4 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'cmake' 'cuda' 'cudnn' 'git' 'python2-typing') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#commit=$_commit; -"git://github.com/01org/tbb" -"git://github.com/catchorg/Catch2" -"git://github.com/ARM-software/ComputeLibrary" -"git://github.com/Maratyszcza/FP16" -"git://github.com/Maratyszcza/FXdiv" -"git://github.com/Maratyszcza/NNPACK" -"git://github.com/google/benchmark" -"git://github.com/Maratyszcza/cpuinfo" -"git://github.com/NVlabs/cub" -"git://github.com/eigenteam/eigen-git-mirror" -"git://github.com/facebookincubator/gloo" -"git://github.com/google/googletest" -"git://github.com/Yangqing/ios-cmake" -"git://github.com/nanopb/nanopb" -"git://github.com/NervanaSystems/nervanagpu" -"git://github.com/nvidia/nccl" -"git://github.com/onnx/onnx" -"git://github.com/google/protobuf" -"git://github.com/Maratyszcza/psimd" -"git://github.com/Maratyszcza/pthreadpool" -"git://github.com/pybind/pybind11" -"git://github.com/PeachPy/enum34" -"git://github.com/Maratyszcza/PeachPy" -"git://github.com/benjaminp/six" -"git://github.com/facebook/zstd" -noplt.patch) -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'8e845663abbbd78bd4d3fcb8997b85c644a09470b166ed3a95429636670eb4ef') - -prepare() { - cd "${_pkgname}-${pkgver}" - - patch -Np1 -i "${srcdir}"/noplt.patch - - git submodule init - git config submodule."aten/src/ATen/cpu/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."aten/src/ATen/cpu/tbb/tbb_remote".url ${srcdir}/tbb - git config submodule."aten/src/ATen/utils/catch".url ${srcdir}/Catch2 - git config submodule."third_party/nanopb".url ${srcdir}/nanopb - git config submodule."third_party/pybind11".url ${srcdir}/pybind11 - git config submodule."third_party/nccl".url ${srcdir}/nccl - git config submodule."third_party/cub".url ${srcdir}/cub - git config submodule."third_party/eigen".url ${srcdir}/eigen-git-mirror - git config submodule."third_party/googletest".url ${srcdir}/googletest - git config submodule."third_party/nervanagpu".url ${srcdir}/nervanagpu - git config submodule."third_party/benchmark".url ${srcdir}/benchmark - git config submodule."third_party/protobuf".url ${srcdir}/protobuf - git config submodule."third_party/ios-cmake".url ${srcdir}/ios-cmake - git config submodule."third_party/NNPACK".url ${srcdir}/NNPACK - git config submodule."third_party/gloo".url ${srcdir}/gloo - git config submodule."third_party/NNPACK_deps/pthread_ool".url ${srcdir}/pthreadpool - git config submodule."third_party/NNPACK_deps/FXdiv".url ${srcdir}/FXdiv - git config submodule."third_party/NNPACK_deps/FP16".url ${srcdir}/FP16 - git config submodule."third_party/NNPACK_deps/psimd".url ${srcdir}/psimd - git config submodule."third_party/zstd".url ${srcdir}/zstd - git config submodule."third_party/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."third_party/python-enum".url ${srcdir}/enum34 - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Friday, July 13, 2018 @ 08:29:54 Author: svenstaro Revision: 358481 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 358480, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/noplt.patch (from rev 358480, python-pytorch/trunk/noplt.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/noplt.patch -+ PKGBUILD| 404 +- noplt.patch | 26 +-- 2 files changed, 215 insertions(+), 215 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-07-13 08:29:43 UTC (rev 358480) +++ PKGBUILD2018-07-13 08:29:54 UTC (rev 358481) @@ -1,202 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -_commit=200fb22 -pkgver=0.4.0 -pkgrel=3 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'cmake' 'cuda' 'cudnn' 'git' 'python2-typing') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#commit=$_commit; -"git://github.com/01org/tbb" -"git://github.com/catchorg/Catch2" -"git://github.com/ARM-software/ComputeLibrary" -"git://github.com/Maratyszcza/FP16" -"git://github.com/Maratyszcza/FXdiv" -"git://github.com/Maratyszcza/NNPACK" -"git://github.com/google/benchmark" -"git://github.com/Maratyszcza/cpuinfo" -"git://github.com/NVlabs/cub" -"git://github.com/eigenteam/eigen-git-mirror" -"git://github.com/facebookincubator/gloo" -"git://github.com/google/googletest" -"git://github.com/Yangqing/ios-cmake" -"git://github.com/nanopb/nanopb" -"git://github.com/NervanaSystems/nervanagpu" -"git://github.com/nvidia/nccl" -"git://github.com/onnx/onnx" -"git://github.com/google/protobuf" -"git://github.com/Maratyszcza/psimd" -"git://github.com/Maratyszcza/pthreadpool" -"git://github.com/pybind/pybind11" -"git://github.com/PeachPy/enum34" -"git://github.com/Maratyszcza/PeachPy" -"git://github.com/benjaminp/six" -"git://github.com/facebook/zstd" -noplt.patch) -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'SKIP' -'8e845663abbbd78bd4d3fcb8997b85c644a09470b166ed3a95429636670eb4ef') - -prepare() { - cd "${_pkgname}-${pkgver}" - - patch -Np1 -i "${srcdir}"/noplt.patch - - git submodule init - git config submodule."aten/src/ATen/cpu/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."aten/src/ATen/cpu/tbb/tbb_remote".url ${srcdir}/tbb - git config submodule."aten/src/ATen/utils/catch".url ${srcdir}/Catch2 - git config submodule."third_party/nanopb".url ${srcdir}/nanopb - git config submodule."third_party/pybind11".url ${srcdir}/pybind11 - git config submodule."third_party/nccl".url ${srcdir}/nccl - git config submodule."third_party/cub".url ${srcdir}/cub - git config submodule."third_party/eigen".url ${srcdir}/eigen-git-mirror - git config submodule."third_party/googletest".url ${srcdir}/googletest - git config submodule."third_party/nervanagpu".url ${srcdir}/nervanagpu - git config submodule."third_party/benchmark".url ${srcdir}/benchmark - git config submodule."third_party/protobuf".url ${srcdir}/protobuf - git config submodule."third_party/ios-cmake".url ${srcdir}/ios-cmake - git config submodule."third_party/NNPACK".url ${srcdir}/NNPACK - git config submodule."third_party/gloo".url ${srcdir}/gloo - git config submodule."third_party/NNPACK_deps/pthread_ool".url ${srcdir}/pthreadpool - git config submodule."third_party/NNPACK_deps/FXdiv".url ${srcdir}/FXdiv - git config submodule."third_party/NNPACK_deps/FP16".url ${srcdir}/FP16 - git config submodule."third_party/NNPACK_deps/psimd".url ${srcdir}/psimd - git config submodule."third_party/zstd".url ${srcdir}/zstd - git config submodule."third_party/cpuinfo".url ${srcdir}/cpuinfo - git config submodule."third_party/python-enum".url ${srcdir}/enum34 - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Thursday, May 31, 2018 @ 08:39:48 Author: svenstaro Revision: 334626 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 334625, python-pytorch/trunk/PKGBUILD) python-pytorch/repos/community-x86_64/noplt.patch (from rev 334625, python-pytorch/trunk/noplt.patch) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD python-pytorch/repos/community-x86_64/noplt.patch -+ PKGBUILD| 337 ++ noplt.patch | 26 ++-- 2 files changed, 215 insertions(+), 148 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-05-31 08:39:38 UTC (rev 334625) +++ PKGBUILD2018-05-31 08:39:48 UTC (rev 334626) @@ -1,135 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -_commit=200fb22 -pkgver=0.4.0 -pkgrel=1 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'gcc5' 'cmake' 'cuda' 'cudnn' 'git' 'python2-typing') -source=("${_pkgname}-${pkgver}::git+https://github.com/pytorch/pytorch.git#commit=$_commit; -"git://github.com/facebookincubator/gloo" -"git://github.com/pybind/pybind11" -"git://github.com/nanopb/nanopb" -noplt.patch) -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP' -'8e845663abbbd78bd4d3fcb8997b85c644a09470b166ed3a95429636670eb4ef') - -prepare() { - cd "${_pkgname}-${pkgver}" - - patch -Np1 -i "${srcdir}"/noplt.patch - - git submodule init - git config submodule."torch/lib/gloo".url ${srcdir}/gloo - git config submodule."torch/lib/pybind11".url ${srcdir}/pybind11 - git config submodule."torch/lib/nanopb".url ${srcdir}/nanopb - git submodule update - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3-cuda" -} - -build() { - msg2 "Building Python 2 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py2" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python2 setup.py build - - msg2 "Building Python 3 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py3" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python setup.py build - - msg2 "Building Python 2 with cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - CC=gcc-5 \ - CXX=g++-5 \ - WITH_CUDA=1 \ - CUDA_HOME=/opt/cuda \ - WITH_CUDNN=1 \ - CUDNN_LIB_DIR=/opt/cuda/lib64 \ - CUDNN_INCLUDE_DIR=/opt/cuda/include \ - TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" \ - python2 setup.py build - - msg2 "Building Python 3 with cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py3-cuda" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - CC=gcc-5 \ - CXX=g++-5 \ - WITH_CUDA=1 \ - CUDA_HOME=/opt/cuda \ - WITH_CUDNN=1 \ - CUDNN_LIB_DIR=/opt/cuda/lib64 \ - CUDNN_INCLUDE_DIR=/opt/cuda/include \ - TORCH_NVCC_FLAGS="-D__CUDA_NO_HALF_OPERATORS__" \ - python setup.py build -} - -package_python2-pytorch() { - depends+=('python2' 'python2-yaml' 'python2-numpy' 'python2-typing') - cd "$srcdir/${_pkgname}-${pkgver}-py2" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python-pytorch() { - depends+=('python' 'python-yaml' 'python-numpy') - cd "$srcdir/${_pkgname}-${pkgver}-py3" - python setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Wednesday, December 6, 2017 @ 04:22:07 Author: svenstaro Revision: 272388 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/2334.patch (from rev 272387, python-pytorch/trunk/2334.patch) python-pytorch/repos/community-x86_64/PKGBUILD (from rev 272387, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/2334.patch python-pytorch/repos/community-x86_64/PKGBUILD + 2334.patch | 42 - PKGBUILD | 273 ++- 2 files changed, 164 insertions(+), 151 deletions(-) Deleted: 2334.patch === --- 2334.patch 2017-12-06 04:21:50 UTC (rev 272387) +++ 2334.patch 2017-12-06 04:22:07 UTC (rev 272388) @@ -1,21 +0,0 @@ -From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 -From: Mo Zhou-Date: Tue, 8 Aug 2017 09:58:23 + -Subject: [PATCH] THD: add a missing header to fix build failure - - torch/lib/THD/base/ChannelUtils.hpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp -index 563e68297e..e03e8bd132 100644 a/torch/lib/THD/base/ChannelUtils.hpp -+++ b/torch/lib/THD/base/ChannelUtils.hpp -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include - #include - #include - #include Copied: python-pytorch/repos/community-x86_64/2334.patch (from rev 272387, python-pytorch/trunk/2334.patch) === --- 2334.patch (rev 0) +++ 2334.patch 2017-12-06 04:22:07 UTC (rev 272388) @@ -0,0 +1,21 @@ +From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 +From: Mo Zhou +Date: Tue, 8 Aug 2017 09:58:23 + +Subject: [PATCH] THD: add a missing header to fix build failure + +--- + torch/lib/THD/base/ChannelUtils.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +index 563e68297e..e03e8bd132 100644 +--- a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include Deleted: PKGBUILD === --- PKGBUILD2017-12-06 04:21:50 UTC (rev 272387) +++ PKGBUILD2017-12-06 04:22:07 UTC (rev 272388) @@ -1,130 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -pkgver=0.2.0 -pkgrel=4 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'gcc6' 'cmake' 'cuda' 'cudnn') -source=("https://github.com/pytorch/pytorch/archive/v${pkgver}.tar.gz; - "nccl.tar.gz::https://github.com/NVIDIA/nccl/archive/29a1a916dc14bb2c00feed3d4820d51fa85be1e6.tar.gz; -2334.patch) -sha256sums=('b76d61aaa8fc18b928ca3c910c398687be08f5661d6615884c4faba3e8742a26' -'6387030e37d14762f87eefbc86ee527293ec04745c66ccd820cf7fc0fdc23f92' -'1933b0e73785cc3d24013815c79f36267380239f2cbf0561b7702e0d5af61daf') - -prepare() { - cd "${_pkgname}-${pkgver}" - sed -i -e '144icp -r nccl gloo/third-party/' torch/lib/build_all.sh - sed -i -e '470,475d' setup.py - - # Hack to build with new cuda 9 - rm -r torch/lib/nccl/src - cp -r "${srcdir}"/nccl-*/* torch/lib/nccl - - patch -Np1 < ${srcdir}/2334.patch - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3-cuda" -} - -build() { - msg2 "Building Python 2 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py2" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python2 setup.py build - - msg2 "Building Python 3 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py3" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python setup.py build - -
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Monday, November 20, 2017 @ 00:54:28 Author: svenstaro Revision: 267509 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/2334.patch (from rev 267508, python-pytorch/trunk/2334.patch) python-pytorch/repos/community-x86_64/PKGBUILD (from rev 267508, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/2334.patch python-pytorch/repos/community-x86_64/PKGBUILD + 2334.patch | 42 - PKGBUILD | 258 +-- 2 files changed, 151 insertions(+), 149 deletions(-) Deleted: 2334.patch === --- 2334.patch 2017-11-20 00:54:15 UTC (rev 267508) +++ 2334.patch 2017-11-20 00:54:28 UTC (rev 267509) @@ -1,21 +0,0 @@ -From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 -From: Mo Zhou-Date: Tue, 8 Aug 2017 09:58:23 + -Subject: [PATCH] THD: add a missing header to fix build failure - - torch/lib/THD/base/ChannelUtils.hpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp -index 563e68297e..e03e8bd132 100644 a/torch/lib/THD/base/ChannelUtils.hpp -+++ b/torch/lib/THD/base/ChannelUtils.hpp -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include - #include - #include - #include Copied: python-pytorch/repos/community-x86_64/2334.patch (from rev 267508, python-pytorch/trunk/2334.patch) === --- 2334.patch (rev 0) +++ 2334.patch 2017-11-20 00:54:28 UTC (rev 267509) @@ -0,0 +1,21 @@ +From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 +From: Mo Zhou +Date: Tue, 8 Aug 2017 09:58:23 + +Subject: [PATCH] THD: add a missing header to fix build failure + +--- + torch/lib/THD/base/ChannelUtils.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +index 563e68297e..e03e8bd132 100644 +--- a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include Deleted: PKGBUILD === --- PKGBUILD2017-11-20 00:54:15 UTC (rev 267508) +++ PKGBUILD2017-11-20 00:54:28 UTC (rev 267509) @@ -1,128 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -pkgver=0.2.0 -pkgrel=3 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'gcc6' 'cmake' 'cuda' 'cudnn') -source=("https://github.com/pytorch/pytorch/archive/v${pkgver}.tar.gz; - "nccl.tar.gz::https://github.com/NVIDIA/nccl/archive/29a1a916dc14bb2c00feed3d4820d51fa85be1e6.tar.gz; -2334.patch) -sha256sums=('b76d61aaa8fc18b928ca3c910c398687be08f5661d6615884c4faba3e8742a26' -'6387030e37d14762f87eefbc86ee527293ec04745c66ccd820cf7fc0fdc23f92' -'1933b0e73785cc3d24013815c79f36267380239f2cbf0561b7702e0d5af61daf') - -prepare() { - cd "${_pkgname}-${pkgver}" - sed -i -e '144icp -r nccl gloo/third-party/' torch/lib/build_all.sh - sed -i -e '470,475d' setup.py - - # Hack to build with new cuda 9 - rm -r torch/lib/nccl/src - cp -r "${srcdir}"/nccl-*/* torch/lib/nccl - - patch -Np1 < ${srcdir}/2334.patch - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3-cuda" -} - -build() { - msg2 "Building Python 2 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py2" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python2 setup.py build - - msg2 "Building Python 3 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py3" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python setup.py build - -
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (4 files)
Date: Sunday, October 15, 2017 @ 17:26:11 Author: svenstaro Revision: 262957 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/2334.patch (from rev 262955, python-pytorch/trunk/2334.patch) python-pytorch/repos/community-x86_64/PKGBUILD (from rev 262955, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/2334.patch python-pytorch/repos/community-x86_64/PKGBUILD + 2334.patch | 42 - PKGBUILD | 256 +-- 2 files changed, 149 insertions(+), 149 deletions(-) Deleted: 2334.patch === --- 2334.patch 2017-10-15 17:26:10 UTC (rev 262956) +++ 2334.patch 2017-10-15 17:26:11 UTC (rev 262957) @@ -1,21 +0,0 @@ -From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 -From: Mo Zhou-Date: Tue, 8 Aug 2017 09:58:23 + -Subject: [PATCH] THD: add a missing header to fix build failure - - torch/lib/THD/base/ChannelUtils.hpp | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp -index 563e68297e..e03e8bd132 100644 a/torch/lib/THD/base/ChannelUtils.hpp -+++ b/torch/lib/THD/base/ChannelUtils.hpp -@@ -5,6 +5,7 @@ - #include - #include - #include -+#include - #include - #include - #include Copied: python-pytorch/repos/community-x86_64/2334.patch (from rev 262955, python-pytorch/trunk/2334.patch) === --- 2334.patch (rev 0) +++ 2334.patch 2017-10-15 17:26:11 UTC (rev 262957) @@ -0,0 +1,21 @@ +From 5e2b1b975bf758b67a190444a1d4a6f18c997095 Mon Sep 17 00:00:00 2001 +From: Mo Zhou +Date: Tue, 8 Aug 2017 09:58:23 + +Subject: [PATCH] THD: add a missing header to fix build failure + +--- + torch/lib/THD/base/ChannelUtils.hpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +index 563e68297e..e03e8bd132 100644 +--- a/torch/lib/THD/base/ChannelUtils.hpp b/torch/lib/THD/base/ChannelUtils.hpp +@@ -5,6 +5,7 @@ + #include + #include + #include ++#include + #include + #include + #include Deleted: PKGBUILD === --- PKGBUILD2017-10-15 17:26:10 UTC (rev 262956) +++ PKGBUILD2017-10-15 17:26:11 UTC (rev 262957) @@ -1,128 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python2-pytorch" "python-pytorch-cuda" "python2-pytorch-cuda") -_pkgname="pytorch" -pkgver=0.2.0 -pkgrel=2 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="http://pytorch.org; -license=('BSD') -makedepends=('python' 'python-setuptools' 'python2' 'python2-setuptools' - 'python-yaml' 'python2-yaml' 'python-numpy' 'python2-numpy' - 'gcc6' 'cmake' 'cuda' 'cudnn') -source=("https://github.com/pytorch/pytorch/archive/v${pkgver}.tar.gz; - "nccl.tar.gz::https://github.com/NVIDIA/nccl/archive/29a1a916dc14bb2c00feed3d4820d51fa85be1e6.tar.gz; -2334.patch) -sha256sums=('b76d61aaa8fc18b928ca3c910c398687be08f5661d6615884c4faba3e8742a26' -'6387030e37d14762f87eefbc86ee527293ec04745c66ccd820cf7fc0fdc23f92' -'1933b0e73785cc3d24013815c79f36267380239f2cbf0561b7702e0d5af61daf') - -prepare() { - cd "${_pkgname}-${pkgver}" - sed -i -e '144icp -r nccl gloo/third-party/' torch/lib/build_all.sh - sed -i -e '470,475d' setup.py - - # Hack to build with new cuda 9 - rm -r torch/lib/nccl/src - cp -r "${srcdir}"/nccl-*/* torch/lib/nccl - - patch -Np1 < ${srcdir}/2334.patch - - cd .. - - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py2-cuda" - cp -a "${_pkgname}-${pkgver}" "${_pkgname}-${pkgver}-py3-cuda" -} - -build() { - msg2 "Building Python 2 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py2" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python2 setup.py build - - msg2 "Building Python 3 without cuda" - cd "$srcdir/${_pkgname}-${pkgver}-py3" - # Uncomment and modify the following line to enable Intel MKL and magma support - #CMAKE_PREFIX_PATH=/opt/intel/mkl/include:/opt/intel/mkl/lib/intel64:/opt/magma \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - NO_CUDA=1 \ - WITH_CUDA=0 \ - WITH_CUDNN=0 \ - python setup.py build - -