From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DA5C215806E for ; Sun, 14 May 2023 17:08:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A69A2E08A8; Sun, 14 May 2023 17:08:21 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 471C3E08A8 for ; Sun, 14 May 2023 17:08:21 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 33E0434092D for ; Sun, 14 May 2023 17:08:20 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F8F5A5B for ; Sun, 14 May 2023 17:08:18 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1684084072.c20b2f88a074632d3741ae5b3f498483e84fe388.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/tensorpipe/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-libs/tensorpipe/metadata.xml sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild X-VCS-Directories: sci-libs/tensorpipe/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: c20b2f88a074632d3741ae5b3f498483e84fe388 X-VCS-Branch: master Date: Sun, 14 May 2023 17:08:18 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c39cfbb4-ef59-430d-8a63-a4fdec42e90b X-Archives-Hash: 1f5fdcec02db843ab3f67aa643705357 commit: c20b2f88a074632d3741ae5b3f498483e84fe388 Author: Alfredo Tupone gentoo org> AuthorDate: Sun May 14 17:07:11 2023 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sun May 14 17:07:52 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c20b2f88 sci-libs/tensorpipe: enable cuda Closes: https://bugs.gentoo.org/906204 Signed-off-by: Alfredo Tupone gentoo.org> sci-libs/tensorpipe/metadata.xml | 3 +++ ...e-2022.05.13.ebuild => tensorpipe-2022.05.13-r1.ebuild} | 14 ++++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/sci-libs/tensorpipe/metadata.xml b/sci-libs/tensorpipe/metadata.xml index a676d5dbb87a..0771cea93d5e 100644 --- a/sci-libs/tensorpipe/metadata.xml +++ b/sci-libs/tensorpipe/metadata.xml @@ -5,6 +5,9 @@ tupone@gentoo.org Tupone Alfredo + + Add support for CUDA processing + pytorch/tensorpipe diff --git a/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild b/sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild similarity index 73% rename from sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild rename to sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild index 23422f9cc125..734a2050cf07 100644 --- a/sci-libs/tensorpipe/tensorpipe-2022.05.13.ebuild +++ b/sci-libs/tensorpipe/tensorpipe-2022.05.13-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 2022 Gentoo Authors +# Copyright 2022-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -15,16 +15,26 @@ SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz LICENSE="BSD" SLOT="0" KEYWORDS="~amd64" +IUSE="cuda" RESTRICT=test RDEPEND=" dev-libs/libuv + cuda? ( + dev-util/nvidia-cuda-toolkit:= + ) " DEPEND="${RDEPEND} dev-libs/libnop " -BDEPEND="" S="${WORKDIR}"/${PN}-${CommitId} PATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) + +src_configure() { + local mycmakeargs=( + -DTP_USE_CUDA=$(usex cuda) + ) + cmake_src_configure +}