[arch-commits] Commit in python-pytorch/repos/community-x86_64 (PKGBUILD PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Sun Feb 18 12:11:47 UTC 2018
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
===================================================================
--- PKGBUILD 2018-02-18 12:11:36 UTC (rev 296220)
+++ PKGBUILD 2018-02-18 12:11:46 UTC (rev 296221)
@@ -1,131 +0,0 @@
-# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
-# Contributor: Stephen Zhang <zsrkmyn at gmail dot com>
-
-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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}
-
-package_python-pytorch-cuda() {
- depends+=('python' 'python-yaml' 'python-numpy' 'cuda' 'cudnn')
- provides=('python-pytorch')
- conflicts=('python-pytorch')
- cd "$srcdir/${_pkgname}-${pkgver}-py3-cuda"
- python setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
- install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
-}
-
-# vim:set ts=2 sw=2 et:
Copied: python-pytorch/repos/community-x86_64/PKGBUILD (from rev 296220, python-pytorch/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-02-18 12:11:46 UTC (rev 296221)
@@ -0,0 +1,131 @@
+# Maintainer: Sven-Hendrik Haase <sh at lutzhaase.com>
+# Contributor: Stephen Zhang <zsrkmyn at gmail dot com>
+
+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 "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+package_python-pytorch-cuda() {
+ depends+=('python' 'python-yaml' 'python-numpy' 'cuda' 'cudnn')
+ provides=('python-pytorch')
+ conflicts=('python-pytorch')
+ cd "$srcdir/${_pkgname}-${pkgver}-py3-cuda"
+ python setup.py install --root="$pkgdir"/ --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.txt"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list