commit: 6afb1761a83a99a4e3a35f06d97b717aa371efef
Author: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
AuthorDate: Sun May 4 13:36:10 2025 +0000
Commit: Alfredo Tupone <tupone <AT> gentoo <DOT> org>
CommitDate: Sun May 4 13:36:10 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6afb1761
sci-ml/kineto: add 0.4.0_p20250418
Signed-off-by: Alfredo Tupone <tupone <AT> gentoo.org>
sci-ml/kineto/Manifest | 1 +
sci-ml/kineto/kineto-0.4.0_p20250418.ebuild | 47 +++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
diff --git a/sci-ml/kineto/Manifest b/sci-ml/kineto/Manifest
index 3299ccf8890a..777d45973aa2 100644
--- a/sci-ml/kineto/Manifest
+++ b/sci-ml/kineto/Manifest
@@ -1,2 +1,3 @@
DIST kineto-0.4.0_p20240807.tar.gz 8263052 BLAKE2B
79a9035939164595f30f55c6cdfdc72ab42fd93d6d8fc63dc028cae50498823916993cb2d856c4b4dc43f4107602e28e8cf70584b4aea4cacda2a700b9e856e3
SHA512
f037fac78e566c40108acf9eace55a8f67a2c5b71f298fd3cd17bf22cf05240c260fd89f017fa411656a7505ec9073a06a3048e191251d5cfc4b52c237b37d0b
DIST kineto-0.4.0_p20241109.tar.gz 8275370 BLAKE2B
976e629eda6b967e3169e4179e021d8e6e62671d53ceadae420dc2c586445ab701a1f4b479d7e2abd8f0bd689e4679e66d57dcadc42f5e763c127fb371bb389c
SHA512
e56500c3fb967d808b9aa052587a4bdeb5561bd47ab4de87cc636496867089c5b480e1c7634a0269b97262504e03ced047dc612903fa0f56a018c23adef4e686
+DIST kineto-0.4.0_p20250418.tar.gz 8271824 BLAKE2B
31814b0363738b205b3510d45c0ae834230c1c6377594d7bc1fe7df4567b43de03448cd61789fb122f648654814ce312770e971ccce22568e52b39f4ff159505
SHA512
4c35ee66e91ba8046e81f9b9906e1c5d82a62fc82f4b6f3b6d26a5715eeaa6775be23fae2d0c0fe50b840265e6094f9cc3ce7475daa4e3f84c89fbf6af38b862
diff --git a/sci-ml/kineto/kineto-0.4.0_p20250418.ebuild
b/sci-ml/kineto/kineto-0.4.0_p20250418.ebuild
new file mode 100644
index 000000000000..e54003134947
--- /dev/null
+++ b/sci-ml/kineto/kineto-0.4.0_p20250418.ebuild
@@ -0,0 +1,47 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit python-any-r1 cmake prefix
+
+CommitId=d82680bbd44f872aa04394fa5bba23a7992f9fa4
+
+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-gcc13.patch
+)
+
+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_p20231031-gentoo.patch)
+
+ cmake_src_configure
+}