From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 mJwBC3hp+2UjJQEA62LTzQ:P1 (envelope-from ) for ; Wed, 20 Mar 2024 23:55:52 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id mJwBC3hp+2UjJQEA62LTzQ (envelope-from ) for ; Wed, 20 Mar 2024 23:55:52 +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=TR7vpjJZ; 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=1710975352; 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=3A88uSECtuSrMBkNNZXFKj5Z7hUZD2qPkZNpuosIFho=; b=PbqYip53hMV/dQeES7oXO1Eb+PWhTWK4748SzVcBWV/oSdDSYeK0BnZiZpqFmEdcymDkyk yDAc/3Rcvgx1IFHaEZUijTSlMoPqKkXFc4C2YioZtXasWz0KvM3J5A2ryqBZOlGGYyzXY0 QpLlVsy9aAMVvCIWuxdUooeBh7achUPd3SujlWpP/YFvwdIa/UpZQpYR9xmqPSHvwMhH+I IEA6xm7zY57pxjZlhgl9+BF54elXlHZPV2m1Lppg4b7qSIagb5QzvsFjT+7JUf3pb/FNr0 95QAPBoRM2HHdWnTu8oZLWX9NCsOtFFogS0wGuq9kYxOvwe/pxGYQWitGhDn8w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=TR7vpjJZ; 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=1710975352; a=rsa-sha256; cv=none; b=kN6Cf+aAbFc7CPNKh/F6MEW+KIOE2e2jV4RQ2wJjMgtJ6b4VpDEzTqAwPNvI1z+9BGVnCW SIgMr684a9z3f1w6+XJXRnVV8D0tJabRHfPDiRsOa7ufsMnCuhcXvg2kZ4PX8YZbDWw/BB 2Ikm4PUa0yl5gGjRtPl66yShGUFbqml1WPo8CsbINqdCC1t3+OoTvjvkL6/GgIrbZ2dake 5AwOCYEjYX5PSdkwEqg0nMEFCM7btLRtIwlOvpcoHOEwHkqArG5hL3zo2xXcuOJFT1loIy VQ9VSgLBvjLs0alYjd66h3C+jFSjrgAw8n0QJMzxOsOv+E6EePTI3CPz+X3Mlw== 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 0A22B1345D for ; Wed, 20 Mar 2024 23:55:52 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4bx-00062U-Ij; Wed, 20 Mar 2024 18:40:41 -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 1rn4br-000609-QN for guix-patches@gnu.org; Wed, 20 Mar 2024 18:40:36 -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 1rn4br-0007eF-Ih for guix-patches@gnu.org; Wed, 20 Mar 2024 18:40:35 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4cV-0006Fb-4H for guix-patches@gnu.org; Wed, 20 Mar 2024 18:41:15 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH v3 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: Wed, 20 Mar 2024 22:41:15 +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.171097445923790 (code B ref 69591); Wed, 20 Mar 2024 22:41:15 +0000 Received: (at 69591) by debbugs.gnu.org; 20 Mar 2024 22:40:59 +0000 Received: from localhost ([127.0.0.1]:36842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4cE-0006BX-LE for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:40:59 -0400 Received: from mout01.posteo.de ([185.67.36.65]:49131) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4bU-00065G-RJ for 69591@debbugs.gnu.org; Wed, 20 Mar 2024 18:40:13 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 9DD9D240027 for <69591@debbugs.gnu.org>; Wed, 20 Mar 2024 23:39:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710974367; bh=qJ9vWcm/gtXf7QnOAFw+WKKB+EAO05qCsxAiCF3UqqU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=TR7vpjJZKJFMHHQX6cGF6JX+4QLYQLaR/BRaAJJsfEZ2BjnS991fAJCfG3PZ9x6Yb ZHEyFXY6HAdNXHBFto7AYHmKgeBF0ZPPAMn9B+UFKYzEiVDmL0ecBZwNMI1gD5FFPz I2g0W/SxoywLRV+S0xuKCVW/1D9TiyeU/Tda5XFVn1236+ph5e8EkmxACvAb1AqPzt ABimUdvnFAgNZFDyvgzTD8JFGXlmZi0jnl0snZ8Q5ePyjYU/YfBSO0s6GDQaXA60iW 4Go/4MUoZfBA1Q4uDNk5Bzf0VyACi2ClBsESq19eAWbZHlbpJAPRWHOvEUzr/qNtcK ePKaPs5F3CD7g== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V0NnC2GSGz6twf; Wed, 20 Mar 2024 23:39:27 +0100 (CET) From: David Elsing Date: Wed, 20 Mar 2024 22:38:56 +0000 Message-ID: <20240320223906.13214-31-david.elsing@posteo.net> In-Reply-To: <20240320223737.12883-1-david.elsing@posteo.net> References: <20240320223737.12883-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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 3.98 X-Spam-Score: 3.98 X-Migadu-Queue-Id: 0A22B1345D X-TUID: 6ObGlI+Zlh/L * 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 d600e601b9..caca1dcf89 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4742,6 +4742,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