From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 8EFiDJJS/2WASAEAe85BDQ:P1 (envelope-from ) for ; Sat, 23 Mar 2024 23:07:14 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 8EFiDJJS/2WASAEAe85BDQ (envelope-from ) for ; Sat, 23 Mar 2024 23:07:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IC+qFKER; 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=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1711231634; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: 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=KbuGiHbyUCgyQHQHFEwicWwBns8blVSpfCQsaRbVqys=; b=oQWzjf1kKORVesDMqDalyYqa+UZ9VkI6McWb8w+Alj1ZpgsHWfX0gE8MkFtjP4GImgOXZh eCyAufZ8/EGatfqduT81i7Sdd4fIuhBTbe4CiTMsmvBmGZPjrKMw6KuN2TxH2JsDQwjz3n tZRdMQEHZgdJgj7V/PqOQmpGMoVeGHMoOYtkFEzezjXaUHDktRAm6AhZnZH5MiQSQJ6EeU R+gzuT+HOk/zY95mPz67uWPTxIKKw9MB264cLf9MO5tsqeX6doJf/hxOHpFgTVocD5cIkX KSO414APYKDXd+Shxb1ybkrC80TA/flxIInevcbwyuhLwWSnVLhD7jWwstMlRw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=IC+qFKER; 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=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1711231634; a=rsa-sha256; cv=none; b=Cyh+DCrQNm+xvJB4/NhSDP5ype4yZZv2GmIvE4T8lc9p4/loMlDpE58XjilXukoMj5fazc U8t8BLQbLwKAalT4crfMeB7fezTddiLj8ekrnlSp3opwJI5xvOoah+F2Xoa0Ou99ABXGvy zcFZ791ojLzDv+8DmdPU8ZpMTG+eMMAGldkfBnaSdQkT0ZyvHaXr8T6oyBh91cL+W25odF wqCJjSKjBpO8zHazKCFSnrYzW3hqQzGFhp4Jz3HjZGEWPYfDCjb8HW5K8O0ccnOhmxB9Eh Fb4snriHGsWxU8LanrO/qQ2J+t1R0A5BbZWKovZLjIhSSS1bEZ16jao08URO2A== 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 198A964521 for ; Sat, 23 Mar 2024 23:07:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ro9VV-000540-1i; Sat, 23 Mar 2024 18:06:29 -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 1ro9VS-000527-Fc for guix-patches@gnu.org; Sat, 23 Mar 2024 18:06:26 -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 1ro9VS-00081h-2i for guix-patches@gnu.org; Sat, 23 Mar 2024 18:06:26 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ro9W7-0006Tq-DO for guix-patches@gnu.org; Sat, 23 Mar 2024 18:07:07 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH v4 31/32] gnu: Add qnnpack-pytorch-for-r-torch. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 23 Mar 2024 22:07:07 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 69591 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 69591@debbugs.gnu.org Cc: David Elsing Received: via spool by 69591-submit@debbugs.gnu.org id=B69591.171123161324802 (code B ref 69591); Sat, 23 Mar 2024 22:07:07 +0000 Received: (at 69591) by debbugs.gnu.org; 23 Mar 2024 22:06:53 +0000 Received: from localhost ([127.0.0.1]:56620 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro9Vs-0006Rq-Pq for submit@debbugs.gnu.org; Sat, 23 Mar 2024 18:06:53 -0400 Received: from mout02.posteo.de ([185.67.36.66]:42171) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro9VQ-0006Ox-Gx for 69591@debbugs.gnu.org; Sat, 23 Mar 2024 18:06:25 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 7CD4A240101 for <69591@debbugs.gnu.org>; Sat, 23 Mar 2024 23:05:37 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711231537; bh=GWTDffaLxDBIA6wjOFnW0ICr1U5L6HcQ630FSO+vTbw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=IC+qFKER4iiL/AlPVxR/3SznTNZz2PrmM9gAdTk8megQRmxK3EJUOeRTNi/003K0x g6JEE4c3lKSMszAXESCEA0RtfwDT7SZ/hMaeeC7C/MnIejKb2ttVEkeGMZjrlQbb/l y+TakOxS2YFgg2U3et7eEVAebXEETc53j21hfN+wDb5R/HfaWO0uvD50MV2A33H1sw JKUzDq8w609nSiJPzKDAD89U6iTC3wKZM2tt2KKm4qKV2UIKDRr22+scbCgpSope8M cJaOGtYXaIYVhns1Q1nnEHbTwvo1sVVUka1197P/+cS4NElPXLw3dYDZO9CTKARjAg mVas654SawnWg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V2Ctn17zXz6tyY; Sat, 23 Mar 2024 23:05:37 +0100 (CET) From: David Elsing Date: Sat, 23 Mar 2024 22:05:10 +0000 Message-ID: <20240323220518.25063-31-david.elsing@posteo.net> In-Reply-To: <20240323214040.20221-1-david.elsing@posteo.net> References: <20240323214040.20221-1-david.elsing@posteo.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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-Spam-Score: 3.97 X-Migadu-Queue-Id: 198A964521 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.97 X-TUID: fc55bB8DPAy6 * gnu/packages/machine-learning.scm (%python-pytorch-for-r-torch-version): New variable. (%python-pytorch-for-r-torch-src): New variable. (qnnpack-pytorch-for-r-torch): New variable. --- gnu/packages/machine-learning.scm | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index ae17869adc..834de52fa1 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4743,6 +4743,34 @@ (define-public python-pytorch-avx (delete 'disable-avx-dependencies))))) (supported-systems '("x86_64-linux")))) +(define %python-pytorch-for-r-torch-version "2.0.1") + +(define %python-pytorch-for-r-torch-src + (origin + (inherit %python-pytorch-src) + (uri (git-reference + (url "https://github.com/pytorch/pytorch") + (commit (string-append "v" %python-pytorch-for-r-torch-version)))) + (file-name (git-file-name "python-pytorch" + %python-pytorch-for-r-torch-version)) + (sha256 + (base32 + "0iirrn687i7sfv0p0i7dn89x3rf13a7l8y1y5h190h51yjxpxqxa")))) + +(define-public qnnpack-pytorch-for-r-torch + (package + (inherit qnnpack-pytorch) + (version (string-append "pytorch-" %python-pytorch-for-r-torch-version)) + (source + (origin + (inherit %python-pytorch-for-r-torch-src) + (patches '()) + (modules '((guix build utils) + (srfi srfi-26) + (ice-9 ftw))) + (snippet + (origin-snippet (package-source qnnpack-pytorch))))))) + (define-public python-pytorch-for-r-torch (package (inherit python-pytorch) -- 2.41.0