aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-07-13 01:17:19 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-07-13 01:18:01 +0000
commit53a8ee1f4fe8ec16f8a445c7686ec2060827ee27 (patch)
treeb78c8c890501a9012792df025c70e3b4bb6d5c5e
parentdb2cfd5d734de9fe508d533424b6e4e691b878ea (diff)
games/leela-zero: Add download-weights target; Add info to pkg-message
-rw-r--r--games/leela-zero/Makefile3
-rw-r--r--games/leela-zero/pkg-message4
2 files changed, 7 insertions, 0 deletions
diff --git a/games/leela-zero/Makefile b/games/leela-zero/Makefile
index fc9d71ee5c4b..28289476e1d2 100644
--- a/games/leela-zero/Makefile
+++ b/games/leela-zero/Makefile
@@ -30,4 +30,7 @@ PLIST_FILES= bin/autogtp \
do-test:
@cd ${WRKSRC} && ${MKDIR} .build && ${CP} ../.build/tests .build && cd .build && ./tests
+download-weights:
+ @${FETCH_CMD} https://zero.sjeng.org/best-network -o ~/.local/share/leela-zero/
+
.include <bsd.port.mk>
diff --git a/games/leela-zero/pkg-message b/games/leela-zero/pkg-message
index d6782996df39..32b2de227f3c 100644
--- a/games/leela-zero/pkg-message
+++ b/games/leela-zero/pkg-message
@@ -14,6 +14,10 @@ for example:
* pocl: for a simple CPU provider
* beignet: for the Intel GPU provider
* etc.
+
+You also need to download neural network weights using this command:
+$ fetch https://zero.sjeng.org/best-network -o /home/yuri/.local/share/leela-zero/
+
EOM
}
]