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 eMXqDmNa/2V0HQEAe85BDQ:P1 (envelope-from ) for ; Sat, 23 Mar 2024 23:40:35 +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 eMXqDmNa/2V0HQEAe85BDQ (envelope-from ) for ; Sat, 23 Mar 2024 23:40:35 +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=QwBm7dBg; 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=1711233635; 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=Ex+O5nzUHCVQUotYMIV2S1FhwCtPGCwY3xSPnfhk6ts=; b=kF9mpRLQ/LzVcM2NQyrCBM5DgCbMinGqnKbdxNd+YWs58u1AMPOp6+ju4LTsPeu+Pn7VPD zfcRtAbCmJ5AwVnIHUURHh0bKZiGHsfkVuNUlsZU75UgnsMUAp46S66cdR+Q6vwR3udXzn cHGwaJFO5CBNkdqES7cMDGOmwna6nDw3sW/u5LPQAC50Qia4ondC8MATUCGr6qRi5dFAP3 Q/hOJxCWjVmSUpU6AVtV91nucj7HbWpaooG+qiVrarSf3/JkY2BY65n9208C6sPqPIljxR xnz5h0F+PDvDnhiu/ri49ASSrtrfzIdKLJIAOLSdNo8+Qmblcn4Lu4nmUS1CHg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=QwBm7dBg; 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=1711233635; a=rsa-sha256; cv=none; b=Tf9JrlpJTG3xr15KOjAqG1lZ+1E8ISLLyy8AZaXgYKm/SbYwDiGBB7rmLsKwOVSXL5Vtwn VNXdFbYKF9k4u1ids3YBnIV6UVqn4YyoT8Ezif/P1XnN/+UFYCEKAaXx0At+KMlr+a7BV7 wFZlDW2NGERLdR7oqiM94rsIHLGmSo+nkw7dZ/krP+b/tDC3+PW1XQY1UwvUUahJ7YrldQ ThMnSCvHJMjaZxfiM3fAytky57QuUOHjLXYnaFNV39uuw1YzoMmElFOY/I6qYOzQb2j4iP 4LPr+S/WqayUIfOEO/cab3AA5RnZav1OWt5gIXcyGZCGqI75RPBXFGcqQN16vA== 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 2268489AC for ; Sat, 23 Mar 2024 23:40:34 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1roA2L-0003In-6D; Sat, 23 Mar 2024 18:40:25 -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 1roA2J-0003Ha-UL for guix-patches@gnu.org; Sat, 23 Mar 2024 18:40:23 -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 1roA2J-0006nH-LW for guix-patches@gnu.org; Sat, 23 Mar 2024 18:40:23 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1roA2z-0007v2-1U for guix-patches@gnu.org; Sat, 23 Mar 2024 18:41:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH v4 18/32] gnu: Add tensorpipe. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 23 Mar 2024 22:41:05 +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.171123363130290 (code B ref 69591); Sat, 23 Mar 2024 22:41:05 +0000 Received: (at 69591) by debbugs.gnu.org; 23 Mar 2024 22:40:31 +0000 Received: from localhost ([127.0.0.1]:58201 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1roA2R-0007sQ-AD for submit@debbugs.gnu.org; Sat, 23 Mar 2024 18:40:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]:50167) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ro9dM-0006lI-SS for 69591@debbugs.gnu.org; Sat, 23 Mar 2024 18:14:37 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 21E3C240028 for <69591@debbugs.gnu.org>; Sat, 23 Mar 2024 23:05:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1711231530; bh=w7d7enRIOmY7Lzy2LDUZ8cXLaqXdkRXeedSWLLjqXhQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=QwBm7dBgvCO7TodnVeUPmnMA8tbFUgZZ5aHsMk/0Q9oHPKDToVzIc+/EZ6XIA3/fg k6ho7gUz7fF/LkU3FpS5WIXGfNjVsONeNrc4SalGr280m8kHYLEiN5tyQ0DH/Obkvz +Q0ZCG+TOm3x9v0Zx50c/gIkfbvgWnPdjLRGtU7bBwkzYRamvve+JqZ+ZXfU3BsAwa QHX7OnetYZKBp4gAOUbnScW7LWQgSajT2wUGF/xFaaXqyaJcJwhXRbG8clDVE/tq9B ehOPeT/fS18Y96OqiWEHMFhq6RquX243KAHyZNWRxIcyZWdD0N5Y1aXlXDIkDF56YL 2wYyLT7BvVxhQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4V2Ctd5kb5z6tx0; Sat, 23 Mar 2024 23:05:29 +0100 (CET) From: David Elsing Date: Sat, 23 Mar 2024 22:04:57 +0000 Message-ID: <20240323220518.25063-18-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-Migadu-Queue-Id: 2268489AC X-Spam-Score: -3.93 X-Migadu-Spam-Score: -3.93 X-Migadu-Scanner: mx10.migadu.com X-TUID: 3+G8GrLSVFz7 * gnu/packages/machine-learning.scm (tensorpipe): New variable. --- gnu/packages/machine-learning.scm | 36 +++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm index a254a0c7f2..b104800b71 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -91,6 +91,7 @@ (define-module (gnu packages machine-learning) #:use-module (gnu packages image-processing) #:use-module (gnu packages imagemagick) #:use-module (gnu packages jupyter) + #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) #:use-module (gnu packages linux) #:use-module (gnu packages llvm) @@ -4093,6 +4094,41 @@ (define-public xnnpack-for-torch2 "-DXNNPACK_BUILD_TESTS=FALSE" ;FIXME: see below "-DXNNPACK_BUILD_BENCHMARKS=FALSE")))))) +(define-public tensorpipe + (let ((commit "bb1473a4b38b18268e8693044afdb8635bc8351b") + (revision "0")) + (package + (name "tensorpipe") + (version (git-version "0" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/pytorch/tensorpipe") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "0sbpkd69rzybw2j89sjkf4s0j8vkk96d51bsps28894989a75j6v")) + (modules '((guix build utils))) + (snippet + '(delete-file-recursively "third_party")))) + (build-system cmake-build-system) + (arguments + (list + #:configure-flags + ''("-DBUILD_SHARED_LIBS=ON") + ;; There are no tests + #:tests? #f)) + (inputs (list libuv)) + (native-inputs (list googletest pkg-config pybind11 libnop)) + (home-page "https://github.com/pytorch/tensorpipe") + (synopsis "Tensor-aware point-to-point communication primitive for +machine learning") + (description "TensorPipe provides a tensor-aware channel to transfer +rich objects from one process to another while using the fastest transport for +the tensors contained therein.") + (license license:bsd-3)))) + ;; Please also update python-torchvision when updating this package. (define-public python-pytorch (package -- 2.41.0