* [PR PATCH] New package: KataGo-1.11.0
@ 2022-11-19 19:30 jason1987d
2023-02-19 2:02 ` github-actions
2023-03-05 2:09 ` [PR PATCH] [Closed]: " github-actions
0 siblings, 2 replies; 3+ messages in thread
From: jason1987d @ 2022-11-19 19:30 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1203 bytes --]
There is a new pull request by jason1987d against master on the void-packages repository
https://github.com/jason1987d/void-packages KataGo
https://github.com/void-linux/void-packages/pull/40621
New package: KataGo-1.11.0
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: YES
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): YES
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- i686
- aarch64
- armv6l-musl
A patch file from https://github.com/void-linux/void-packages/pull/40621.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-KataGo-40621.patch --]
[-- Type: text/x-diff, Size: 8935 bytes --]
From a296256e3f9787fa4d6c72811cb850ed2283b416 Mon Sep 17 00:00:00 2001
From: Jason Manley <jason@jasondavid.tv>
Date: Sat, 19 Nov 2022 12:27:38 -0600
Subject: [PATCH] New package: KataGo-1.11.0
---
srcpkgs/KataGo-OpenCL/patches/rand.cpp.patch | 11 +++++++
srcpkgs/KataGo-OpenCL/patches/rand.h.patch | 11 +++++++
.../KataGo-OpenCL/patches/runtests.cpp.patch | 10 ++++++
.../KataGo-OpenCL/patches/search.cpp.patch | 11 +++++++
srcpkgs/KataGo-OpenCL/template | 30 +++++++++++++++++
srcpkgs/KataGo-eigen/patches/rand.cpp.patch | 11 +++++++
srcpkgs/KataGo-eigen/patches/rand.h.patch | 11 +++++++
.../KataGo-eigen/patches/runtests.cpp.patch | 10 ++++++
srcpkgs/KataGo-eigen/patches/search.cpp.patch | 11 +++++++
srcpkgs/KataGo-eigen/template | 33 +++++++++++++++++++
10 files changed, 149 insertions(+)
create mode 100644 srcpkgs/KataGo-OpenCL/patches/rand.cpp.patch
create mode 100644 srcpkgs/KataGo-OpenCL/patches/rand.h.patch
create mode 100644 srcpkgs/KataGo-OpenCL/patches/runtests.cpp.patch
create mode 100644 srcpkgs/KataGo-OpenCL/patches/search.cpp.patch
create mode 100644 srcpkgs/KataGo-OpenCL/template
create mode 100644 srcpkgs/KataGo-eigen/patches/rand.cpp.patch
create mode 100644 srcpkgs/KataGo-eigen/patches/rand.h.patch
create mode 100644 srcpkgs/KataGo-eigen/patches/runtests.cpp.patch
create mode 100644 srcpkgs/KataGo-eigen/patches/search.cpp.patch
create mode 100644 srcpkgs/KataGo-eigen/template
diff --git a/srcpkgs/KataGo-OpenCL/patches/rand.cpp.patch b/srcpkgs/KataGo-OpenCL/patches/rand.cpp.patch
new file mode 100644
index 000000000000..3c15d2f13955
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/patches/rand.cpp.patch
@@ -0,0 +1,11 @@
+--- a/cpp/core/rand.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/core/rand.cpp 2022-07-23 09:15:36.383995796 -0500
+@@ -322,7 +322,7 @@
+ {
+ assert(n > 0);
+ assert(n < 0xFFFFFFFF);
+- double_t sum = cumRelProbs[n-1];
++ double sum = cumRelProbs[n-1];
+ double d = nextDouble(sum);
+ size_t r = BSearch::findFirstGt(cumRelProbs,d,0,n);
+ if(r == n)
diff --git a/srcpkgs/KataGo-OpenCL/patches/rand.h.patch b/srcpkgs/KataGo-OpenCL/patches/rand.h.patch
new file mode 100644
index 000000000000..ebed7ab7a96a
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/patches/rand.h.patch
@@ -0,0 +1,11 @@
+--- a/cpp/core/rand.h 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/core/rand.h 2022-07-23 09:15:25.583181534 -0500
+@@ -209,7 +209,7 @@
+ {
+ assert(n > 0);
+ assert(n < 0xFFFFFFFF);
+- double_t sum = 0;
++ double sum = 0;
+ for(uint32_t i = 0; i<n; i++)
+ {
+ assert(relProbs[i] >= 0);
diff --git a/srcpkgs/KataGo-OpenCL/patches/runtests.cpp.patch b/srcpkgs/KataGo-OpenCL/patches/runtests.cpp.patch
new file mode 100644
index 000000000000..e0b5d79efc50
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/patches/runtests.cpp.patch
@@ -0,0 +1,10 @@
+--- a/cpp/command/runtests.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/command/runtests.cpp 2022-07-29 16:04:10.666595008 -0500
+@@ -24,7 +24,6 @@
+
+ int MainCmds::runtests(const vector<string>& args) {
+ (void)args;
+- testAssert(sizeof(size_t) == 8);
+ Board::initHash();
+ ScoreValue::initTables();
+
diff --git a/srcpkgs/KataGo-OpenCL/patches/search.cpp.patch b/srcpkgs/KataGo-OpenCL/patches/search.cpp.patch
new file mode 100644
index 000000000000..864219e11441
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/patches/search.cpp.patch
@@ -0,0 +1,11 @@
+--- a/cpp/search/search.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/search/search.cpp 2022-07-23 09:11:16.099471820 -0500
+@@ -458,7 +458,7 @@
+ //Compute caps on search
+ int64_t maxVisits = pondering ? searchParams.maxVisitsPondering : searchParams.maxVisits;
+ int64_t maxPlayouts = pondering ? searchParams.maxPlayoutsPondering : searchParams.maxPlayouts;
+- double_t maxTime = pondering ? searchParams.maxTimePondering : searchParams.maxTime;
++ double maxTime = pondering ? searchParams.maxTimePondering : searchParams.maxTime;
+
+ {
+ //Possibly reduce computation time, for human friendliness
diff --git a/srcpkgs/KataGo-OpenCL/template b/srcpkgs/KataGo-OpenCL/template
new file mode 100644
index 000000000000..cc0830578892
--- /dev/null
+++ b/srcpkgs/KataGo-OpenCL/template
@@ -0,0 +1,30 @@
+# Template file for 'KataGo-OpenCL'
+pkgname=KataGo-OpenCL
+version=1.11.0
+revision=1
+build_wrksrc=cpp
+build_style=cmake
+configure_args="-DUSE_BACKEND=OPENCL -DNO_GIT_REVISION=1"
+makedepends="ocl-icd-devel zlib-devel libzip-devel"
+short_desc="KataGo Go/Weiqi/Baduk analysis engine (OpenCL backend)"
+maintainer="Jason Manley <jason@jasondavid.tv>"
+license="MIT"
+homepage="https://github.com/lightvector/KataGo/"
+distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz"
+checksum=3f63aa5dfaab861360fd6f9548aa7f552b007cac7e90c99089d3bb4bb4b9d451
+
+alternatives="katago:katago:/usr/bin/katago-opencl"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
+ makedepends+=" libatomic-devel"
+fi
+
+do_check() {
+ build/katago runtests
+}
+
+do_install() {
+ vbin build/katago katago-opencl
+ vlicense "${wrksrc}"/LICENSE
+}
diff --git a/srcpkgs/KataGo-eigen/patches/rand.cpp.patch b/srcpkgs/KataGo-eigen/patches/rand.cpp.patch
new file mode 100644
index 000000000000..3c15d2f13955
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/patches/rand.cpp.patch
@@ -0,0 +1,11 @@
+--- a/cpp/core/rand.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/core/rand.cpp 2022-07-23 09:15:36.383995796 -0500
+@@ -322,7 +322,7 @@
+ {
+ assert(n > 0);
+ assert(n < 0xFFFFFFFF);
+- double_t sum = cumRelProbs[n-1];
++ double sum = cumRelProbs[n-1];
+ double d = nextDouble(sum);
+ size_t r = BSearch::findFirstGt(cumRelProbs,d,0,n);
+ if(r == n)
diff --git a/srcpkgs/KataGo-eigen/patches/rand.h.patch b/srcpkgs/KataGo-eigen/patches/rand.h.patch
new file mode 100644
index 000000000000..ebed7ab7a96a
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/patches/rand.h.patch
@@ -0,0 +1,11 @@
+--- a/cpp/core/rand.h 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/core/rand.h 2022-07-23 09:15:25.583181534 -0500
+@@ -209,7 +209,7 @@
+ {
+ assert(n > 0);
+ assert(n < 0xFFFFFFFF);
+- double_t sum = 0;
++ double sum = 0;
+ for(uint32_t i = 0; i<n; i++)
+ {
+ assert(relProbs[i] >= 0);
diff --git a/srcpkgs/KataGo-eigen/patches/runtests.cpp.patch b/srcpkgs/KataGo-eigen/patches/runtests.cpp.patch
new file mode 100644
index 000000000000..e0b5d79efc50
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/patches/runtests.cpp.patch
@@ -0,0 +1,10 @@
+--- a/cpp/command/runtests.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/command/runtests.cpp 2022-07-29 16:04:10.666595008 -0500
+@@ -24,7 +24,6 @@
+
+ int MainCmds::runtests(const vector<string>& args) {
+ (void)args;
+- testAssert(sizeof(size_t) == 8);
+ Board::initHash();
+ ScoreValue::initTables();
+
diff --git a/srcpkgs/KataGo-eigen/patches/search.cpp.patch b/srcpkgs/KataGo-eigen/patches/search.cpp.patch
new file mode 100644
index 000000000000..864219e11441
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/patches/search.cpp.patch
@@ -0,0 +1,11 @@
+--- a/cpp/search/search.cpp 2022-03-20 15:12:06.000000000 -0500
++++ b/cpp/search/search.cpp 2022-07-23 09:11:16.099471820 -0500
+@@ -458,7 +458,7 @@
+ //Compute caps on search
+ int64_t maxVisits = pondering ? searchParams.maxVisitsPondering : searchParams.maxVisits;
+ int64_t maxPlayouts = pondering ? searchParams.maxPlayoutsPondering : searchParams.maxPlayouts;
+- double_t maxTime = pondering ? searchParams.maxTimePondering : searchParams.maxTime;
++ double maxTime = pondering ? searchParams.maxTimePondering : searchParams.maxTime;
+
+ {
+ //Possibly reduce computation time, for human friendliness
diff --git a/srcpkgs/KataGo-eigen/template b/srcpkgs/KataGo-eigen/template
new file mode 100644
index 000000000000..44cee9bcc9ed
--- /dev/null
+++ b/srcpkgs/KataGo-eigen/template
@@ -0,0 +1,33 @@
+# Template file for 'KataGo-eigen'
+pkgname=KataGo-eigen
+version=1.11.0
+revision=1
+build_wrksrc=cpp
+build_style=cmake
+configure_args="-DUSE_BACKEND=EIGEN -DNO_GIT_REVISION=1"
+make_check_target="check"
+makedepends="zlib-devel libzip-devel eigen"
+short_desc="KataGo Go/Weiqi/Baduk analysis engine (OpenCL backend)"
+maintainer="Jason Manley <jason@jasondavid.tv>"
+license="MIT"
+homepage="https://github.com/lightvector/KataGo/"
+distfiles="https://github.com/lightvector/KataGo/archive/refs/tags/v${version}.tar.gz"
+checksum=3f63aa5dfaab861360fd6f9548aa7f552b007cac7e90c99089d3bb4bb4b9d451
+# Takes more time to test
+make_check=extended
+
+alternatives="katago:katago:/usr/bin/katago-eigen"
+
+if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
+ configure_args+=" -DCMAKE_CXX_STANDARD_LIBRARIES=-latomic"
+ makedepends+=" libatomic-devel"
+fi
+
+do_check() {
+ build/katago runtests
+}
+
+do_install() {
+ vbin build/katago katago-eigen
+ vlicense "${wrksrc}"/LICENSE
+}
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: New package: KataGo-1.11.0
2022-11-19 19:30 [PR PATCH] New package: KataGo-1.11.0 jason1987d
@ 2023-02-19 2:02 ` github-actions
2023-03-05 2:09 ` [PR PATCH] [Closed]: " github-actions
1 sibling, 0 replies; 3+ messages in thread
From: github-actions @ 2023-02-19 2:02 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 305 bytes --]
New comment by github-actions[bot] on void-packages repository
https://github.com/void-linux/void-packages/pull/40621#issuecomment-1435815399
Comment:
Pull Requests become stale 90 days after last activity and are closed 14 days after that. If this pull request is still relevant bump it or assign it.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PR PATCH] [Closed]: New package: KataGo-1.11.0
2022-11-19 19:30 [PR PATCH] New package: KataGo-1.11.0 jason1987d
2023-02-19 2:02 ` github-actions
@ 2023-03-05 2:09 ` github-actions
1 sibling, 0 replies; 3+ messages in thread
From: github-actions @ 2023-03-05 2:09 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1042 bytes --]
There's a closed pull request on the void-packages repository
New package: KataGo-1.11.0
https://github.com/void-linux/void-packages/pull/40621
Description:
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: YES
#### New package
- This new package conforms to the [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): YES
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
#### Local build testing
- I built this PR locally for my native architecture, x86_64-libc
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-libc
- armv6l-musl
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-05 2:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-19 19:30 [PR PATCH] New package: KataGo-1.11.0 jason1987d
2023-02-19 2:02 ` github-actions
2023-03-05 2:09 ` [PR PATCH] [Closed]: " github-actions
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).