summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 286cec03aa12792861fe579a50b64cf99ae0f3d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: redponike <proton dot me>
# Contributor: Gavin Lloyd <gavinhungry@gmail.com>

pkgname=mixbench-cuda-git
pkgver=0.224.v0.04.13.g597b700
pkgrel=1
pkgdesc="GPU benchmark tool for evaluating GPUs on mixed operational intensity kernels (CUDA implementation)"
url="https://github.com/ekondis/mixbench"
license=('GPL2')
arch=('x86_64')
makedepends=('git' 'cmake')
depends=()
source=("${pkgname}::git+${url}.git#branch=master")
sha256sums=('SKIP')

warn_build_references() {
  /bin/true
}

pkgver () {
  cd "${srcdir}/${pkgname}"
  echo "0.$(git rev-list --count HEAD).$(git describe --always --tags | sed 's|-|.|g')"
}

build() {
  cd "${srcdir}/${pkgname}"

  cmake -B build -S mixbench-cuda \
    -DCMAKE_BUILD_TYPE=None \
    -Wno-dev

  make -C build
}

package() {
  cd "${srcdir}/${pkgname}/build"
  install -Dm755 "mixbench-cuda" "${pkgdir}/usr/bin/mixbench-cuda"
}