From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7987C138350 for ; Sun, 23 Feb 2020 03:52:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 56DCBE0934; Sun, 23 Feb 2020 03:52:51 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0976DE0934 for ; Sun, 23 Feb 2020 03:52:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CA71034EF71 for ; Sun, 23 Feb 2020 03:52:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 522A214A for ; Sun, 23 Feb 2020 03:52:47 +0000 (UTC) From: "Alessandro Barbieri" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alessandro Barbieri" Message-ID: <1582429814.1c174d1674167dc0bef763956d11268835b85859.Alessandro-Barbieri@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-cluster/rankstr/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-cluster/rankstr/Manifest sys-cluster/rankstr/metadata.xml sys-cluster/rankstr/rankstr-0.0.2.ebuild X-VCS-Directories: sys-cluster/rankstr/ X-VCS-Committer: Alessandro-Barbieri X-VCS-Committer-Name: Alessandro Barbieri X-VCS-Revision: 1c174d1674167dc0bef763956d11268835b85859 X-VCS-Branch: dev Date: Sun, 23 Feb 2020 03:52:47 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b3c8a713-62f4-4eca-88fa-868d66e0ca1b X-Archives-Hash: f834c95217c636791d724444fe6095ed commit: 1c174d1674167dc0bef763956d11268835b85859 Author: Alessandro Barbieri gmail com> AuthorDate: Sun Feb 23 03:50:14 2020 +0000 Commit: Alessandro Barbieri gmail com> CommitDate: Sun Feb 23 03:50:14 2020 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1c174d16 sys-cluster/rankstr: new package Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Alessandro Barbieri gmail.com> sys-cluster/rankstr/Manifest | 1 + sys-cluster/rankstr/metadata.xml | 19 ++++++++++++++++ sys-cluster/rankstr/rankstr-0.0.2.ebuild | 38 ++++++++++++++++++++++++++++++++ 3 files changed, 58 insertions(+) diff --git a/sys-cluster/rankstr/Manifest b/sys-cluster/rankstr/Manifest new file mode 100644 index 0000000..49b1c2e --- /dev/null +++ b/sys-cluster/rankstr/Manifest @@ -0,0 +1 @@ +DIST rankstr-0.0.2.tar.gz 10290 BLAKE2B 4efa609804bffd0fe9215e9b06112615ed85657af88bd15e1a51a5db7ccc8701bf162ea88096df69a42ecd062e3099e5c18986d72fd8c5cc14b89fd019b3322d SHA512 fd4814ec797566004c3141b46b4ca410e217857e2bee3dc3b0f350c2c10fcaff62e3608fb0233894a0960aade660f55a536ea7cc41c9aed3a355b3a05f432a0f diff --git a/sys-cluster/rankstr/metadata.xml b/sys-cluster/rankstr/metadata.xml new file mode 100644 index 0000000..d2422a7 --- /dev/null +++ b/sys-cluster/rankstr/metadata.xml @@ -0,0 +1,19 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + + ECP-VeloC/rankstr + + 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. + + diff --git a/sys-cluster/rankstr/rankstr-0.0.2.ebuild b/sys-cluster/rankstr/rankstr-0.0.2.ebuild new file mode 100644 index 0000000..ffe57a9 --- /dev/null +++ b/sys-cluster/rankstr/rankstr-0.0.2.ebuild @@ -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 +}