blob: 9e297dd31417c7ebe1abf74cfd09e9629cdc76bd (
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
|
# Maintainer: Jakub Klinkovský <lahwaacz@archlinux.org>
# Contributor: Daniel Bershatsky <bepshatsky@yandex.ru>
pkgname=cutlass-headers
pkgver=3.6.0
pkgrel=1
pkgdesc="CUDA Templates for Linear Algebra Subroutines (headers only)"
arch=(x86_64)
url="https://github.com/NVIDIA/cutlass"
license=(BSD-3-Clause)
depends=(cuda)
makedepends=(cmake ninja)
conflicts=(cutlass)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
b2sums=('73b69dcee72ca791b4474bd39c821987627576ffbb0bb46261cf58bce9cc585f5002b8e42c1657feb88ca34d2e4575f7623526ec1715393b052128544dff449b')
build() {
local cmake_options=(
-B build
-S cutlass-$pkgver
-G Ninja
-W no-dev
-DCMAKE_BUILD_TYPE=None
-DCMAKE_INSTALL_PREFIX=/usr
# this should not actually build anything, we want to install just the headers
-DCUTLASS_ENABLE_HEADERS_ONLY=ON
-DCUTLASS_INSTALL_TESTS=OFF
)
cmake "${cmake_options[@]}"
cmake --build build
}
package() {
DESTDIR="$pkgdir" cmake --install build
install -vDm 644 cutlass-$pkgver/LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
rm -rfv "$pkgdir"/usr/test
}
|