* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/sionlib/
@ 2021-07-27 19:57 Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2021-07-27 19:57 UTC (permalink / raw
To: gentoo-commits
commit: 52790b21744761c6bf53a906a900132c231e1f85
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 26 23:21:36 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jul 26 23:28:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=52790b21
sys-cluster/sionlib: add sionfwd use
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-cluster/sionlib/metadata.xml | 7 ++++++-
.../{sionlib-1.7.7-r1.ebuild => sionlib-1.7.7-r2.ebuild} | 14 ++++++++++----
2 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/sys-cluster/sionlib/metadata.xml b/sys-cluster/sionlib/metadata.xml
index 32002cf2d..0f8c4f1a8 100644
--- a/sys-cluster/sionlib/metadata.xml
+++ b/sys-cluster/sionlib/metadata.xml
@@ -18,17 +18,22 @@ Both, the estimated chunk size and file system block size are used to align indi
SIONlib provides two different interfaces: one for parallel access (with implementations for different parallel programming technologies such as MPI, OpenMP and hybrid MPI+OpenMP) and one for sequential access which is also used internally by the SIONlib utilities.
</longdescription>
+ <upstream>
+ <bugs-to>https://gitlab.jsc.fz-juelich.de/cstao-public/SIONlib/SIONlib/-/issues</bugs-to>
+ </upstream>
<use>
<!--<flag name="cuda">enable CUDA aware interface</flag>-->
<flag name="cxx">Enable C++ support</flag>
<flag name="debug">enable SIONlib debug</flag>
+ <flag name="deep-est-sdv">deep-est-sdv collector selection plug-in for MSA-aware collective I/O</flag>
<flag name="fortran">Enable Fortran support</flag>
+ <flag name="hostname-regex">hostname-regex collector selection plug-in for MSA-aware collective I/O</flag>
<flag name="mpi">enable mpi</flag>
<flag name="python">enable python support</flag>
<flag name="ompi">enable hybrid openmp mpi</flag>
<flag name="openmp">enable openmp</flag>
<flag name="parutils">Enable compilation of parutils (used for benchmarking)</flag>
<flag name="pthreads">configure SIONlib to use pthreads for locking</flag>
- <!--<flag name="sionfwd">enable I/O forwarding with SIONfwd</flag>-->
+ <flag name="sionfwd">enable I/O forwarding with <pkg>sys-cluster/SIONfwd</pkg></flag>
</use>
</pkgmetadata>
diff --git a/sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
similarity index 87%
rename from sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild
rename to sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
index cd15e7ad6..87062ea8a 100644
--- a/sys-cluster/sionlib/sionlib-1.7.7-r1.ebuild
+++ b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
@@ -18,11 +18,9 @@ S="${WORKDIR}/${PN}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+cxx debug doc examples +fortran +mpi +ompi +openmp +parutils +pthreads python"
-#TODO: cuda sionfwd msa
-#--enable-sionfwd=/path/to/sionfwd
-#--msa=(hostname-regex|deep-est-sdv)] MSA aware collective operations for the given system
+IUSE="+cxx debug deep-est-sdv doc examples +fortran hostname-regex +mpi +ompi +openmp +parutils +pthreads python sionfwd" #cuda
+REQUIRED_USE="?? ( hostname-regex deep-est-sdv )"
PATCHES=( "${FILESDIR}/${PN}-respect-flags.patch" )
RDEPEND="
@@ -32,6 +30,7 @@ RDEPEND="
virtual/mpi
)
openmp? ( || ( sys-devel/gcc:*[openmp] sys-libs/libomp ) )
+ sionfwd? ( sys-cluster/SIONfwd )
"
DEPEND="
${RDEPEND}
@@ -64,8 +63,14 @@ src_configure() {
append-fflags -fallow-argument-mismatch
+ local msa="none"
+ use deep-est-sdv && msa="deep-est-sdv"
+ use hostname-regex && msa="hostname-regex"
+
local myconf=(
+ --disable-ime
--disable-mic
+ --msa="${msa}"
--prefix="${T}/prefix/usr"
)
@@ -80,6 +85,7 @@ src_configure() {
use debug && myconf+=( "--enable-debug" )
use python && myconf+=( "--enable-python=3" )
+ use sionfwd && myconf+=( "--enable-sionfwd=${EPREFIX}/usr" )
./configure "${myconf[@]}" || die
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/sionlib/
@ 2022-06-10 14:08 Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2022-06-10 14:08 UTC (permalink / raw
To: gentoo-commits
commit: 58c97e9106f584db6d57c33cfc4d450fc72f3b47
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 9 22:47:12 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Jun 10 03:58:04 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=58c97e91
sys-cluster/sionlib: fix mpich detection
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-cluster/sionlib/sionlib-1.7.7-r4.ebuild | 38 +++++++++++++++++++++++------
1 file changed, 30 insertions(+), 8 deletions(-)
diff --git a/sys-cluster/sionlib/sionlib-1.7.7-r4.ebuild b/sys-cluster/sionlib/sionlib-1.7.7-r4.ebuild
index 06981810e..4e0eba149 100644
--- a/sys-cluster/sionlib/sionlib-1.7.7-r4.ebuild
+++ b/sys-cluster/sionlib/sionlib-1.7.7-r4.ebuild
@@ -8,7 +8,7 @@ DOCS_CONFIG_NAME="doxy"
FORTRAN_NEEDED="fortran"
PYTHON_COMPAT=( pypy3 python3_{8..11} )
-inherit docs flag-o-matic fortran-2 python-any-r1 toolchain-funcs
+inherit docs edo flag-o-matic fortran-2 python-any-r1 toolchain-funcs
DESCRIPTION="Scalable I/O library for parallel access to task-local files"
HOMEPAGE="https://www.fz-juelich.de/ias/jsc/EN/Expertise/Support/Software/SIONlib/_node.html"
@@ -22,10 +22,6 @@ IUSE="+cxx debug deep-est-sdv doc examples +fortran hostname-regex +mpi +ompi +o
RDEPEND="
mpi? ( virtual/mpi )
- ompi? (
- || ( sys-devel/gcc:*[openmp] sys-libs/libomp )
- virtual/mpi
- )
openmp? ( || ( sys-devel/gcc:*[openmp] sys-libs/libomp ) )
sionfwd? ( sys-cluster/SIONfwd )
"
@@ -34,7 +30,10 @@ DEPEND="
${PYTHON_DEPS}
"
-REQUIRED_USE="?? ( hostname-regex deep-est-sdv )"
+REQUIRED_USE="
+ ompi? ( mpi openmp )
+ ?? ( hostname-regex deep-est-sdv )
+"
PATCHES=(
"${FILESDIR}/${PN}-respect-flags-v3.patch"
"${FILESDIR}/${PN}-build-shared-libraries.patch"
@@ -43,7 +42,6 @@ PATCHES=(
pkg_setup() {
FORTRAN_NEED_OPENMP=0
use openmp && FORTRAN_NEED_OPENMP=1
- use ompi && FORTRAN_NEED_OPENMP=1
fortran-2_pkg_setup
}
@@ -77,7 +75,11 @@ src_configure() {
#custom configure?
use cxx || myconf+=( "--disable-cxx" )
use fortran || myconf+=( "--disable-fortran" )
- use mpi || myconf+=( "--disable-mpi" )
+ if use mpi; then
+ myconf+=( "--mpi=$(detect_mpi_implementation || die)" )
+ else
+ myconf+=( "--disable-mpi" )
+ fi
use ompi || myconf+=( "--disable-ompi" )
use openmp || myconf+=( "--disable-omp" )
use parutils || myconf+=( "--disable-parutils" )
@@ -126,3 +128,23 @@ src_install() {
find "${ED}" -name '*.la' -delete || die
}
+
+detect_mpi_implementation() {
+ cat > testmpi.c <<- EOF
+#include "mpi.h"
+#include "stdio.h"
+
+int main(){
+ #ifdef OPEN_MPI
+ printf("%s","openmpi");
+ #endif
+
+ #ifdef MPICH
+ printf("%s%i","mpich",MPICH_NAME);
+ #endif
+ return 0;
+}
+EOF
+ edo ${CC} testmpi.c -o testmpi
+ ./testmpi || die
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/sionlib/
@ 2021-07-27 19:57 Andrew Ammerlaan
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2021-07-27 19:57 UTC (permalink / raw
To: gentoo-commits
commit: ae80b56104835cc82b25a753d1013044d5c8a643
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 26 23:28:10 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jul 26 23:28:43 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ae80b561
sys-cluster/sionlib: remove broken --disable
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild | 1 -
1 file changed, 1 deletion(-)
diff --git a/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
index 87062ea8a..ba466e09b 100644
--- a/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
+++ b/sys-cluster/sionlib/sionlib-1.7.7-r2.ebuild
@@ -68,7 +68,6 @@ src_configure() {
use hostname-regex && msa="hostname-regex"
local myconf=(
- --disable-ime
--disable-mic
--msa="${msa}"
--prefix="${T}/prefix/usr"
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-06-10 14:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-27 19:57 [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/sionlib/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2022-06-10 14:08 Andrew Ammerlaan
2021-07-27 19:57 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox