mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 13:33:32 -04:00
sys-cluster/rankstr: new package
Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
1
sys-cluster/rankstr/Manifest
Normal file
1
sys-cluster/rankstr/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST rankstr-0.0.2.tar.gz 10290 BLAKE2B 4efa609804bffd0fe9215e9b06112615ed85657af88bd15e1a51a5db7ccc8701bf162ea88096df69a42ecd062e3099e5c18986d72fd8c5cc14b89fd019b3322d SHA512 fd4814ec797566004c3141b46b4ca410e217857e2bee3dc3b0f350c2c10fcaff62e3608fb0233894a0960aade660f55a536ea7cc41c9aed3a355b3a05f432a0f
|
||||
19
sys-cluster/rankstr/metadata.xml
Normal file
19
sys-cluster/rankstr/metadata.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>lssndrbarbieri@gmail.com</email>
|
||||
<name>Alessandro Barbieri</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">ECP-VeloC/rankstr</remote-id>
|
||||
</upstream>
|
||||
<longdescription lang="en">The rankstr (rank string) library provides functions that identify unique strings across an MPI communicator.
|
||||
|
||||
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.
|
||||
|
||||
The rankstr_mpi function does not output a communicator, but instead returns a unique integer for each unique string.
|
||||
|
||||
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.
|
||||
</longdescription>
|
||||
</pkgmetadata>
|
||||
38
sys-cluster/rankstr/rankstr-0.0.2.ebuild
Normal file
38
sys-cluster/rankstr/rankstr-0.0.2.ebuild
Normal file
@@ -0,0 +1,38 @@
|
||||
# Copyright 1999-2020 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="7"
|
||||
|
||||
inherit cmake-utils
|
||||
|
||||
DESCRIPTION="Split an MPI communicator into subcomms based on string values"
|
||||
HOMEPAGE="https://github.com/ECP-VeloC/rankstr"
|
||||
SRC_URI="https://github.com/ECP-VeloC/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="mpi test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
mpi? ( virtual/mpi )
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="
|
||||
>=dev-util/cmake-2.8
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
#do not build static library
|
||||
sed -i '/rankstr-static/d' src/CMakeLists.txt || die
|
||||
default
|
||||
cmake-utils_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DMPI="$(usex mpi "" OFF)"
|
||||
)
|
||||
cmake-utils_src_configure
|
||||
}
|
||||
Reference in New Issue
Block a user