From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id MNNDDut/pGJ0lgAAbAwnHQ (envelope-from ) for ; Sat, 11 Jun 2022 13:43:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id yJkDDut/pGJl5wAAauVa8A (envelope-from ) for ; Sat, 11 Jun 2022 13:43:39 +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 CE18E13365 for ; Sat, 11 Jun 2022 13:43:38 +0200 (CEST) Received: from localhost ([::1]:50412 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nzzWk-00080s-11 for larch@yhetil.org; Sat, 11 Jun 2022 07:43:38 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nzyc2-0004CZ-PX for guix-patches@gnu.org; Sat, 11 Jun 2022 06:45:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58057) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nzyc2-0007p3-Do for guix-patches@gnu.org; Sat, 11 Jun 2022 06:45:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nzyc2-0007uI-9d for guix-patches@gnu.org; Sat, 11 Jun 2022 06:45:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55565] [PATCH] gnu: Add python-blis Resent-From: "Artyom V. Poptsov" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 11 Jun 2022 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55565 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 55565@debbugs.gnu.org Received: via spool by 55565-submit@debbugs.gnu.org id=B55565.165494429330358 (code B ref 55565); Sat, 11 Jun 2022 10:45:02 +0000 Received: (at 55565) by debbugs.gnu.org; 11 Jun 2022 10:44:53 +0000 Received: from localhost ([127.0.0.1]:51952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzybq-0007tR-EM for submit@debbugs.gnu.org; Sat, 11 Jun 2022 06:44:53 -0400 Received: from mail-lj1-f182.google.com ([209.85.208.182]:40778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nzybl-0007tA-PO for 55565@debbugs.gnu.org; Sat, 11 Jun 2022 06:44:49 -0400 Received: by mail-lj1-f182.google.com with SMTP id y29so1535497ljd.7 for <55565@debbugs.gnu.org>; Sat, 11 Jun 2022 03:44:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=2F21B/ODDLNTqKzDdYukzkKZO6E9WFBuSoXtRWyb0mo=; b=cJU8TrSmtUQWfCGVkKRI45OIEpun4U9w0Azq5rOT/cr5OQpTLFvavr+U9fmVD8+vib xa1Gw4MhxoWVdQ14Aa8QAJADJhuFNGs/brwxbNiYntN53ImBLp6JZHFlxIUh3uNIFaFe 9K2wEnbVNcMAEHKAtYz85yBD297ubS6+VArEVefYoTLrfiWXtoPFfu83/XgC/63Z/Sn2 eCm8osA5vq52xCuo4JJlmqWsXG4g5/uy3rmPXN1CpCRyaMiTp9nBzdQrieiS1UbZTsZW UB5a8Kfz6rnFqRXusD0a0A9aFA2dDl2yRE2x3ozcWJGbBDa5+V2b9dZ8tXfd5fn6nHop 4acw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=2F21B/ODDLNTqKzDdYukzkKZO6E9WFBuSoXtRWyb0mo=; b=39bOqeD7DxfzCsbvSptew//lGUZsElMWyOh6AvMIoI32YlQ4kD9jn6OsfM29Au7IH6 nGbp6XDX1JIMldUrQonXqdvUjsA7RBi/UWPbVwhV77ri9HB3sdflmyaKLYGpRZH9+/Wr /4jVaXb7/Fch7t5FQUBwbTux/ltd3BUmoGCwqM5ECGZ3lqhWr4LM7zYlP/oR+2MEwMNz CQGuP8EIMYQQegRLHdVrBF2Lzfa0QDbjogpiN0i+huJVA//tcud/j/pY677EaUJewgVM NJ04fysVsE8Hn61/7xb83q4H1vPvDZc9o0rcz7WSO0YxDaH6TFdLOIUaO3RcSTQNjzzJ 6LWw== X-Gm-Message-State: AOAM5304jjVAW1zn8qYF6STT+VdU4M+SLBCwxZTDoZWiTBjlixnCGQTF 0X38M8wLGo9lzli6uxdC1ZZjebFlUVs= X-Google-Smtp-Source: ABdhPJy1jQU6WPWlpbP0IjN64WkKgLIQagUJoQjf8PE4uI095ZITzFA5drtqNQdAKhLhs0zYqxukfg== X-Received: by 2002:a2e:ba06:0:b0:255:b837:a36c with SMTP id p6-20020a2eba06000000b00255b837a36cmr11019237lja.81.1654944279147; Sat, 11 Jun 2022 03:44:39 -0700 (PDT) Received: from elephant ([5.164.222.47]) by smtp.gmail.com with ESMTPSA id y26-20020a2e545a000000b0024cac53a82csm318552ljd.0.2022.06.11.03.44.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Jun 2022 03:44:38 -0700 (PDT) From: "Artyom V. Poptsov" References: <87tu9ifs3m.fsf@gmail.com> <87pmjyd60l.fsf@gnu.org> Date: Sat, 11 Jun 2022 13:44:34 +0300 In-Reply-To: <87pmjyd60l.fsf@gnu.org> ("Ludovic =?UTF-8?Q?Court=C3=A8s?="'s message of "Fri, 27 May 2022 23:23:22 +0200") Message-ID: <87pmjfxywd.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" 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" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1654947818; 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-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=2F21B/ODDLNTqKzDdYukzkKZO6E9WFBuSoXtRWyb0mo=; b=dG6tdSAHCQmPsDvKScajapVD/ylT80Q9e+rslfFr/VrQJoJlAQjF42LUpsaOKui6a2Xify /qRApHawfVO/hfIktPFWrY7KDsAOEE0MVTb8fuWedwBOR1amANm8bmfbxuq4QKAmuu6dEU 5wBzY5hYtojwhDseZ74nVztR6zrcHn3/7RSl5YXe80QhrzNmbgV/IJtBTAj0krqHgYnSiP DOSTd6X+W/7/qmgUIrVygZhqG7qMSu7W8AzaC2Pi7+2MYMcArlOF3Gx6ynjVVQECMlh5hr G/6nFcsuIl2gpzvF491bbYghGiOlW17RfqZFKCZ9vvVu15XZDyrk8SUN4JDnWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1654947818; a=rsa-sha256; cv=none; b=stmfIWfLlUXS0ZlvZ99bbSr+qtp8G0wdqnEsC8X8m+5fnvGHkDFQgWeL2/8CtOtNuD22TV dYerUP/31L0q1l7iojU7uhDN/n/t6zrQEoOBEpFTl0nSNw2MK02zJSZ6zi7hsi9Bt51wnP TpSAfTLCh0fvDtIjrtjm7glMb3Xj3B7O8ELCq6DxTtw9yLrjLcdo2eqm0e/unvI3Y54Emj CImss91olL0a0UOKp3ddRyFenauehmOkvG1obxMhHIaeKNsBY0x+54IFt77U8mKrp1e2k5 Fm+N9zCI3xzc0iN4/zPpYvZOOXrjb5aGpCoBq5WdtYcHUhyLpNWqCZB7oq0KfQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cJU8TrSm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Spam-Score: 3.92 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20210112 header.b=cJU8TrSm; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" X-Migadu-Queue-Id: CE18E13365 X-Spam-Score: 3.92 X-Migadu-Scanner: scn1.migadu.com X-TUID: Lho0SsWHHeKK --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hello Ludovic, thanks for the feedback. I tried to fix the patch and got some promising results. Please find the updated patch attached. Basically I patched 'blis/benchmark.py' to use "blas_opt_info" instead of "blas_ilp64_opt_info" and tests went fine. An issue with different numpy versions I guess? I also added "blis" and "python-numpy-next" to the "native-inputs". - Artyom --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-gnu-Add-python-blis.patch Content-Transfer-Encoding: quoted-printable From=203d088c0cbeee76c59dc140db16119a5e3f837b08 Mon Sep 17 00:00:00 2001 From: "Artyom V. Poptsov" Date: Sun, 22 May 2022 01:14:26 +0300 Subject: [PATCH] gnu: Add python-blis * gnu/packages/python-xyz.scm (python-blis): New variable. =2D-- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5f9ce4fdfe..934dfd2959 100644 =2D-- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -29435,3 +29435,39 @@ Information about these scales can be @url{https://en.wikipedia.org/wiki/List_of_musical_scales_and_modes, found= on Wikipedia}.") (license license:expat))) + +(define-public python-blis + (package + (name "python-blis") + (version "0.9.0") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/explosion/cython-blis") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1p4y4mf8046kv2syf2s0v6mf4s000anr1ws7w3fny852gpp6czk4")))) + (build-system python-build-system) + (native-inputs (list python-numpy-next + python-pytest + python-cython + blis + python-hypothesis)) + (arguments + (list #:tests? #t + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'patch + (lambda _ + (substitute* "./blis/benchmark.py" + (("blas_ilp64_opt_info") + "blas_opt_info"))))))) + (home-page "https://github.com/explosion/cython-blis") + (synopsis "Fast matrix-multiplication Python library") + (description + "This package provides the @url{https://github.com/flame/blis, +Blis linear algebra} routines as a self-contained Python C-extension.") + (license license:bsd-3))) =2D-=20 2.25.1 --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable =2D-=20 Artyom "avp" Poptsov Home page: https://memory-heap.org/~avp/ CADR Hackerspace co-founder: https://cadrspace.ru/ GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEE0MLqwTMQgi2Y3rV86cWi2QiYoC8FAmKkchIACgkQ6cWi2QiY oC/YjQgApAafjyBkTS+z64ZdKCt7nBzeN0fcYRHBmjFIJjAkzzIiUEMCxga5hRoq OhAynKks3NjYp78Nisj0IH3KyZW6xxGov/e6FioZrPnWeEp/WUSik9aQvMWuPgJ0 PacIatbAH7hfLi7LXPwC0p03PE5KTWFjN6LjhQfuoPt+k+3lkybfpwL4rySGf1K5 Uvxz00KLnhF/orbTA6DkMEYD6e375bVGO7l7EygRmhiPnl92IQzZl41Qm80AlU4z KL5nSGwn9QqvXKPYLOr9UxdJBazcIAU9413f58Ni7ijilrHpjqwKCD37ZIyvfGJz m+DXj5XmPOQFeUI9khUgK8X2wCMTug== =XKhy -----END PGP SIGNATURE----- --==-=-=--