blob: cd0b5e0b0fe07c42984de73ea1af5008d0b48ccc (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: crl <crl18039102576@126.com>
pkgbase=rmm
pkgname=(rmm python-rmm)
pkgver=26.04.00
pkgrel=1
pkgdesc="RAPIDS Memory Manager"
url="https://github.com/rapidsai/rmm"
arch=('x86_64')
license=('Apache-2.0')
depends=('libgcc' 'libstdc++' 'cuda' 'nvtx3' 'rapids-logger')
makedepends=('cmake' 'gcc' 'ninja' 'cython' 'python-build' 'python-installer' 'python-wheel' 'python-rapids-build-backend')
source=(
"$url/archive/refs/tags/v$pkgver.tar.gz"
"system-lib.patch"
"missing-pkg.patch"
)
sha256sums=(
'2322bebb6311efa795967a1a819c434d4e5b562f88999dc2535cf085859050f5'
'ad3569a92322a8878c0e9a1e33e3fabcef773b427706c42e586b3104cea3c13d'
'1c5d8c1f36bea1934d778124c8fb79a27e4f1b8e408e18a8afc7d5309acdac58'
)
prepare() {
cd "$srcdir/$pkgname-$pkgver"
patch -p1 cpp/CMakeLists.txt < "$srcdir/system-lib.patch"
patch -p1 python/rmm/CMakeLists.txt < "$srcdir/missing-pkg.patch"
}
build() {
cd "$srcdir/$pkgname-$pkgver"
cmake -B build -S cpp \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DBUILD_TESTS=OFF \
-DRMM_NVTX=ON \
-G Ninja
cmake --build build
cd python/rmm
export rmm_DIR="$srcdir/$pkgname-$pkgver/build"
python -m build --wheel --no-isolation --skip-dependency-check
}
package_rmm() {
cd "$srcdir/$pkgname-$pkgver"
DESTDIR="$pkgdir" cmake --install build
}
package_python-rmm() {
depends+=('python-cuda' 'rmm')
cd "$srcdir/$pkgbase-$pkgver/python/rmm"
python -m installer --destdir="$pkgdir" dist/*.whl
}
|