summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSv. Lockal <lockalsash@gmail.com>2024-08-08 01:52:49 +0000
committerAlfredo Tupone <tupone@gentoo.org>2024-08-08 18:22:21 +0200
commitd19faaeaeb03a94746862b82a8820a5fabf72de2 (patch)
tree4729ec8bf4387de9310ce4d963a20d4336ace1c7 /sci-libs
parentpackage.mask: Last rite sys-auth/pam_ldap (diff)
downloadgentoo-d19faaeaeb03a94746862b82a8820a5fabf72de2.tar.gz
gentoo-d19faaeaeb03a94746862b82a8820a5fabf72de2.tar.bz2
gentoo-d19faaeaeb03a94746862b82a8820a5fabf72de2.zip
sci-libs/kineto: add 0.4.0_p20240525
Changes: * explicitly disable tests: it requires nvcc (left for nvidia users) * new version is set to commit for caffe2 2.4.0 submodule Signed-off-by: Sv. Lockal <lockalsash@gmail.com> Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/kineto/Manifest1
-rw-r--r--sci-libs/kineto/kineto-0.4.0_p20240525.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/sci-libs/kineto/Manifest b/sci-libs/kineto/Manifest
index 5306787a3e16..ecca9794d523 100644
--- a/sci-libs/kineto/Manifest
+++ b/sci-libs/kineto/Manifest
@@ -1 +1,2 @@
DIST kineto-0.4.0_p20231127.tar.gz 8234629 BLAKE2B ac6e13340817eb283e387e699e70e5113571b258ee3ebf72f2d4a54a6349be22d84701ddec67fbc72d12be3fb0c321a71c8dd64a7f8a6d679522c49f21304fbc SHA512 316db3db624ae36720c0fcabb81f70c31b94ea64f18bc103aeadb75a25e06e113a774a3ec0c769881960ad61f3c2210172ccde1c451df653e7c430fbe89e4d9a
+DIST kineto-0.4.0_p20240525.tar.gz 8243259 BLAKE2B 677529d327254c26000271a6c845356604598fb05ba57befd0e5cbd0f112f6776d2851ea1e2a7671a38ee6cb06df45db68ff0435fcddbf69496db43f5ec1e7ee SHA512 41a08c7da9eea7d12402f80a5550c9d4df79798719cc52b12a507828c8c896ba28a37c35d8adf809ca72589e1d84965d5ef6dd01f3f8dc1c803c5ed67b03a43a
diff --git a/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild b/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild
new file mode 100644
index 000000000000..ecabcbb39cff
--- /dev/null
+++ b/sci-libs/kineto/kineto-0.4.0_p20240525.ebuild
@@ -0,0 +1,51 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..13} )
+inherit python-any-r1 cmake prefix
+
+CommitId=be1317644c68b4bfc4646024a6b221066e430031
+
+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}
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64"
+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_prepare() {
+ cd libkineto
+ cmake_src_prepare
+}
+
+src_configure() {
+ cd libkineto
+ local mycmakeargs=(
+ -DLIBKINETO_THIRDPARTY_DIR="${EPREFIX}"/usr/include/
+ -DKINETO_BUILD_TESTS=OFF # tests require cuda toolkit
+ )
+ eapply $(prefixify_ro "${FILESDIR}"/${PN}-0.4.0_p20231031-gentoo.patch)
+
+ cmake_src_configure
+}