Github messages for voidlinux
 help / color / mirror / Atom feed
From: shtayerc <shtayerc@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: lc0-openblas, lc0-opencl
Date: Mon, 11 May 2020 22:39:05 +0200	[thread overview]
Message-ID: <20200511203905.uad5IL40qxLdIO1yfhp-xSH5TNhpQm-w7htr_BPpPOo@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20392@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

There is an updated pull request by shtayerc against master on the void-packages repository

https://github.com/shtayerc/void-packages lc0
https://github.com/void-linux/void-packages/pull/20392

New packages: lc0-openblas, lc0-opencl


A patch file from https://github.com/void-linux/void-packages/pull/20392.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-lc0-20392.patch --]
[-- Type: text/x-diff, Size: 5857 bytes --]

From 68c2325f959670762f7ed89b3be1ca7c1d68d82b Mon Sep 17 00:00:00 2001
From: shtayerc <david.murko@mailbox.org>
Date: Mon, 11 May 2020 22:34:15 +0200
Subject: [PATCH 1/2] New package: lc0-openblas-0.25.1

---
 .../lc0-openblas/patches/eigen_nowrap.patch   | 24 ++++++++++++
 srcpkgs/lc0-openblas/template                 | 38 +++++++++++++++++++
 2 files changed, 62 insertions(+)
 create mode 100644 srcpkgs/lc0-openblas/patches/eigen_nowrap.patch
 create mode 100644 srcpkgs/lc0-openblas/template

diff --git a/srcpkgs/lc0-openblas/patches/eigen_nowrap.patch b/srcpkgs/lc0-openblas/patches/eigen_nowrap.patch
new file mode 100644
index 00000000000..af8ff7abb65
--- /dev/null
+++ b/srcpkgs/lc0-openblas/patches/eigen_nowrap.patch
@@ -0,0 +1,24 @@
+From 0e1158f4bf92e8cfcf20b63a8d61687ca3a79a4c Mon Sep 17 00:00:00 2001
+From: shtayerc <david.murko@mailbox.org>
+Date: Tue, 28 Apr 2020 19:46:13 +0200
+Subject: [PATCH] Check if eigen is availiable before pulling subproject
+
+This patch will be removed when
+https://github.com/LeelaChessZero/lc0/pull/1248 is merged
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git meson.build b/meson.build
+index 65591353a..929a48fa0 100644
+--- meson.build
++++ meson.build
+@@ -252,7 +252,7 @@ if get_option('build_backends')
+ 
+     endif
+ 
+-    deps += subproject('eigen').get_variable('eigen_dep')
++    deps += dependency('eigen3', fallback: ['eigen', 'eigen_dep'])
+ 
+     ispc = find_program('ispc', required: false)
+     ispc_extra_args = []
diff --git a/srcpkgs/lc0-openblas/template b/srcpkgs/lc0-openblas/template
new file mode 100644
index 00000000000..4f389a64dbd
--- /dev/null
+++ b/srcpkgs/lc0-openblas/template
@@ -0,0 +1,38 @@
+# Template file for 'lc0-openblas'
+pkgname=lc0-openblas
+version=0.25.1
+revision=1
+wrksrc="lc0-${version}"
+build_style=meson
+configure_args="-Dgtest=false --buildtype=release"
+meson_builddir="build/release"
+_githash=a6539d613cf9076a0423b776dd5d03fc2ec0c3ac
+hostmakedepends="tar pkg-config"
+makedepends="openblas-devel protobuf-devel zlib-devel eigen"
+short_desc="UCI chess engine designed to play via neural network - OpenBLAS backend"
+maintainer="shtayerc <david.murko@mailbox.org>"
+license="GPL-3.0-only"
+homepage="http://lczero.org"
+distfiles="https://github.com/LeelaChessZero/lc0/archive/v${version}.tar.gz
+ https://github.com/LeelaChessZero/lczero-common/archive/${_githash}.tar.gz"
+checksum="b3ab5b84f86d52981cff4804821178462028940c22963d544a4af8d19e13ad74
+ 6d8e4609b5ad735c924cc8c13d7d2728f90e1eee29f43d761f0b5ac4072f976c"
+
+alternatives="lc0:lc0:/usr/bin/lc0-openblas"
+
+if [ "$CROSS_BUILD" ]; then
+	configure_args+=" -Dopenblas_include=${XBPS_CROSS_BASE}/usr/include/openblas/"
+fi
+
+if [ "$XBPS_TARGET_MACHINE" = "armv6l-musl" ]; then
+	LDFLAGS+=-latomic
+	makedepends+=" libatomic-devel"
+fi
+
+post_extract() {
+	cp -a ../lczero-common-${_githash}/proto/ ./libs/lczero-common/
+}
+
+do_install() {
+	vbin build/release/lc0 lc0-openblas
+}

From 6e5e07318e4a4e479639c6092394092bba0f7085 Mon Sep 17 00:00:00 2001
From: shtayerc <david.murko@mailbox.org>
Date: Mon, 11 May 2020 22:34:36 +0200
Subject: [PATCH 2/2] New package: lc0-opencl-0.25.1

---
 srcpkgs/lc0-opencl/patches/eigen_nowrap.patch | 24 +++++++++++++
 srcpkgs/lc0-opencl/template                   | 34 +++++++++++++++++++
 2 files changed, 58 insertions(+)
 create mode 100644 srcpkgs/lc0-opencl/patches/eigen_nowrap.patch
 create mode 100644 srcpkgs/lc0-opencl/template

diff --git a/srcpkgs/lc0-opencl/patches/eigen_nowrap.patch b/srcpkgs/lc0-opencl/patches/eigen_nowrap.patch
new file mode 100644
index 00000000000..af8ff7abb65
--- /dev/null
+++ b/srcpkgs/lc0-opencl/patches/eigen_nowrap.patch
@@ -0,0 +1,24 @@
+From 0e1158f4bf92e8cfcf20b63a8d61687ca3a79a4c Mon Sep 17 00:00:00 2001
+From: shtayerc <david.murko@mailbox.org>
+Date: Tue, 28 Apr 2020 19:46:13 +0200
+Subject: [PATCH] Check if eigen is availiable before pulling subproject
+
+This patch will be removed when
+https://github.com/LeelaChessZero/lc0/pull/1248 is merged
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git meson.build b/meson.build
+index 65591353a..929a48fa0 100644
+--- meson.build
++++ meson.build
+@@ -252,7 +252,7 @@ if get_option('build_backends')
+ 
+     endif
+ 
+-    deps += subproject('eigen').get_variable('eigen_dep')
++    deps += dependency('eigen3', fallback: ['eigen', 'eigen_dep'])
+ 
+     ispc = find_program('ispc', required: false)
+     ispc_extra_args = []
diff --git a/srcpkgs/lc0-opencl/template b/srcpkgs/lc0-opencl/template
new file mode 100644
index 00000000000..2d3631bbc9e
--- /dev/null
+++ b/srcpkgs/lc0-opencl/template
@@ -0,0 +1,34 @@
+# Template file for 'lc0-opencl'
+pkgname=lc0-opencl
+version=0.25.1
+revision=1
+wrksrc="lc0-${version}"
+build_style=meson
+configure_args="-Dgtest=false --buildtype=release"
+meson_builddir="build/release"
+_githash=a6539d613cf9076a0423b776dd5d03fc2ec0c3ac
+hostmakedepends="tar pkg-config"
+makedepends="ocl-icd-devel protobuf-devel zlib-devel eigen"
+short_desc="UCI chess engine designed to play via neural network - OpenCL backend"
+maintainer="shtayerc <david.murko@mailbox.org>"
+license="GPL-3.0-only"
+homepage="http://lczero.org"
+distfiles="https://github.com/LeelaChessZero/lc0/archive/v${version}.tar.gz
+ https://github.com/LeelaChessZero/lczero-common/archive/${_githash}.tar.gz"
+checksum="b3ab5b84f86d52981cff4804821178462028940c22963d544a4af8d19e13ad74
+ 6d8e4609b5ad735c924cc8c13d7d2728f90e1eee29f43d761f0b5ac4072f976c"
+
+alternatives="lc0:lc0:/usr/bin/lc0-opencl"
+
+if [ "$XBPS_TARGET_MACHINE" = "armv6l-musl" ]; then
+	LDFLAGS+=-latomic
+	makedepends+=" libatomic-devel"
+fi
+
+post_extract() {
+	cp -a ../lczero-common-${_githash}/proto/ ./libs/lczero-common/
+}
+
+do_install() {
+	vbin build/release/lc0 lc0-opencl
+}

  parent reply	other threads:[~2020-05-11 20:39 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-20392@inbox.vuxu.org>
2020-03-30 17:49 ` shtayerc
2020-03-30 19:20 ` shtayerc
2020-03-30 19:50 ` shtayerc
2020-05-11 20:34 ` shtayerc
2020-05-11 20:39 ` shtayerc [this message]
2020-05-11 20:40 ` shtayerc
2020-05-12 16:19 ` [PR PATCH] [Updated] " shtayerc
2020-07-08  9:48 ` shtayerc
2020-07-08 10:04 ` shtayerc
2020-07-17 15:48 ` shtayerc
2020-09-06 10:00 ` shtayerc
2020-12-17 16:48 ` shtayerc
2021-02-23  7:44 ` shtayerc
2021-02-23  7:46 ` shtayerc
2021-08-08 21:34 ` ericonr
2021-08-10  9:44 ` [PR PATCH] [Updated] " shtayerc
2021-08-10 11:01 ` [PR PATCH] [Updated] New package: lc0 shtayerc
2021-08-10 17:18 ` shtayerc
2021-08-10 17:24 ` [PR REVIEW] " ericonr
2021-08-10 17:24 ` ericonr
2021-08-10 17:24 ` ericonr
2021-08-10 17:24 ` ericonr
2021-08-10 17:24 ` ericonr
2021-08-10 17:24 ` ericonr
2021-08-10 18:06 ` [PR PATCH] [Updated] " shtayerc
2021-08-10 18:11 ` [PR REVIEW] " shtayerc
2021-08-10 18:18 ` ericonr
2021-08-10 19:33 ` [PR PATCH] [Updated] " shtayerc
2021-08-10 19:37 ` [PR REVIEW] " shtayerc
2021-08-10 19:56 ` ericonr
2021-08-10 20:00 ` ericonr
2021-08-10 20:04 ` ericonr
2021-08-10 20:08 ` ericonr
2021-08-11  6:21 ` shtayerc
2021-08-28  5:57 ` [PR PATCH] [Updated] " shtayerc
2021-08-28 20:06 ` shtayerc
2021-11-14  8:15 ` [PR REVIEW] " ericonr
2021-11-14  9:01 ` [PR PATCH] [Updated] " shtayerc
2021-11-18 17:48 ` [PR REVIEW] " shtayerc
2021-11-19  1:53 ` [PR PATCH] [Merged]: " ericonr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200511203905.uad5IL40qxLdIO1yfhp-xSH5TNhpQm-w7htr_BPpPOo@z \
    --to=shtayerc@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).