From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kDqjKCCRjmbCLgAAqHPOHw:P1 (envelope-from ) for ; Wed, 10 Jul 2024 13:48:16 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kDqjKCCRjmbCLgAAqHPOHw (envelope-from ) for ; Wed, 10 Jul 2024 15:48:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="o/YKLDu3"; 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=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720619296; 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:resent-to: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=Gv8mW0g17zGcNd/EKELAphztjSI7npIs124VL1fEwWM=; b=posjFF3tf818bDPL/TtkSrtTplezf+yb8alh07MAdxL9W3l8rOuR46LSW4TVlMtn6w7hdg aTOcq48+2DzIoF2DoOtXcm0ctmikMs3Q18e6upHlrKtNAg/98+bJR87o7h/e32rkFd8w3u 4/HeROEpwwrOAS4w9YdoHCMP2G9BVHtNsRgyS0qRIooHmIc/t+p3QBT2Nd1evftM5UHCJc g7clfC2I5sLabTlGy8hQHmWZQqgzYOy3XGfgClRBvtSR3HCiwjL+cDw61bSx6adEf+ifDk f01dvCRW4U6g2t3Sc6Ha37Nd4ZIxSK7YXcX0cFK0q+OAx/lTJu+W3SlCGpSlMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b="o/YKLDu3"; 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=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720619296; a=rsa-sha256; cv=none; b=DuG4w5Z3jsjCpKT8/HeS5RqFdtkwedr6jl/UwjeOMcfr8u6yMeppwbhnUBgd08XODAL08d woAVY2JURATfXDPI4MBFEF335+6csjTWYsmuM3LJHo2ayL7UjRwhNI7vyBoOJULxcPAtuc CmAaa3XKGQsJFQkMwmHoYgd77GhpPCwL7HnrGiRq61tEd37qXVQD+5TCR84g0WkxZz7vLS NVQf6R3id/ieEODGXpbiYPQS+az5aX5TO9piPbjNt/Gchzva1tlXkQcwxkfMWKPCx0Gn+v CKC4HYWhTiMm37xjKkn3dncD+xqGbDUnYA3VESjPI6MPfUMPZi35SJC8gTsCBw== 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 2697A142D2 for ; Wed, 10 Jul 2024 15:48:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRXfq-0005fg-Ns; Wed, 10 Jul 2024 09:47:59 -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 1sRXfo-0005e0-DK for guix-patches@gnu.org; Wed, 10 Jul 2024 09:47:56 -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 1sRXfo-0006bN-40 for guix-patches@gnu.org; Wed, 10 Jul 2024 09:47:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRXfu-0002l0-1K for guix-patches@gnu.org; Wed, 10 Jul 2024 09:48:02 -0400 Subject: bug#71219: [PATCH v5] gnu: llama-cpp: Update commit and configure flags for shared library build. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-To: guix-patches@gnu.org Resent-Date: Wed, 10 Jul 2024 13:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 71219 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Andy Tai Cc: 71219-done@debbugs.gnu.org Mail-Followup-To: 71219@debbugs.gnu.org, ludo@gnu.org, atai@atai.org Received: via spool by 71219-done@debbugs.gnu.org id=D71219.172061927810584 (code D ref 71219); Wed, 10 Jul 2024 13:48:01 +0000 Received: (at 71219-done) by debbugs.gnu.org; 10 Jul 2024 13:47:58 +0000 Received: from localhost ([127.0.0.1]:55150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRXfq-0002ke-66 for submit@debbugs.gnu.org; Wed, 10 Jul 2024 09:47:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:44350) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRXfm-0002kP-6I for 71219-done@debbugs.gnu.org; Wed, 10 Jul 2024 09:47:57 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRXfX-0006WY-K4; Wed, 10 Jul 2024 09:47:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=Gv8mW0g17zGcNd/EKELAphztjSI7npIs124VL1fEwWM=; b=o/YKLDu3aVcmvnxG/8zH wr46O5EO4LLMunlGsbfwP8QpirDXeVwYfG0f6FU+pfauSwP1nBZvZov9ouuYC3Nnf7pQ8maGc1t97 iNqF4NR0aCE2n8hGY+3/8MFvmLz9p4A9CZL8nASKiYI7AKTeRLyrU0GsrQN3eexDSU5gdIqmleD74 BnlzOzgyUM3ZjYX8rHqEqT5iPJUOd7/dKjQmJrNtnHwESEl8gy2ODkFPpPE68ukUcjMZxnnciP0DT uylNkWE8Cb+/DIAv9WBdGG9rPK3TmEbvukA02dQ/pM38ybaYIBzXM4ZaUDs1qBsPh5a0zaw+QIvkS ilaGxR4PExy0/Q==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Andy Tai's message of "Tue, 11 Jun 2024 05:02:13 -0700") References: <6c6fc91b2febb791d50aac5e9a16a220090eb31d.1716786995.git.atai@atai.org> Date: Wed, 10 Jul 2024 15:47:36 +0200 Message-ID: <87msmp7407.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 2697A142D2 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -6.30 X-Spam-Score: -6.30 X-TUID: ExqN+NmzJvLn --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Andy, Andy Tai skribis: > * gnu/packages/machine-learning.scm (lama-cpp): Update to commit a5735e w= ith > pkg-config support. > [arguments](configure-flags): Add cmake configure flag > for shared library build and adjust arguments to make openblas > found by cmake. > (phases) 'install-python-scripts: Remove references to deleted scripts > and add new ones upsteeam. > > Change-Id: I7c4bc219a22aa9a949e811b340c7cf745b176d14 Applied with the indentation changes shown below. Thanks! Ludo=E2=80=99. --=-=-= Content-Type: text/x-patch Content-Disposition: inline diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a2be0bf9c8..1cb6586e81 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -567,18 +567,22 @@ (define-public llama-cpp (arguments (list #:configure-flags - #~(list "-DBUILD_SHARED_LIBS=ON" - "-DLLAMA_BLAS=ON" - "-DLLAMA_BLAS_VENDOR=OpenBLAS" - (string-append "-DBLAS_INCLUDE_DIRS=" #$(this-package-input "openblas") "/include") - (string-append "-DBLAS_LIBRARIES=" #$(this-package-input "openblas") "/lib/libopenblas.so") + #~(list "-DBUILD_SHARED_LIBS=ON" + "-DLLAMA_BLAS=ON" + "-DLLAMA_BLAS_VENDOR=OpenBLAS" + (string-append "-DBLAS_INCLUDE_DIRS=" + #$(this-package-input "openblas") + "/include") + (string-append "-DBLAS_LIBRARIES=" + #$(this-package-input "openblas") + "/lib/libopenblas.so") - "-DLLAMA_NATIVE=OFF" ;no '-march=native' - "-DLLAMA_FMA=OFF" ;and no '-mfma', etc. - "-DLLAMA_AVX2=OFF" - "-DLLAMA_AVX512=OFF" - "-DLLAMA_AVX512_VBMI=OFF" - "-DLLAMA_AVX512_VNNI=OFF") + "-DLLAMA_NATIVE=OFF" ;no '-march=native' + "-DLLAMA_FMA=OFF" ;and no '-mfma', etc. + "-DLLAMA_AVX2=OFF" + "-DLLAMA_AVX512=OFF" + "-DLLAMA_AVX512_VBMI=OFF" + "-DLLAMA_AVX512_VNNI=OFF") #:modules '((ice-9 textual-ports) (guix build utils) --=-=-=--