summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD33
2 files changed, 54 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b88d3b3ec7e
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+# Generated by makepkg 5.0.1
+# Fri Jan 20 18:59:38 UTC 2017
+pkgbase = nccl-git
+ pkgdesc = NVIDIA CUDA optimized primitives for collective multi-GPU communication
+ pkgver = 1.3.0.1.r13.2a974f5
+ pkgrel = 1
+ url = https://github.com/NVIDIA/nccl.git
+ arch = i686
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = make
+ depends = cuda>=7.0
+ optdepends = openmpi: To use `ncclCommInitRank` in multi-process applications
+ provides = nccl
+ conflicts = nccl
+ source = git+https://github.com/NVIDIA/nccl.git
+ md5sums = SKIP
+
+pkgname = nccl-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d5b7af9318f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Christos Tsirigotis <tsirif \at/ gmail \dot/ com>
+# Date: 2017-01-17
+pkgname=nccl-git
+_pkgname='nccl'
+pkgver=1.3.0.1.r13.2a974f5
+pkgrel=1
+pkgdesc="NVIDIA CUDA optimized primitives for collective multi-GPU communication"
+arch=('i686' 'x86_64')
+url="https://github.com/NVIDIA/nccl.git"
+license=('BSD')
+depends=('cuda>=7.0')
+makedepends=('git' 'make')
+optdepends=('openmpi: To use `ncclCommInitRank` in multi-process applications')
+provides=('nccl')
+conflicts=('nccl')
+source=("git+https://github.com/NVIDIA/nccl.git")
+md5sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/${_pkgname}"
+ printf "%s" "$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g;s/^.//')"
+}
+
+build() {
+ cd "${srcdir}/${_pkgname}"
+ make CUDA_HOME=/opt/cuda all
+}
+
+package() {
+ cd "${srcdir}/${_pkgname}"
+ make CUDA_HOME=/opt/cuda PREFIX=${pkgdir}/opt/cuda install
+ install -D -m644 LICENSE.txt "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
+}