commit: 0d86ef3faffc7f13c85e4454e554b807fe0e3606
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 24 12:23:30 2026 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Tue Feb 24 12:23:40 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0d86ef3f
sci-ml/kineto: add 0.4.0_p20260127
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/kineto/Manifest | 1 +
sci-ml/kineto/kineto-0.4.0_p20260127.ebuild | 51 +++++++++++++++++++++++++++++
2 files changed, 52 insertions(+)
diff --git a/sci-ml/kineto/Manifest b/sci-ml/kineto/Manifest
index 96f842180485..48af922d145a 100644
--- a/sci-ml/kineto/Manifest
+++ b/sci-ml/kineto/Manifest
@@ -1,3 +1,4 @@
DIST kineto-0.4.0_p20250214.tar.gz 8276188 BLAKE2B
45a07fe6dbfb68dcba4c637851404fbea7e15642b97e30baf8dbce3a9b80a6e0662ce684027aa5a00da0ff86daf028e2ea173451857264e8a5f5800629bdc767
SHA512
614f7ec7e0bcbd816d01b704a85efadd6340a322ebf60920b72717c65034b1ea60cab65243833b651482465fc145211bed25de83592801e4b9e955839f404b20
DIST kineto-0.4.0_p20250617.tar.gz 8282683 BLAKE2B
91993fef72e04da98ba6443e164876ec475daf5fc3ce34851f2ae968fce00a3650278eac3cb96b940705c4a58aba3b296c0bc2cc9edc54f3a01891d473f07ee8
SHA512
921b96a56e01d69895b79e67582d8977ed6f873573ab41557c5d026ada5d1f6365e4ed0a0c6804057c52e92510749fc58619f554a164c1ba9d8cd13e789bebd0
DIST kineto-0.4.0_p20251121.tar.gz 8306901 BLAKE2B
a848743b7a41cd733008316f0fe74e6c2eeea5425fb70be9d84da261e542d1102cab45cda1aaa5a0bcc945de1dfc323719856082ff0c2d31ea3fa88036cfd91a
SHA512
4c72747c17e10752d3a7113f2ae5bc049566849d2136a2b5a5916fb042842bea1186b5436ac52f0e829ad54965af7c5810c5a0199e6eb81a7c79bd977984b4f5
+DIST kineto-0.4.0_p20260127.tar.gz 8316409 BLAKE2B
9c5afc8bb68f78a7d4d61d85435e4a556e3953e20269fb01c2e1dedca758bf348b568f9e28e5bd07627df132f83673c009c3ffaa9744bc93d34b178c6716f1f5
SHA512
f15347cdb210b887c1c9c9e9d91556f48b5b3fc662dce0bfa6086bce38673c568f0fc385cdd1b16a742cc709d4db5798a18c6400f24bd57f6a1b4a2eaf303d47
diff --git a/sci-ml/kineto/kineto-0.4.0_p20260127.ebuild
b/sci-ml/kineto/kineto-0.4.0_p20260127.ebuild
new file mode 100644
index 000000000000..66ffae437228
--- /dev/null
+++ b/sci-ml/kineto/kineto-0.4.0_p20260127.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2022-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..14} )
+inherit python-any-r1 cmake prefix
+
+CommitId=7a731b6ae01cfc2b1fc75d83a91f84e682e43fd7
+
+DESCRIPTION="part of the PyTorch Profiler"
+HOMEPAGE="https://github.com/pytorch/kineto"
+SRC_URI="https://github.com/pytorch/${PN}/archive/${CommitId}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${CommitId}/libkineto
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64"
+IUSE="test"
+
+RDEPEND="
+ dev-libs/libfmt
+ dev-libs/dynolog
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ test? ( dev-cpp/gtest )
+ ${PYTHON_DEPS}
+"
+RESTRICT="!test? ( test )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.4.0_p20250418-AppxClock.patch
+)
+
+src_prepare() {
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DLIBKINETO_THIRDPARTY_DIR="${EPREFIX}"/usr/include/
+ -DKINETO_BUILD_TESTS=OFF # tests require cuda toolkit
+ -DCUDA_SOURCE_DIR=/opt/cuda
+ -DLIBKINETO_NOXPUPTI=Yes
+ )
+ eapply $(prefixify_ro "${FILESDIR}"/${PN}-0.4.0_p20251121-gentoo.patch)
+
+ cmake_src_configure
+}