Package Details: viennacl 1.7.1-2

Git Clone URL: https://aur.archlinux.org/viennacl.git (read-only, click to copy)
Package Base: viennacl
Description: The library provides high level C++ interfaces for linear algebra routines on CPUs and GPUs using CUDA, OpenCL and OpenMP.
Upstream URL: http://viennacl.sourceforge.net/
Licenses: custom
Submitter: onefire
Maintainer: intelfx
Last Packager: intelfx
Votes: 14
Popularity: 0.000000
First Submitted: 2013-03-07 07:56 (UTC)
Last Updated: 2017-01-21 07:38 (UTC)

Latest Comments

a.kudelin commented on 2021-11-28 13:10 (UTC)

Please update PKGBUILD with:

# Maintainer:  Ivan Shapovalov <intelfx@intelfx.name>
# Contributor: onefire <onefire.myself@gmail.com>

pkgname=viennacl
_PkgName=ViennaCL
pkgver=1.7.1
pkgrel=3
pkgdesc="Linear algebra and solver library using CUDA, OpenCL, and OpenMP"
arch=('x86_64')
url="http://viennacl.sourceforge.net"
license=('MIT')
depends=('gcc-libs' 'eigen' 'ocl-icd')
makedepends=('cmake')
optdepends=('cuda: run on NVIDIA GPUs')
source=("https://downloads.sourceforge.net/$pkgname/$_PkgName-$pkgver.zip")
sha256sums=('1e9ffaa9d1dd22202cbd10ec8a8450184bceb41bbd90ebe2effd50be2015a7f6')

prepare() {
  mkdir -p "$srcdir/build"

  # Checking if nvcc is in PATH
  if command -v nvcc &> /dev/null
  then
      export _ACC=CUDA
      export LDFLAGS="$LDFLAGS -L/opt/cuda/lib64"
      echo "GPU is enabled"
  else
      export _ACC=OFF
      echo "GPU is disabled"
  fi
}

build() {

  cd "$srcdir/build"
  cmake ../"$_PkgName-$pkgver" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DENABLE_ASAN=ON \
    -DENABLE_OPENMP=ON \
    -DENABLE_CUDA=$_ACC \
    -DENABLE_EIGEN=ON \
    -DEIGEN_INCLUDE_DIR=/usr/include/eigen3
  make
}

package() {
  cd "$srcdir/build"
  make DESTDIR="$pkgdir" install
  install -m755 "libviennacl/libviennacl.so" "$pkgdir/usr/lib"
  install -Dm755 "../$_PkgName-$pkgver/LICENSE" \
    "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

aquafox commented on 2017-01-27 06:11 (UTC)

Thanks for the update! This package has been really helpful.

Elzair commented on 2015-07-17 17:51 (UTC)

Should beignet https://aur4.archlinux.org/packages/beignet/ be listed as an optional dependency?

parsiad commented on 2014-11-23 19:47 (UTC)

For version 1.6.1: pkgname=viennacl _pkgname=ViennaCL pkgver=1.6.1 _pkgver=1.6.x pkgrel=1 pkgdesc="The library provides high level C++ interfaces for linear algebra routines on CPUs and GPUs using CUDA, OpenCL and OpenMP." arch=('any') url="http://viennacl.sourceforge.net/" depends=("libcl" "opencl-headers") optdepends=("cuda" "opencl-nvidia") license=('custom') source=("http://iweb.dl.sourceforge.net/project/${pkgname}/${_pkgver}/${_pkgname}-${pkgver}.tar.gz") sha512sums=('92e5e13417ee6abee8a0eadb191b071ad0ff12985ac13ef02fd6600f86f5168d5e4a7cfc42f7a8be3de3bfc8ea550c865486b57c92c2ceb2854b96646d26702c') package() { cd "${srcdir}"/"${_pkgname}"-"${pkgver}" mkdir -p "${pkgdir}"/usr/include mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}" mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}" cp -r "${pkgname}" "${pkgdir}"/usr/include chmod -R 755 "${pkgdir}"/usr/include/"${pkgname}"/ install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}" #install -m 644 doc/"${pkgname}".pdf "${pkgdir}"/usr/share/doc/"${pkgname}" }

parsiad commented on 2014-11-14 19:57 (UTC)

For version 1.6.0: pkgname=viennacl _pkgname=ViennaCL pkgver=1.6.0 _pkgver=1.6.x pkgrel=1 pkgdesc="The library provides high level C++ interfaces for linear algebra routines on CPUs and GPUs using CUDA, OpenCL and OpenMP." arch=('any') url="http://viennacl.sourceforge.net/" depends=("libcl" "opencl-headers") optdepends=("cuda" "opencl-nvidia") license=('custom') source=("http://iweb.dl.sourceforge.net/project/${pkgname}/${_pkgver}/${_pkgname}-${pkgver}.tar.gz") sha512sums=('51d288e759d77d17c2917473451480b6c046313b206af503152192bf3e273791cab33cc6cb199d3ecf8e1873789d9567a88d8c5041a8d600c53df59b9f029b6d') package() { cd "${srcdir}"/"${_pkgname}"-"${pkgver}" mkdir -p "${pkgdir}"/usr/include mkdir -p "${pkgdir}"/usr/share/licenses/"${pkgname}" mkdir -p "${pkgdir}"/usr/share/doc/"${pkgname}" cp -r "${pkgname}" "${pkgdir}"/usr/include chmod -R 755 "${pkgdir}"/usr/include/"${pkgname}"/ install -m 644 LICENSE "${pkgdir}"/usr/share/licenses/"${pkgname}" #install -m 644 doc/"${pkgname}".pdf "${pkgdir}"/usr/share/doc/"${pkgname}" }