[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, January 2, 2020 @ 12:14:58 Author: svenstaro Revision: 546062 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 546061, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 326 ++--- 1 file changed, 163 insertions(+), 163 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2020-01-02 12:14:45 UTC (rev 546061) +++ PKGBUILD2020-01-02 12:14:58 UTC (rev 546062) @@ -1,163 +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.3.1 -pkgrel=6 -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;) -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 - - # 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 - - # Fix build with Python 3.8 - # https://github.com/pytorch/pytorch/issues/28060 - find -name '*.cpp' -exec sed -i '/tp_print/s/nullptr/0/' {} + - - 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 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, - #
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Sunday, November 17, 2019 @ 22:38:31 Author: svenstaro Revision: 530255 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 530254, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 326 ++--- 1 file changed, 163 insertions(+), 163 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-11-17 22:38:19 UTC (rev 530254) +++ PKGBUILD2019-11-17 22:38:31 UTC (rev 530255) @@ -1,163 +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.3.1 -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;) -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 - - # 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 - - # Fix build with Python 3.8 - # https://github.com/pytorch/pytorch/issues/28060 - find -name '*.cpp' -exec sed -i '/tp_print/s/nullptr/0/' {} + - - 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.1;6.2;7.0;7.2;7.5" -} - -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 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
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Tuesday, November 12, 2019 @ 23:03:02 Author: svenstaro Revision: 527041 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 527040, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 323 ++--- 1 file changed, 163 insertions(+), 160 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-11-12 23:02:50 UTC (rev 527040) +++ PKGBUILD2019-11-12 23:03:02 UTC (rev 527041) @@ -1,160 +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.3.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' 'ffmpeg' 'python-future') -makedepends=('python' 'python-setuptools' 'python-yaml' 'python-numpy' 'cmake' 'cuda' 'cudnn' 'git' 'magma' 'qt5-base') -optdepends=('qt5-base: HighGUI module') -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 - - # 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 - - 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.1;6.2;7.0;7.2;7.5" -} - -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 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" - - # python module is hardcoded to look there at runtime - ln -s
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Saturday, May 4, 2019 @ 15:16:38 Author: kgizdov Revision: 458912 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 458911, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 290 + 1 file changed, 141 insertions(+), 149 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-05-04 15:16:03 UTC (rev 458911) +++ PKGBUILD2019-05-04 15:16:38 UTC (rev 458912) @@ -1,149 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.1 -pkgrel=8 -pkgdesc="Tensors and Dynamic neural networks in Python with strong GPU acceleration" -arch=('x86_64') -url="https://pytorch.org; -license=('BSD') -depends=('opencv' 'openmp' 'nccl' 'pybind11' 'python' 'python-yaml' 'python-numpy') -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}-cuda" -} - -build() { - export CC=gcc - export CXX=g++ - export PYTORCH_BUILD_VERSION=${pkgver} - export PYTORCH_BUILD_NUMBER=1 - - 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}" - 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/bin" - install -d "${pkgdir}/usr/include" - install -d "${pkgdir}/usr/lib/pytorch" - torchlibpath="${pytorchpath}/lib" - mv "${pkgdir}/${torchlibpath}/include"/* "${pkgdir}/usr/include/" - mv "${pkgdir}/${torchlibpath}/THCUNN.h" "${pkgdir}/usr/include/" - mv "${pkgdir}/${torchlibpath}/THNN.h" "${pkgdir}/usr/include/" - mv "${pkgdir}/${torchlibpath}"/*.so* "${pkgdir}/usr/lib/pytorch/" - mv "${pkgdir}/${torchlibpath}/torch_shm_manager" "${pkgdir}/usr/bin/" - # 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}/${torchlibpath}/include" - rm -rf "${pkgdir}/usr/include/pybind11" - rm -rf "${pkgdir}/usr/lib/pytorch/libiomp5.so" # remove openmp lib - # python module is hardcoded to look there at runtime - ln -s /usr/include/THCUNN.h "${pkgdir}/${torchlibpath}/" - ln -s /usr/include/THNN.h "${pkgdir}/${torchlibpath}/" - ln -s /usr/include "${pkgdir}/${torchlibpath}/include" - find "${pkgdir}"/usr/lib/pytorch -type f -name "*.so*" -print0 | while read -rd '' _lib; do -ln -s ${_lib#"$pkgdir"} "${pkgdir}/${torchlibpath}/" - done - ln -s /usr/bin/torch_shm_manager "${pkgdir}/${torchlibpath}/torch_shm_manager" - # 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 "$srcdir/${_pkgname}-${pkgver}-cuda" - python setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" - # put CMake files in
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Friday, March 29, 2019 @ 14:09:26 Author: svenstaro Revision: 446015 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 446014, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 228 - 1 file changed, 77 insertions(+), 151 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-03-29 14:09:16 UTC (rev 446014) +++ PKGBUILD2019-03-29 14:09:26 UTC (rev 446015) @@ -1,151 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Co-Maintainer: Konstantin Gizdov -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.1 -pkgrel=4 -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' 'gcc') -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/google/benchmark; -"git+https://github.com/google/protobuf; -"git+https://github.com/Yangqing/ios-cmake; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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/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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config submodule."third_party/sleef".url "${srcdir}"/sleef - git config submodule."third_party/ideep".url "${srcdir}"/ideep - git submodule
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Wednesday, February 6, 2019 @ 10:27:07 Author: svenstaro Revision: 429725 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 429724, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 304 ++--- 1 file changed, 153 insertions(+), 151 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-02-06 10:26:54 UTC (rev 429724) +++ PKGBUILD2019-02-06 10:27:07 UTC (rev 429725) @@ -1,151 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.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=('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; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Tuesday, January 29, 2019 @ 16:57:21 Author: svenstaro Revision: 428412 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 428411, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 302 ++--- 1 file changed, 151 insertions(+), 151 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-01-29 16:57:08 UTC (rev 428411) +++ PKGBUILD2019-01-29 16:57:21 UTC (rev 428412) @@ -1,151 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.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=('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; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Friday, January 25, 2019 @ 22:10:45 Author: svenstaro Revision: 427926 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 427925, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 302 ++--- 1 file changed, 151 insertions(+), 151 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2019-01-25 22:10:33 UTC (rev 427925) +++ PKGBUILD2019-01-25 22:10:45 UTC (rev 427926) @@ -1,151 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.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=('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; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Wednesday, December 19, 2018 @ 08:54:50 Author: svenstaro Revision: 416755 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 416754, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 302 ++--- 1 file changed, 151 insertions(+), 151 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-12-19 08:54:41 UTC (rev 416754) +++ PKGBUILD2018-12-19 08:54:50 UTC (rev 416755) @@ -1,151 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.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=('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; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Monday, December 10, 2018 @ 16:51:47 Author: svenstaro Revision: 414304 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 414303, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 303 ++--- 1 file changed, 151 insertions(+), 152 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-12-10 16:51:45 UTC (rev 414303) +++ PKGBUILD2018-12-10 16:51:47 UTC (rev 414304) @@ -1,152 +0,0 @@ -# Maintainer: Sven-Hendrik Haase -# Contributor: Stephen Zhang - -pkgbase="python-pytorch" -pkgname=("python-pytorch" "python-pytorch-cuda") -_pkgname="pytorch" -pkgver=1.0.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=('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; -"git+https://github.com/Maratyszcza/NNPACK; -"git+https://github.com/facebookincubator/gloo; -"git+https://github.com/Maratyszcza/pthreadpool; -"git+https://github.com/Maratyszcza/FXdiv; -"git+https://github.com/Maratyszcza/FP16; -"git+https://github.com/Maratyszcza/psimd; -"git+https://github.com/facebook/zstd; -"git+https://github.com/Maratyszcza/cpuinfo; -"git+https://github.com/PeachPy/enum34; -"git+https://github.com/Maratyszcza/PeachPy; -"git+https://github.com/benjaminp/six; -"git+https://github.com/ARM-software/ComputeLibrary; -"git+https://github.com/onnx/onnx; -"git+https://github.com/USCILab/cereal; -"git+https://github.com/onnx/onnx-tensorrt; -"git+https://github.com/shibatch/sleef; -"git+https://github.com/intel/ideep;) -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' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - git submodule init - git config submodule."third_party/catch".url "${srcdir}"/Catch2 - git config submodule."third_party/pybind11".url "${srcdir}"/pybind11 - 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 submodule."third_party/python-peachpy".url "${srcdir}"/PeachPy - git config submodule."third_party/python-six".url "${srcdir}"/six - git config submodule."third_party/ComputeLibrary".url "${srcdir}"/ComputeLibrary - git config submodule."third_party/onnx".url "${srcdir}"/onnx - git config submodule."third_party/cereal".url "${srcdir}"/cereal - git config submodule."third_party/onnx-tensorrt".url "${srcdir}"/onnx-tensorrt - git config
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Friday, March 16, 2018 @ 02:43:20 Author: svenstaro Revision: 308736 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 308735, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 262 ++--- 1 file changed, 131 insertions(+), 131 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-03-16 02:43:01 UTC (rev 308735) +++ PKGBUILD2018-03-16 02:43:20 UTC (rev 308736) @@ -1,131 +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=2b47480 -pkgver=0.3.1 -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' - 'gcc6' 'cmake' 'cuda' 'cudnn' 'git') -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") -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - 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') - 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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python2-pytorch-cuda() { - depends+=('python2' 'python2-yaml' 'python2-numpy' 'cuda' 'cudnn') - provides=('python2-pytorch') - conflicts=('python2-pytorch') - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Sunday, February 18, 2018 @ 12:11:46 Author: svenstaro Revision: 296221 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 296220, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 262 ++--- 1 file changed, 131 insertions(+), 131 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-02-18 12:11:36 UTC (rev 296220) +++ PKGBUILD2018-02-18 12:11:46 UTC (rev 296221) @@ -1,131 +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=af3964a -pkgver=0.3.0 -pkgrel=5 -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' 'git') -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") -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CXXFLAGS/-fno-plt/}" \ - 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') - 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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python2-pytorch-cuda() { - depends+=('python2' 'python2-yaml' 'python2-numpy' 'cuda' 'cudnn') - provides=('python2-pytorch') - conflicts=('python2-pytorch') - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Thursday, January 18, 2018 @ 07:28:58 Author: svenstaro Revision: 283849 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 283848, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 261 ++--- 1 file changed, 131 insertions(+), 130 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2018-01-18 07:28:43 UTC (rev 283848) +++ PKGBUILD2018-01-18 07:28:58 UTC (rev 283849) @@ -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.3.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' 'git') -source=("${_pkgname}-${pkgver}::git://github.com/pytorch/pytorch.git#tag=v${pkgver}" -"git://github.com/facebookincubator/gloo" -"git://github.com/pybind/pybind11" -"git://github.com/nanopb/nanopb") -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - 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="${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 - - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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') - 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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python2-pytorch-cuda() { - depends+=('python2' 'python2-yaml' 'python2-numpy' 'cuda' 'cudnn') - provides=('python2-pytorch') - conflicts=('python2-pytorch') - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Sunday, December 31, 2017 @ 12:21:27 Author: svenstaro Revision: 277564 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 277563, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 258 ++--- 1 file changed, 130 insertions(+), 128 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2017-12-31 12:21:07 UTC (rev 277563) +++ PKGBUILD2017-12-31 12:21:27 UTC (rev 277564) @@ -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.3.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' 'git') -source=("${_pkgname}-${pkgver}::git://github.com/pytorch/pytorch.git#tag=v${pkgver}" -"git://github.com/facebookincubator/gloo" -"git://github.com/pybind/pybind11" -"git://github.com/nanopb/nanopb") -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - 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="${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 - - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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') - 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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python2-pytorch-cuda() { - depends+=('python2' 'python2-yaml' 'python2-numpy' 'cuda' 'cudnn') - conflicts=('python2-pytorch') - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} -
[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Date: Wednesday, December 27, 2017 @ 22:27:14 Author: svenstaro Revision: 276269 archrelease: copy trunk to community-x86_64 Added: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 276268, python-pytorch/trunk/PKGBUILD) Deleted: python-pytorch/repos/community-x86_64/PKGBUILD --+ PKGBUILD | 258 ++--- 1 file changed, 128 insertions(+), 130 deletions(-) Deleted: PKGBUILD === --- PKGBUILD2017-12-27 22:27:02 UTC (rev 276268) +++ PKGBUILD2017-12-27 22:27:14 UTC (rev 276269) @@ -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.3.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' 'git') -source=("${_pkgname}-${pkgver}::git://github.com/pytorch/pytorch.git#tag=v${pkgver}" -"git://github.com/facebookincubator/gloo" -"git://github.com/pybind/pybind11" -"git://github.com/nanopb/nanopb") -sha256sums=('SKIP' -'SKIP' -'SKIP' -'SKIP') - -prepare() { - cd "${_pkgname}-${pkgver}" - - 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="${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 - - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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 \ - CC=gcc-6 \ - CXX=g++-6 \ - CFLAGS="${CFLAGS/-fno-plt/}" \ - CXXFLAGS="${CFLAGS/-fno-plt/}" \ - 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') - 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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} - -package_python2-pytorch-cuda() { - depends+=('python2' 'python2-yaml' 'python2-numpy') - optdepends=('cuda' 'cudnn') - conflicts=('python2-pytorch') - cd "$srcdir/${_pkgname}-${pkgver}-py2-cuda" - python2 setup.py install --root="$pkgdir"/ --optimize=1 --skip-build - install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt" -} -