Commit 6e89056f authored by Leo's avatar Leo
Browse files

testing/lc0: remove

parent 54528115
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=lc0
pkgver=0.26.3
pkgrel=0
_commit=c6df65828f3a31919f3f0ad83ff32ed269292b1f
pkgdesc="Neural Network UCI-compliant Chess Engine"
url="https://lczero.org"
arch="all !mips64" # blocked by openblas
license="GPL-3.0-or-later"
makedepends="
meson
zlib-dev
eigen-dev
openblas-dev
gtest-dev
glib-dev
"
install="$pkgname.post-install"
source="$pkgname-$pkgver.tar.gz::https://github.com/LeelaChessZero/lc0/archive/v$pkgver.tar.gz
$pkgname-common-$pkgver.tar.gz::https://github.com/LeelaChessZero/lczero-common/archive/$_commit.tar.gz
"
case "$CARCH" in
ppc64le) _opencl=false ;;
*)
_opencl=true
makedepends="$makedepends opencl-headers opencl-icd-loader-dev"
;;
esac
prepare() {
default_prepare
mv "$srcdir"/lczero-common-$_commit/proto libs/lczero-common
}
build() {
abuild-meson \
-Dopencl=$_opencl \
-Dopenblas=true \
-Dgtest=true \
. output
meson compile ${JOBS:+-j ${JOBS}} -C output
}
check() {
cd output
gtester chessboard_test
gtester encoder_test
gtester hashcat_test
gtester optionsparser_test
gtester position_test
gtester syzygy_test
}
package() {
DESTDIR="$pkgdir" meson install --no-rebuild -C output
}
sha512sums="4cce5c205e9f057c8a9728b76bf3a6ed5a7122f24c245edaa44d222924171e7c0d37aea185f35c8ef2da275305e8c69e9de23719f7d49f48765ab17a2c46b50b lc0-0.26.3.tar.gz
f80c09500c078c6f498ed6c933bb74af5406fce8e3af9117f8b21b6b0ac20f856a8450dde70ce360489fb20028ec9c6ebf15549300bb6769fa492acec550de5e lc0-common-0.26.3.tar.gz"
#!/bin/sh
cat << __EOF__
*
* lc0 as provided by Alpine Linux does not provide any network file, which is
* required to have the engine to function. Download one of the recommended
* networks here[1] and put them in $XDG_DATA_HOME/lc0/networks (defaults to
* $HOME/.local/share), lc0 reads them from newest to oldest.
*
* It also uses OpenCL backend by default (except ppc64le which has no OpenCL),
* which means you need to install an OpenCL loader like 'intel-compute-runtime'
* or use the slower BLAS backend.
*
* [1] https://github.com/LeelaChessZero/lc0/wiki/Best-Nets-for-Lc0
*
__EOF__
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment