Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/rankstr/
Date: Sun, 23 Feb 2020 03:52:52
Message-Id: 1582429814.1c174d1674167dc0bef763956d11268835b85859.Alessandro-Barbieri@gentoo
1 commit: 1c174d1674167dc0bef763956d11268835b85859
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Sun Feb 23 03:50:14 2020 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Sun Feb 23 03:50:14 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c174d16
7
8 sys-cluster/rankstr: new package
9
10 Package-Manager: Portage-2.3.89, Repoman-2.3.20
11 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
12
13 sys-cluster/rankstr/Manifest | 1 +
14 sys-cluster/rankstr/metadata.xml | 19 ++++++++++++++++
15 sys-cluster/rankstr/rankstr-0.0.2.ebuild | 38 ++++++++++++++++++++++++++++++++
16 3 files changed, 58 insertions(+)
17
18 diff --git a/sys-cluster/rankstr/Manifest b/sys-cluster/rankstr/Manifest
19 new file mode 100644
20 index 0000000..49b1c2e
21 --- /dev/null
22 +++ b/sys-cluster/rankstr/Manifest
23 @@ -0,0 +1 @@
24 +DIST rankstr-0.0.2.tar.gz 10290 BLAKE2B 4efa609804bffd0fe9215e9b06112615ed85657af88bd15e1a51a5db7ccc8701bf162ea88096df69a42ecd062e3099e5c18986d72fd8c5cc14b89fd019b3322d SHA512 fd4814ec797566004c3141b46b4ca410e217857e2bee3dc3b0f350c2c10fcaff62e3608fb0233894a0960aade660f55a536ea7cc41c9aed3a355b3a05f432a0f
25
26 diff --git a/sys-cluster/rankstr/metadata.xml b/sys-cluster/rankstr/metadata.xml
27 new file mode 100644
28 index 0000000..d2422a7
29 --- /dev/null
30 +++ b/sys-cluster/rankstr/metadata.xml
31 @@ -0,0 +1,19 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>lssndrbarbieri@×××××.com</email>
37 + <name>Alessandro Barbieri</name>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="github">ECP-VeloC/rankstr</remote-id>
41 + </upstream>
42 + <longdescription lang="en">The rankstr (rank string) library provides functions that identify unique strings across an MPI communicator.
43 +
44 +A key use case is to split a communicator into subcommunicators such that all processes in a resulting subcommunicator consist of those processes that provided an identical input string. rankstr_mpi_comm_split is a function like MPI_Comm_split, but it takes a variable-length string as the color argument insead of an integer value.
45 +
46 +The rankstr_mpi function does not output a communicator, but instead returns a unique integer for each unique string.
47 +
48 +For scalability, the implementation uses a distributed, bitonic sort via point-to-point messages over the input communicator to compare string values. The caller must provide two distinct tag values that are safe for the function to use for its point-to-point messages.
49 + </longdescription>
50 +</pkgmetadata>
51
52 diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild
53 new file mode 100644
54 index 0000000..ffe57a9
55 --- /dev/null
56 +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild
57 @@ -0,0 +1,38 @@
58 +# Copyright 1999-2020 Gentoo Authors
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI="7"
62 +
63 +inherit cmake-utils
64 +
65 +DESCRIPTION="Split an MPI communicator into subcomms based on string values"
66 +HOMEPAGE="https://github.com/ECP-VeloC/rankstr"
67 +SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
68 +
69 +LICENSE="MIT"
70 +SLOT="0"
71 +KEYWORDS="~amd64"
72 +IUSE="mpi test"
73 +RESTRICT="!test? ( test )"
74 +
75 +RDEPEND="
76 + mpi? ( virtual/mpi )
77 +"
78 +DEPEND="${RDEPEND}"
79 +BDEPEND="
80 + >=dev-util/cmake-2.8
81 +"
82 +
83 +src_prepare() {
84 + #do not build static library
85 + sed -i '/rankstr-static/d' src/CMakeLists.txt || die
86 + default
87 + cmake-utils_src_prepare
88 +}
89 +
90 +src_configure() {
91 + local mycmakeargs=(
92 + -DMPI="$(usex mpi "" OFF)"
93 + )
94 + cmake-utils_src_configure
95 +}