From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4OwlOr1u+2WEdgAAe85BDQ:P1 (envelope-from ) for ; Thu, 21 Mar 2024 00:18:22 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id 4OwlOr1u+2WEdgAAe85BDQ (envelope-from ) for ; Thu, 21 Mar 2024 00:18:22 +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=dfbADBT+; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710976701; a=rsa-sha256; cv=none; b=MWZOgXd/wS2XuNGXfOgxjCVHrVzyW4YUPG9shjNWtA2XZcL0OAZOsA7zrIxBzLRZnsgglg wKKM5ZwPqANVNw1/NI/uepguyEynimCfQTuMKAKFK8b8hY/9S5tt/tH9iBMyojd+MPUP53 0bKt7UDswC+2Rl3jBm1LwbHbNis9plhsm1wxfDXgsGlDlCBTgxlyQZL1F7pNlxKtH20ESl RdOm5Gyevoh6PHnS3zuITQ5Tg+sEi26tru13C2a6vnBR0tPjB7RP8cYw0Oa61zVyBPxIER vOAorkqWk4eC1TyZ0FYStY70mktsi+5lyZCymBf1YN09TJETSSuF3sg+pcNcXw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=dfbADBT+; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710976701; 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=a/DKMeXwPuJhqEpsRjr7rp94RNitSRWiC4WqorHpgkQ=; b=izwGShS4IggVXmAm9uPlK7tnv7JOvJKyK4rNDnfTGU237sH+MIz/AHqwXxmZwDh3L/e5cF JdUrPsenpC7wAxTtJm/0Buf2XQ7jLPNvHRYdzXgQGsaIRWYq5RAFzdt3K35jsibPYxUioa mder6ueNfe6i9jaw75XoyoDVpf4PMK3K1xMSDjBYDGYANk5fVKSDhBPLk/Fhhj4QZjZAYQ eHum2BOf+E8qv6LgT0HSOUJqd2j4KYTYpyp3m89+7teiNRZBqXGZXfpTuAHwDR+SCcYfy2 Jr8o5/SmR/GbrkX9r5EU5wTnQHSVuhA0c3zYTtHbQhvF4a7D5Z5d+hVK6qYYuw== 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 C9BD3261C6 for ; Thu, 21 Mar 2024 00:18:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rn4bq-0005yf-LP; Wed, 20 Mar 2024 18:40:34 -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 1rn4bm-0005xK-SQ for guix-patches@gnu.org; Wed, 20 Mar 2024 18:40:30 -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 1rn4bm-0007cZ-Il for guix-patches@gnu.org; Wed, 20 Mar 2024 18:40:30 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rn4cO-0006Dn-Tp for guix-patches@gnu.org; Wed, 20 Mar 2024 18:41:08 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH v3 27/32] gnu: Add python-pytorch-avx. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Mar 2024 22:41:08 +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.171097443223598 (code B ref 69591); Wed, 20 Mar 2024 22:41:08 +0000 Received: (at 69591) by debbugs.gnu.org; 20 Mar 2024 22:40:32 +0000 Received: from localhost ([127.0.0.1]:36815 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4bk-00068P-Db for submit@debbugs.gnu.org; Wed, 20 Mar 2024 18:40:31 -0400 Received: from mout02.posteo.de ([185.67.36.66]:57857) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rn4bN-00062x-LK for 69591@debbugs.gnu.org; Wed, 20 Mar 2024 18:40:07 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A1D76240103 for <69591@debbugs.gnu.org>; Wed, 20 Mar 2024 23:39:25 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1710974365; bh=WEsaR5AaZr02LZx+IjGRIsTTgwzCQ7Irb5p0ROEOU7A=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=dfbADBT+VmAb5mZj4Gbz0Xq+qazAJm0NCSoEAYqZxhRcHeo+cti2BDOaFRfXlwOBd UZNEmGJl8jhgFm05zErH+47n6bT6eKKgttIp/uHZvmYvZkV2kzhzRqhUX49ZS8U0J6 hrHzx/mKlJYLsERk7xIVfYOkyGE8DiBnbTDRtYvmN0CIdls7VCQ4t0IBAjTiGMx8aW kBZy6OwRUmNow7twMe5yBGTti9UkJI6YhztSHX21zfqr7967Y9no6WMj8nOxMXMIht 5Lq1cnu1W8u7pzQMdom7af32uzNsEN1MsG9CW2f2nZGhKv/gK9FaaBv+1QByp/R9iA 5FkI8piV0MZAA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V0Nn92S51z6twY; Wed, 20 Mar 2024 23:39:25 +0100 (CET) From: David Elsing Date: Wed, 20 Mar 2024 22:38:52 +0000 Message-ID: <20240320223906.13214-27-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: mx10.migadu.com X-Migadu-Spam-Score: -3.92 X-Spam-Score: -3.92 X-Migadu-Queue-Id: C9BD3261C6 X-TUID: h0fWGL+wnP6/ * gnu/packages/machine-learning.scm (python-pytorch-avx): New variable. --- gnu/packages/machine-learning.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a062a2398b..ea023ad749 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -4712,6 +4712,21 @@ (define-public python-pytorch Note: currently this package does not provide GPU support.") (license license:bsd-3))) +;; This package variant includes the dependencies requiring at least AVX2 or +;; AVX-512. +(define-public python-pytorch-avx + (package/inherit python-pytorch + (name "python-pytorch-avx") + (inputs + (modify-inputs (package-inputs python-pytorch) + (append fbgemm nnpack))) + (arguments + (substitute-keyword-arguments (package-arguments python-pytorch) + ((#:phases phases) + #~(modify-phases #$phases + (delete 'disable-avx-dependencies))))) + (supported-systems '("x86_64-linux")))) + (define-public python-pytorch-for-r-torch (package (inherit python-pytorch) -- 2.41.0