From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id /yBuLF7H6GVlvgAAe85BDQ:P1 (envelope-from ) for ; Wed, 06 Mar 2024 20:43:26 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id /yBuLF7H6GVlvgAAe85BDQ (envelope-from ) for ; Wed, 06 Mar 2024 20:43:26 +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=ZCbQ5xPD; 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=1709754206; 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=cUUcdlGs0sLWFkYK9u7zLpjhFOeuJs8d+jRRJZAab8Q=; b=VtlY99PKa6NjDvaOGgJiYty33cgFqmhVv5kca5tHMm5tiQcyHUcO0DKJO4eEonebA7d8U8 I4aL/eHp3dC73vqk+R8hLfZebYZWj/74Rrbqa+eAtg2JhNxWDaskuum2rivlA7YaukDbH8 mQ+wMjMrgOcwKb5NZefwrMHQRfxxFlH6pgQ21V/6qjCMdqXFihYhsITw6+9sp0lxHuodkn U+oFTtw1wCP1vXLYPEJt3pPkeSCAGjsZkIM3cRpG9NaFjNXYxW0mvDfG4ytEutT/wZUnlY d4qy4GnhOmN5Kr0o1/SB2QLEGcyCMCG+3lmdqUWk30A10P8otY9oC4GF7eYjQA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1709754206; a=rsa-sha256; cv=none; b=f0m0ObaZeyT6UnsvJ1c2ByNaWiVeQ5WNIhhRYZ3nXXCVlFO/2Iwsfaz9ZidfZgs8+zjrg1 8UaVJvu6tB//gT/Ix37smXFoiv1yc1nhzMT31rKN3AdBuDaUb1+kGH5+SnpxukSYf/1hoW DEv6EfrdZbAG2bn0HyQ37m/qc2H4iVehNMHHm5L7r+PZcxtPXL2fBA7PTNVT9N/BdGOhiF SJZhu/8FzLx/tgiweRmTASEmgInn+rFhE+wqdnmGOMW7preXCdmBIc8EUvrCk1D9RmOdyd JpaYFUvJipUvDlN6dDdjgTUvFjarR8x0D+cS0Lg4aSK2aItIv8j2T/Pd9QdmrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=ZCbQ5xPD; 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) 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 980686ECA0 for ; Wed, 6 Mar 2024 20:43:26 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rhxA1-0002e9-Nf; Wed, 06 Mar 2024 14:42:41 -0500 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 1rhx9v-0002SH-3m for guix-patches@gnu.org; Wed, 06 Mar 2024 14:42:35 -0500 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 1rhx9u-0006Su-RM for guix-patches@gnu.org; Wed, 06 Mar 2024 14:42:34 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rhxAP-0008K0-P5 for guix-patches@gnu.org; Wed, 06 Mar 2024 14:43:05 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#69591] [PATCH 18/31] gnu: Add tensorpipe. Resent-From: David Elsing Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Mar 2024 19:43: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.170975414631810 (code B ref 69591); Wed, 06 Mar 2024 19:43:05 +0000 Received: (at 69591) by debbugs.gnu.org; 6 Mar 2024 19:42:26 +0000 Received: from localhost ([127.0.0.1]:51573 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhx9k-0008Gw-O7 for submit@debbugs.gnu.org; Wed, 06 Mar 2024 14:42:26 -0500 Received: from mout02.posteo.de ([185.67.36.66]:51563) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rhx92-0008AS-9T for 69591@debbugs.gnu.org; Wed, 06 Mar 2024 14:41:44 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id A74B6240104 for <69591@debbugs.gnu.org>; Wed, 6 Mar 2024 20:41:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1709754063; bh=u9IN6g1bBWb+T8vu9lw7ovqE283Rw1wYXVxk26niHaA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version: Content-Transfer-Encoding:From; b=ZCbQ5xPDCRS0doBlFTI0siofQHW9QVG0d7GRGYwbkMGv5NrClcJj7quykeo2RCh4v DPFZHYCEFl5IiFkHO2pr66AsyAFqCayhq7UjgIq3SABl9gWk+nhCsYE4qvr0YYSAEr 6aNvRvI1Sqd21DdQfAdZ9ZyDTnzHiRLC1NGQF213B2oQYGcbSHuBFVpmhByfCRSMRg oFZG3ny8Qo6oFySOceWwMPv+98Zyj0U4uHwUKzoC/KrXA87woi7JIcJsaoxvGWjdTC mcLmScjb6fwrZB9VHcpdqlCdfzK/oL96YekxhcXdltp65VpcJG+RuL6a1Uq5sF7XJ/ cTnSr6nFffwfA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TqjTq27kbz6txV; Wed, 6 Mar 2024 20:41:03 +0100 (CET) From: David Elsing Date: Wed, 6 Mar 2024 19:40:24 +0000 Message-ID: <20240306194037.17992-18-david.elsing@posteo.net> In-Reply-To: <20240306193725.17463-1-david.elsing@posteo.net> References: <20240306193725.17463-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-Spam-Score: -2.37 X-Spam-Score: -2.37 X-Migadu-Queue-Id: 980686ECA0 X-Migadu-Scanner: mx11.migadu.com X-TUID: DO5qTLTBIyP8 * 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 99d7399c12..a58ccfbd5c 100644 --- a/gnu/packages/machine-learning.scm +++ b/gnu/packages/machine-learning.scm @@ -90,6 +90,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) @@ -4099,6 +4100,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