From a6a9087f76632a3ffb552c7fc1d42d0f49da66c1 Mon Sep 17 00:00:00 2001 From: uis Date: Thu, 2 Jan 2025 07:26:59 +0300 Subject: [PATCH] sci-libs/torchaudio: add 2.4.1 Signed-off-by: uis Signed-off-by: Nowa Ammerlaan --- sci-libs/torchaudio/Manifest | 1 + sci-libs/torchaudio/metadata.xml | 11 +++ sci-libs/torchaudio/torchaudio-2.4.1.ebuild | 80 +++++++++++++++++++++ 3 files changed, 92 insertions(+) create mode 100644 sci-libs/torchaudio/Manifest create mode 100644 sci-libs/torchaudio/metadata.xml create mode 100644 sci-libs/torchaudio/torchaudio-2.4.1.ebuild diff --git a/sci-libs/torchaudio/Manifest b/sci-libs/torchaudio/Manifest new file mode 100644 index 00000000000..0059647a605 --- /dev/null +++ b/sci-libs/torchaudio/Manifest @@ -0,0 +1 @@ +DIST torchaudio-2.4.1.tar.gz 4503000 BLAKE2B 85ae91bb564996f95c9116802058968dff191d4771becbb859987afd3b78189980b31281c5c49088fe91a72a02170dafe865f8bbb4168af6aeafe42f4029c09b SHA512 84c196a19bedefd39c7c1bc690705e317aaba9e16aa52a71dfa5688faf50ffa1985008c59007939ad7096c7900c5450659efb12e0a393c4545fe4bd31f294b11 diff --git a/sci-libs/torchaudio/metadata.xml b/sci-libs/torchaudio/metadata.xml new file mode 100644 index 00000000000..445ee5c8c44 --- /dev/null +++ b/sci-libs/torchaudio/metadata.xml @@ -0,0 +1,11 @@ + + + + + Enable ROCm gpu computing support + Enable custom RNN-T loss function + + + pytorch/vision + + diff --git a/sci-libs/torchaudio/torchaudio-2.4.1.ebuild b/sci-libs/torchaudio/torchaudio-2.4.1.ebuild new file mode 100644 index 00000000000..6e1067764d4 --- /dev/null +++ b/sci-libs/torchaudio/torchaudio-2.4.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{11..12} ) +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_EXT=1 +ROCM_SKIP_GLOBALS=1 +inherit cuda distutils-r1 multiprocessing rocm optfeature + +DESCRIPTION="Data manipulation and transformation for audio signal processing" +HOMEPAGE="https://github.com/pytorch/audio" +SRC_URI="https://github.com/pytorch/audio/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/audio-${PV}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" +IUSE="cuda rocm ffmpeg openmp +rnnt" +REQUIRED_USE="?? ( cuda rocm )" + +DEPEND=" + ffmpeg? (