From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id ECNeKKMVAWV5QgAAG6o9tA:P1 (envelope-from ) for ; Wed, 13 Sep 2023 03:51:31 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id ECNeKKMVAWV5QgAAG6o9tA (envelope-from ) for ; Wed, 13 Sep 2023 03:51:31 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2D840424DC for ; Wed, 13 Sep 2023 03:51:31 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=oRglUCAu; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694569891; a=rsa-sha256; cv=none; b=V/Tg3FIOh7KDf81n3rigSgwNfKJnfA+U7+y1A8NGq5dBO9JRjGTn/AUeq6n7adfz5vrq0E +VKcC2I45r8rOjxjXsw46Za3orT/kuytS82w9/kuUvxKQkRQQYLwMVanABC6AXagce0rGD GYyeooDUGQ55zSpUtaS/0wH5kekKCEvbZc0Q3VrqWa00g1ScxOJQ/Ep14F/On2L23j+RPn c4JDGFE1s7YVAdJv2kAp1I1Z4j1Y1zVPWsTHznlep6/MAmKtEvPyAVjfVHpgEwWmDPUMY7 qikvfe6bLB+BUhcoj3Zn3sQ6/BH5p44IJiVePWu+47ro5SKQyMDiSVerU3nf3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694569891; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lo4D1MRnFcEnmzo2xD5cSPjuqZEOZJxrBylQHTYD5iM=; b=fqPvRUIpElKJrTIh7NaKm46O0Tde8Sh3+qNY1QSS3wwNEaGYNrMD2WFQ6Ij16eIjXvFVDi yoeK+p9GXMkQdm4uf/RwPCxYvDjmaaAp+ZJ+g6lRs5RYBGKPhMgTt9+eo5AkUHHLXpM0k0 u4P5dohI/P7GKGsEbTWhB4+D8pqL675eYllSUBkozBv2AT2/ZElZX7qzp0zGCTI3uZut3t n4FzI/ByF8XYt6K9xo93q+Ztv6/cl1TF4bVOy+Nv+KAF9CJAZOaeNEFltgIgyyghXbvvBl fRNhNmaK9NYBZYLxkvU+xi5lshy37BVsWBK5XeNnVHLz5xQOGLHAJy44fL1v5w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none ("invalid DKIM record") header.d=twdb.moe header.s=default header.b=oRglUCAu; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qgF1w-0005eA-SR; Tue, 12 Sep 2023 21:51:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qgF1t-0005da-9g for guix-patches@gnu.org; Tue, 12 Sep 2023 21:50:58 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qgF1s-0005Ki-Pv for guix-patches@gnu.org; Tue, 12 Sep 2023 21:50:57 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qgF1x-0007Mv-N4 for guix-patches@gnu.org; Tue, 12 Sep 2023 21:51:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63088] [PATCH 1/3] gnu: Add lc0. References: In-Reply-To: Resent-From: zamfofex Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Sep 2023 01:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63088 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 63088@debbugs.gnu.org Cc: zamfofex , liliana.prikler@gmail.com Received: via spool by 63088-submit@debbugs.gnu.org id=B63088.169456981928249 (code B ref 63088); Wed, 13 Sep 2023 01:51:01 +0000 Received: (at 63088) by debbugs.gnu.org; 13 Sep 2023 01:50:19 +0000 Received: from localhost ([127.0.0.1]:60366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgF1G-0007LX-7k for submit@debbugs.gnu.org; Tue, 12 Sep 2023 21:50:18 -0400 Received: from mta-12-4.privateemail.com ([198.54.127.107]:9349) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qgF1C-0007LE-IZ for 63088@debbugs.gnu.org; Tue, 12 Sep 2023 21:50:16 -0400 Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id D82331800052; Tue, 12 Sep 2023 21:50:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=twdb.moe; s=default; t=1694569802; bh=MImJ0wqvCaZgM6ZPx4jUd6fYMOFz/rzC5IkCM7MMNtU=; h=From:To:Cc:Subject:Date:From; b=oRglUCAuTzEe1am6crSl71Q1XaVRZsjBc9vSmK3GQNjkfEi19hhH+PF0ISxS7Zj+b 2Kl1AJB87swy/YNbUksZaPcpRbXWciCZTjMh61cbWfOCZffK4zHP7PSUXCyPA1I5CZ QtnBwrc2IpNeEERXXXvRrvUEivLaW2ukSFat0qxrsuL/QtzYjQKrtXYnWTgjtqgL5M uuNxgl6qrzA7KDHcGSJI/5d+1Jz2vNO5nhfFt92FchalrjP/a9PbdlYluE3dvcBAdK rrpl6fza74yVW1AVZi1w5e+N13uT2v6CBU1xG3weGY/KW7/yQuiw9z2/2NrOemVWO6 5eZT2sTWfJJSw== Received: from localhost.localdomain (unknown [189.35.108.242]) by mta-12.privateemail.com (Postfix) with ESMTPA; Tue, 12 Sep 2023 21:49:59 -0400 (EDT) From: zamfofex Date: Tue, 12 Sep 2023 22:49:39 -0300 Message-ID: X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -5.22 X-Spam-Score: -5.22 X-Migadu-Queue-Id: 2D840424DC X-Migadu-Scanner: mx2.migadu.com X-TUID: WsLibVvrz/A/ * gnu/packages/lc0.scm: New file. * gnu/packages/local.mk: Register file. --- gnu/local.mk | 2 ++ gnu/packages/lc0.scm | 71 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 gnu/packages/lc0.scm diff --git a/gnu/local.mk b/gnu/local.mk index 4f8637418a..f46a2973ae 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -59,6 +59,7 @@ # Copyright © 2023 Zheng Junjie <873216071@qq.com> # Copyright © 2023 Ivana Drazovic # Copyright © 2023 Andy Tai +# Copyright © 2023 zamfofex # # This file is part of GNU Guix. # @@ -375,6 +376,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/kerberos.scm \ %D%/packages/kodi.scm \ %D%/packages/language.scm \ + %D%/packages/lc0.scm \ %D%/packages/lean.scm \ %D%/packages/lego.scm \ %D%/packages/less.scm \ diff --git a/gnu/packages/lc0.scm b/gnu/packages/lc0.scm new file mode 100644 index 0000000000..e19436c381 --- /dev/null +++ b/gnu/packages/lc0.scm @@ -0,0 +1,71 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2023 zamfofex +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages lc0) + #:use-module (guix build-system meson) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module ((guix licenses) + #:prefix license:) + #:use-module (gnu packages) + #:use-module (gnu packages algebra) + #:use-module (gnu packages c) + #:use-module (gnu packages check) + #:use-module (gnu packages compression) + #:use-module (gnu packages machine-learning) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python)) + +(define-public lc0 + (package + (name "lc0") + (version "0.30.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/LeelaChessZero/lc0") + (commit (string-append "v" version)) + ;; Only a few source files are in one Git submodules (rather than + ;; there being bundled projects). These files are in a different + ;; repository just because they are used across multiple + ;; repositories of the Leela Chess Zero project. + (recursive? #t))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1m7k8m8iz4pxv3h9g2j1dkgryi4k9c1bcg3fx5j7ii4ysif63kj3")))) + (build-system meson-build-system) + (native-search-paths + (list (search-path-specification + (variable "XDG_DATA_DIRS") + (files '("share"))))) + (inputs (list eigen oneapi-dnnl zlib)) + (native-inputs (list googletest ispc pkg-config python)) + (arguments + '(#:configure-flags (list "-Ddnnl=true" + (string-append "-Ddnnl_dir=" + (assoc-ref %build-inputs + "oneapi-dnnl"))))) + (synopsis "Chess engine based on neural networks") + (description + "Leela Chess Zero is a UCI-compliant chess engine designed to play chess +using neural networks. This package does not provide a neural network, which +is necessary to use Leela Chess Zero and should be installed separately.") + (home-page "https://lczero.org") + (license license:gpl3+))) base-commit: daeeaa221605726d8853b00261619ba039bd6db7 -- 2.41.0