blob: 0bfa709c3a115c4c9dd47f62d5136f6a60b084cb (
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
|
# Maintainer: Scott Cheng <aur@chengscott.io>
# Contributor: AchmadFathoni <fathoni.id@gmail.com>
pkgname=xgboost
pkgver=2.1.1
pkgrel=1
pkgdesc="An optimized distributed gradient boosting library"
arch=('x86_64')
url="https://github.com/dmlc/xgboost"
license=('Apache')
depends=(gcc-libs glibc)
makedepends=(cmake cuda git nccl)
source=("$pkgname"::"git+$url#tag=v${pkgver}"
"quantile.patch")
b2sums=('SKIP'
'715904014923edefd2824abb05462578be80f50c5ea76eca2b21f8403d345045917feb837aa67ab7014f07172a48b58e1a7d7f3d63d3f563ceb7dc0125d7a89d')
prepare() {
cd "${pkgname}"
git submodule update --init --recursive
# https://github.com/dmlc/xgboost/pull/10797
git apply "${srcdir}/quantile.patch"
}
build() {
cmake \
-B build \
-D CMAKE_BUILD_TYPE=Release \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_CUDA_HOST_COMPILER=$NVCC_CCBIN \
-D USE_CUDA=ON \
-D USE_NCCL=ON \
-S "${srcdir}/${pkgname}"
cmake --build build -j
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
|