[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/, profiles/updates/

2022-06-14 Thread Haelwenn Monnier
commit: 5f6d741beadf92d2546dc648ce48c7d4dc8abbde
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Jun 14 07:39:51 2022 +
Commit: Haelwenn Monnier  hacktivis  me>
CommitDate: Tue Jun 14 08:00:25 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5f6d741b

sys-cluster/extrae: move dyninst to dev-libs

Signed-off-by: Alessandro Barbieri  gmail.com>

 profiles/updates/2Q-2022   | 2 ++
 sys-cluster/extrae/extrae-4.0.1.ebuild | 2 +-
 sys-cluster/extrae/metadata.xml| 2 +-
 3 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/profiles/updates/2Q-2022 b/profiles/updates/2Q-2022
index d1e8a7af6..cdca86cd7 100644
--- a/profiles/updates/2Q-2022
+++ b/profiles/updates/2Q-2022
@@ -6,3 +6,5 @@ move net-misc/bee-node net-misc/bee
 move kde-misc/skanpage media-gfx/skanpage
 move sys-cluster/KVTree dev-libs/KVTree
 move sys-cluster/shuffile dev-libs/shuffile
+move sys-cluster/dyninst dev-libs/dyninst
+

diff --git a/sys-cluster/extrae/extrae-4.0.1.ebuild 
b/sys-cluster/extrae/extrae-4.0.1.ebuild
index 2bdfd8adc..83a8203a5 100644
--- a/sys-cluster/extrae/extrae-4.0.1.ebuild
+++ b/sys-cluster/extrae/extrae-4.0.1.ebuild
@@ -43,8 +43,8 @@ CDEPEND="
clustering? ( sys-cluster/clusteringsuite[treedbscan] )
dyninst? (
dev-libs/boost:=
+   dev-libs/dyninst
dev-libs/libdwarf
-   sys-cluster/dyninst
virtual/libelf
)
inotify? ( dev-libs/libevent )

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index 88f029630..799f19b89 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -22,7 +22,7 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu

Generates the documentation of this 
instrumentation package
Use dlsym instead of PMPI
-   Build with 
sys-cluster/dyninst
+   Build with 
dev-libs/dyninst
Enable support for heterogeneous 
tracing
Enable inotify support
Enable support for tracing Java. This is 
necessary to create the connectors between |TRACE| and Java applications.



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2022-06-03 Thread Florian Schmaus
commit: e1499a574732f641844ec73596f429991fffbfc4
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Thu Jun  2 15:54:04 2022 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Thu Jun  2 15:55:04 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e1499a57

sys-cluster/extrae: add 4.0.1

Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/Manifest|   1 +
 sys-cluster/extrae/extrae-4.0.1.ebuild | 234 +
 2 files changed, 235 insertions(+)

diff --git a/sys-cluster/extrae/Manifest b/sys-cluster/extrae/Manifest
index 17608e9bc..1f6352936 100644
--- a/sys-cluster/extrae/Manifest
+++ b/sys-cluster/extrae/Manifest
@@ -1 +1,2 @@
 DIST extrae-3.8.3.tar.gz 1056317 BLAKE2B 
9efe7011ba9474de66deb8c679f10eff37cc3d5699b42cb1b076ed43b539bbc15ecc613b3f17b03df9e93a219ebcafd3e1d56229db9c0d4e7a0a56d5c3edd591
 SHA512 
3fba66447790e0a1c71c0e5a61f67ad966cdd4e19742799ecc50124a916ef599fff747027ccc803584f0ab2d1d76c29ded7072a70dd0aed5a3be7ff6ecbb8709
+DIST extrae-4.0.1.tar.gz 1082141 BLAKE2B 
a049f744aa1d2f6770e620939c5d7981098e86908843f0b9d38d06a4aa9103ed2d551a34301dbf57857316340031d536a814d82a9ab0aab5ab70b063171ff52c
 SHA512 
58cbe06b1eb738dba3c9d38a96ca8a9bf442c492214e086876af25b8d7e01c379b46281f6815763e87e0e69214636f95486d48b1b6ce088b54d24b4d77ff0920

diff --git a/sys-cluster/extrae/extrae-4.0.1.ebuild 
b/sys-cluster/extrae/extrae-4.0.1.ebuild
new file mode 100644
index 0..8bcd5ef13
--- /dev/null
+++ b/sys-cluster/extrae/extrae-4.0.1.ebuild
@@ -0,0 +1,234 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( pypy3 python3_{8..11} )
+
+inherit autotools java-pkg-opt-2 python-single-r1
+
+DESCRIPTION="Instrumentation framework to generate execution traces of 
parallel runtimes"
+HOMEPAGE="https://github.com/bsc-performance-tools/extrae;
+SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE_INSTRUMENT="
+   +instrument_dynamic-memory
+   +instrument_io
+   +instrument_syscall
+"
+IUSE="${IUSE_INSTRUMENT} clustering dlsym doc dyninst heterogeneous inotify 
memkind
+merge-in-trace nanos online opencl openmp openshmem +parallel-merge 
pebs-sampling
+peruse +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral 
+xml"
+
+#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
+#TODO: cuda cupti gm mx gaspi aspectj
+#TODO: support llvm libunwind, llvm rt, elftoolchain
+
+#  aspectj? ( >=dev-java/aspectj-1.9.6 )
+CDEPEND="
+   ${PYTHON_DEPS}
+   dev-libs/libxml2
+   dev-libs/papi
+   !sys-cluster/openmpi[libompitrace(+)]
+   sys-libs/binutils-libs
+   sys-libs/libunwind
+   sys-libs/zlib
+   virtual/mpi
+
+   clustering? ( sys-cluster/clusteringsuite[treedbscan] )
+   dyninst? (
+   dev-libs/boost:=
+   dev-libs/libdwarf
+   sys-cluster/dyninst
+   virtual/libelf
+   )
+   inotify? ( dev-libs/libevent )
+   memkind? ( dev-libs/memkind )
+   online? ( sys-cluster/synapse )
+   opencl? ( dev-util/opencl-headers )
+   openshmem? ( sys-cluster/SOS )
+   peruse? ( sys-cluster/openmpi[peruse(-)] )
+   sionlib? ( sys-cluster/sionlib:= )
+   spectral? (
+   sci-libs/fftw
+   sys-cluster/spectral
+   )
+"
+DEPEND="
+   ${CDEPEND}
+   java? ( virtual/jdk:1.8 )
+"
+RDEPEND="
+   ${CDEPEND}
+   java? ( virtual/jre:1.8 )
+   virtual/opencl
+"
+BDEPEND="
+   sys-devel/binutils-config
+   doc? (
+   app-text/ghostscript-gpl
+   dev-python/sphinx
+   dev-tex/latexmk
+   dev-texlive/texlive-latexextra
+   )
+   java? ( app-admin/chrpath )
+"
+
+PATCHES=(
+   "${FILESDIR}/${PN}-3.8.3-link-sionlib.patch"
+)
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+
+   || ( ${IUSE_INSTRUMENT//+/} )
+
+   java? ( pthread )
+"
+#  aspectj? ( java )
+#  cupti? ( cuda )
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+src_configure() {
+   export VARTEXFONTS="${T}/fonts"
+
+   local myconf=(
+   --disable-mic
+   --disable-pmapi
+   --disable-static
+   --enable-shared
+   --without-cupti
+   --without-gm
+   --without-mx
+
+   --datadir="${T}"
+   --datarootdir="${T}"
+   --with-librt="${EPREFIX}/usr"
+   --with-mpi="${EPREFIX}/usr"
+   --with-papi="${EPREFIX}/usr"
+   --with-unwind="${EPREFIX}/usr"
+
+   $(use_enable doc)
+   $(use_enable heterogeneous)
+   $(use_enable inotify)
+   $(use_enable instrument_dynamic-memory)
+   $(use_enable instrument_io)
+

[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2022-06-03 Thread Florian Schmaus
commit: 51ded80176b55c0506b5151e556e959874da9a37
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Thu Jun  2 15:54:19 2022 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Thu Jun  2 15:55:04 2022 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=51ded801

sys-cluster/extrae: drop 3.8.3-r10

Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/Manifest|   1 -
 sys-cluster/extrae/extrae-3.8.3-r10.ebuild | 238 -
 2 files changed, 239 deletions(-)

diff --git a/sys-cluster/extrae/Manifest b/sys-cluster/extrae/Manifest
index 1f6352936..2e81d6e17 100644
--- a/sys-cluster/extrae/Manifest
+++ b/sys-cluster/extrae/Manifest
@@ -1,2 +1 @@
-DIST extrae-3.8.3.tar.gz 1056317 BLAKE2B 
9efe7011ba9474de66deb8c679f10eff37cc3d5699b42cb1b076ed43b539bbc15ecc613b3f17b03df9e93a219ebcafd3e1d56229db9c0d4e7a0a56d5c3edd591
 SHA512 
3fba66447790e0a1c71c0e5a61f67ad966cdd4e19742799ecc50124a916ef599fff747027ccc803584f0ab2d1d76c29ded7072a70dd0aed5a3be7ff6ecbb8709
 DIST extrae-4.0.1.tar.gz 1082141 BLAKE2B 
a049f744aa1d2f6770e620939c5d7981098e86908843f0b9d38d06a4aa9103ed2d551a34301dbf57857316340031d536a814d82a9ab0aab5ab70b063171ff52c
 SHA512 
58cbe06b1eb738dba3c9d38a96ca8a9bf442c492214e086876af25b8d7e01c379b46281f6815763e87e0e69214636f95486d48b1b6ce088b54d24b4d77ff0920

diff --git a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
deleted file mode 100644
index 20f867fe8..0
--- a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
+++ /dev/null
@@ -1,238 +0,0 @@
-# Copyright 2019-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( pypy3 python3_{8..10} )
-
-inherit autotools java-pkg-opt-2 python-single-r1
-
-DESCRIPTION="Instrumentation framework to generate execution traces of 
parallel runtimes"
-HOMEPAGE="https://github.com/bsc-performance-tools/extrae;
-SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64"
-
-IUSE_INSTRUMENT="
-   +instrument_dynamic-memory
-   +instrument_io
-   +instrument_syscall
-"
-IUSE="${IUSE_INSTRUMENT} clustering dlsym doc dyninst heterogeneous inotify 
memkind
-merge-in-trace nanos online opencl openmp openshmem +parallel-merge 
pebs-sampling
-peruse +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral 
+xml"
-
-#aspectj and aspectj-weaver need to both be enabled at the same time
-#current dev-java/aspectj package only provides aspectj.jar
-#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
-#aspectj-weaver needs bar/aspectjweaver.jar
-#TODO: cuda cupti gm mx
-#TODO: support llvm libunwind, llvm rt, elftoolchain
-
-CDEPEND="
-   ${PYTHON_DEPS}
-   dev-libs/libxml2
-   dev-libs/papi
-   !sys-cluster/openmpi[libompitrace(+)]
-   sys-libs/libunwind
-   sys-libs/zlib
-   virtual/mpi
-
-   || ( sys-devel/binutils:* sys-libs/binutils-libs )
-
-   clustering? ( sys-cluster/clusteringsuite[treedbscan] )
-   dyninst? (
-   dev-libs/boost:=
-   dev-libs/libdwarf
-   sys-cluster/dyninst
-   virtual/libelf
-   )
-   inotify? ( dev-libs/libevent )
-   memkind? ( dev-libs/memkind )
-   online? ( sys-cluster/synapse )
-   opencl? ( dev-util/opencl-headers )
-   openshmem? ( sys-cluster/SOS )
-   peruse? ( sys-cluster/openmpi[peruse(-)] )
-   sionlib? ( sys-cluster/sionlib:= )
-   spectral? (
-   sci-libs/fftw
-   sys-cluster/spectral
-   )
-"
-#  aspectj? ( >=dev-java/aspectj-1.9.6 )
-DEPEND="
-   ${CDEPEND}
-   java? ( virtual/jdk:1.8 )
-"
-RDEPEND="
-   ${CDEPEND}
-   java? ( virtual/jre:1.8 )
-   virtual/opencl
-"
-BDEPEND="
-   doc? (
-   app-text/ghostscript-gpl
-   dev-python/sphinx
-   dev-tex/latexmk
-   dev-texlive/texlive-latexextra
-   )
-   java? ( app-admin/chrpath )
-"
-
-PATCHES=( "${FILESDIR}/${P}-link-sionlib.patch" )
-REQUIRED_USE="
-   ${PYTHON_REQUIRED_USE}
-
-   || ( ${IUSE_INSTRUMENT//+/} )
-
-   java? ( pthread )
-"
-#  cupti? ( cuda )
-#  aspectj? ( java )
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-src_configure() {
-   export VARTEXFONTS="${T}/fonts"
-
-   local myconf=(
-   --datadir="${T}"
-   --datarootdir="${T}"
-
-   --disable-mic
-   --disable-pmapi
-   --disable-static
-
-   --enable-shared
-
-   --with-librt="${EPREFIX}/usr"
-   --with-mpi="${EPREFIX}/usr"
-   --with-papi="${EPREFIX}/usr"
-   --with-unwind="${EPREFIX}/usr"
-
-   --without-cupti
-   --without-gm
-   --without-mx
-
-   $(use_enable doc)
-   

[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/files/, sys-cluster/extrae/

2021-11-08 Thread Andrew Ammerlaan
commit: 86fb06a2c84ac671e946502cd5c60410271573c9
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sun Nov  7 21:36:53 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Sun Nov  7 21:43:11 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=86fb06a2

sys-cluster/extrae: link sionlib, fix rpath

Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r10.ebuild |  7 +++
 .../extrae/files/extrae-3.8.3-link-sionlib.patch   | 23 ++
 2 files changed, 30 insertions(+)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
index 800ba5c57..de4da9133 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
@@ -78,8 +78,10 @@ BDEPEND="
dev-tex/latexmk
dev-texlive/texlive-latexextra
)
+   java? ( app-admin/chrpath )
 "
 
+PATCHES=( "${FILESDIR}/${P}-link-sionlib.patch" )
 REQUIRED_USE="
${PYTHON_REQUIRED_USE}
 
@@ -226,6 +228,11 @@ src_install() {
docompress -x "/usr/share/doc/${PF}/examples"
docompress -x "/usr/share/doc/${PF}/tests"
 
+   if use java; then
+   chrpath -d "${ED}/usr/$(get_libdir)/libextrae-jvmti-agent.so" 
|| die
+   chrpath -d "${ED}/usr/$(get_libdir)/libjavatrace.so" || die
+   fi
+
find "${ED}" -name '*.a' -delete || die
find "${ED}" -name '*.la' -delete || die
 }

diff --git a/sys-cluster/extrae/files/extrae-3.8.3-link-sionlib.patch 
b/sys-cluster/extrae/files/extrae-3.8.3-link-sionlib.patch
new file mode 100644
index 0..209da88d1
--- /dev/null
+++ b/sys-cluster/extrae/files/extrae-3.8.3-link-sionlib.patch
@@ -0,0 +1,23 @@
+--- a/src/tracer/Makefile.am
 b/src/tracer/Makefile.am
+@@ -631,6 +631,10 @@
+ NEW_MPI_LIBS = -L@MPI_LIBSDIR@ @MPI_LIBS@ -static
+ endif
+ 
++if HAVE_SIONLIB
++SIONLIB_LINKER_FLAGS = @SIONLIB_LIBS@
++endif
++
+ COMMON_LINKER_FLAGS = \
+  -release $(PACKAGE_VERSION) \
+  $(HWC_LINKER_FLAGS) \
+@@ -639,7 +643,8 @@
+  $(XML2_LINKER_FLAGS) \
+  $(LDL)\
+  $(LIBZ_LINKER_FLAGS) \
+- $(MRNET_LINKER_FLAGS)
++ $(MRNET_LINKER_FLAGS) \
++ $(SIONLIB_LINKER_FLAGS)
+ 
+ libcudaompitrace_la_LDFLAGS = $(COMMON_LINKER_FLAGS)
+ libcudaompitracef_la_LDFLAGS = $(COMMON_LINKER_FLAGS)



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-08-20 Thread Florian Schmaus
commit: 02310e94552ae41bdebc6886d969232f23c7c0d2
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Fri Aug 20 01:23:33 2021 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Fri Aug 20 01:23:33 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=02310e94

sys-cluster/extrae: rework of instrumentation use, add peruse

Signed-off-by: Alessandro Barbieri  gmail.com>

 ...rae-3.8.3-r9.ebuild => extrae-3.8.3-r10.ebuild} | 35 ++
 sys-cluster/extrae/metadata.xml|  9 +++---
 2 files changed, 27 insertions(+), 17 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r9.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
similarity index 89%
rename from sys-cluster/extrae/extrae-3.8.3-r9.ebuild
rename to sys-cluster/extrae/extrae-3.8.3-r10.ebuild
index c52ea919c..e37da75a2 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r9.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r10.ebuild
@@ -14,28 +14,33 @@ 
SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz ->
 LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
-IUSE="clustering doc dyninst heterogeneous inotify +instrument-dynamic-memory 
+instrument-io
-+instrument-syscall memkind merge-in-trace nanos online opencl openmp openshmem
-+parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
sionlib smpss
-spectral +xml"
+
+IUSE_INSTRUMENT="
+   +instrument-dynamic-memory
+   +instrument-io
+   +instrument-syscall
+"
+IUSE_EXPAND="INSTRUMENT"
+IUSE="${IUSE_INSTRUMENT} clustering dlsym doc dyninst heterogeneous inotify 
memkind
+merge-in-trace nanos online opencl openmp openshmem +parallel-merge 
pebs-sampling
+peruse +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral 
+xml"
 
 #aspectj and aspectj-weaver need to both be enabled at the same time
 #current dev-java/aspectj package only provides aspectj.jar
 #aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
 #aspectj-weaver needs bar/aspectjweaver.jar
-#TODO: pmapi cuda cupti gm mx aspectj
+#TODO: cuda cupti gm mx
 #TODO: support llvm libunwind, llvm rt, elftoolchain
 
 CDEPEND="
${PYTHON_DEPS}
dev-libs/libxml2
dev-libs/papi
-   !=sys-cluster/openmpi-4.0.5-r1[libompitrace]
+   !sys-cluster/openmpi[libompitrace(+)]
+   sys-libs/libunwind
sys-libs/zlib
virtual/mpi
 
-   || ( sys-libs/libunwind sys-libs/llvm-libunwind )
|| ( sys-devel/binutils:* sys-libs/binutils-libs )
 
clustering? ( sys-cluster/clusteringsuite[treedbscan] )
@@ -50,6 +55,7 @@ CDEPEND="
online? ( sys-cluster/synapse )
opencl? ( dev-util/opencl-headers )
openshmem? ( sys-cluster/SOS )
+   peruse? ( sys-cluster/openmpi[peruse(-)] )
sionlib? ( sys-cluster/sionlib:= )
spectral? (
sci-libs/fftw
@@ -74,8 +80,12 @@ BDEPEND="
dev-texlive/texlive-latexextra
)
 "
+
 REQUIRED_USE="
${PYTHON_REQUIRED_USE}
+
+   || ( ${IUSE_INSTRUMENT//+/} )
+
java? ( pthread )
 "
 #  cupti? ( cuda )
@@ -94,8 +104,6 @@ src_configure() {
--datarootdir="${T}"
 
--disable-mic
-   --disable-online
-   --disable-peruse
--disable-pmapi
--disable-static
 
@@ -104,7 +112,6 @@ src_configure() {
--with-librt="${EPREFIX}/usr"
--with-mpi="${EPREFIX}/usr"
--with-papi="${EPREFIX}/usr"
-   --with-pic
--with-unwind="${EPREFIX}/usr"
 
--without-cupti
@@ -121,16 +128,18 @@ src_configure() {
$(use_enable nanos)
$(use_enable online)
$(use_enable openmp)
-   $(use_enable sampling)
$(use_enable parallel-merge)
$(use_enable pebs-sampling)
+   $(use_enable peruse)
$(use_enable posix-clock)
$(use_enable pthread)
+   $(use_enable sampling)
$(use_enable single-mpi-lib)
$(use_enable smpss)
$(use_enable xml)
)
-#--with-pmpi-hook (Choose method to call PMPI (dlsym or pmpi))
+
+   use dlsym && myconf+=( "--with-pmpi-hook=dlsym" )
 
 #  if use aspectj; then
 #  myconf+=( 
"--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index ba115eca5..9e8da6d6f 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -21,7 +21,8 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu


Generates the documentation of this 
instrumentation package
-   Build with dyninst
+   Use dlsym instead of PMPI
+   Build with 
sys-cluster/dyninst
Enable support for 

[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-08-07 Thread Florian Schmaus
commit: 80ce0488664df5fb8050d222637f3907b97da61d
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Fri Aug  6 00:13:32 2021 +
Commit: Florian Schmaus  gentoo  org>
CommitDate: Fri Aug  6 00:16:44 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=80ce0488

sys-cluster/extrae: add openshmem useflag

Signed-off-by: Alessandro Barbieri  gmail.com>

 .../{extrae-3.8.3-r8.ebuild => extrae-3.8.3-r9.ebuild} | 14 ++
 sys-cluster/extrae/metadata.xml|  1 +
 2 files changed, 11 insertions(+), 4 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r8.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r9.ebuild
similarity index 94%
rename from sys-cluster/extrae/extrae-3.8.3-r8.ebuild
rename to sys-cluster/extrae/extrae-3.8.3-r9.ebuild
index 5f1a1ef45..c52ea919c 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r9.ebuild
@@ -15,14 +15,15 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="clustering doc dyninst heterogeneous inotify +instrument-dynamic-memory 
+instrument-io
-+instrument-syscall memkind merge-in-trace nanos online opencl openmp 
+parallel-merge
-pebs-sampling +posix-clock pthread sampling +single-mpi-lib sionlib smpss 
spectral +xml"
++instrument-syscall memkind merge-in-trace nanos online opencl openmp openshmem
++parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
sionlib smpss
+spectral +xml"
 
 #aspectj and aspectj-weaver need to both be enabled at the same time
 #current dev-java/aspectj package only provides aspectj.jar
 #aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
 #aspectj-weaver needs bar/aspectjweaver.jar
-#TODO: pmapi cuda cupti openshmem gm mx aspectj
+#TODO: pmapi cuda cupti gm mx aspectj
 #TODO: support llvm libunwind, llvm rt, elftoolchain
 
 CDEPEND="
@@ -48,6 +49,7 @@ CDEPEND="
memkind? ( dev-libs/memkind )
online? ( sys-cluster/synapse )
opencl? ( dev-util/opencl-headers )
+   openshmem? ( sys-cluster/SOS )
sionlib? ( sys-cluster/sionlib:= )
spectral? (
sci-libs/fftw
@@ -106,7 +108,6 @@ src_configure() {
--with-unwind="${EPREFIX}/usr"
 
--without-cupti
-   --without-openshmem
--without-gm
--without-mx
 
@@ -175,6 +176,11 @@ src_configure() {
else
myconf+=( "--without-opencl" )
fi
+   if use openshmem; then
+   myconf+=( "--with-openshmem=${EPREFIX}/usr" )
+   else
+   myconf+=( "--without-openshmem" )
+   fi
if use sionlib; then
myconf+=( "--with-sionlib=${EPREFIX}/usr" )
myconf+=( 
"--with-sionlib-headers=${EPREFIX}/usr/include/sionlib" )

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index fc023d8fb..ba115eca5 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -34,6 +34,7 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu
Enable on-line analysis
Enable support for tracing OpenCL
Enable support for tracing OpenMP
+   OpenSHMEM to be used for the 
instrumentation package
Build the parallel mergers 
(mpimpi2prv/mpimpi2dim) based on MPI
enable PEBS sampling




[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-07-27 Thread Andrew Ammerlaan
commit: d48c771aca29f31b5bd083082ad9455d738e378f
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Jul 26 16:05:34 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Jul 26 16:06:19 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d48c771a

sys-cluster/extrae: add online useflag

Signed-off-by: Alessandro Barbieri  gmail.com>

 .../{extrae-3.8.3-r6.ebuild => extrae-3.8.3-r7.ebuild}  | 17 +++--
 sys-cluster/extrae/metadata.xml |  2 +-
 2 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r6.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r7.ebuild
similarity index 93%
rename from sys-cluster/extrae/extrae-3.8.3-r6.ebuild
rename to sys-cluster/extrae/extrae-3.8.3-r7.ebuild
index 4baf807be..50f2ccc32 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r6.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r7.ebuild
@@ -15,15 +15,16 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="boost clustering doc dwarf elf heterogeneous inotify 
+instrument-dynamic-memory
-+instrument-io +instrument-syscall memkind merge-in-trace nanos opencl openmp 
+parallel-merge
-pebs-sampling +posix-clock pthread sampling +single-mpi-lib sionlib smpss 
spectral +xml"
++instrument-io +instrument-syscall memkind merge-in-trace nanos online opencl 
openmp
++parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
sionlib smpss
+spectral +xml"
 
 #aspectj and aspectj-weaver need to both be enabled at the same time
 #current dev-java/aspectj package only provides aspectj.jar
 #aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
 #aspectj-weaver needs bar/aspectjweaver.jar
 #TODO: remove some useflags (boost elf dwarf)
-#TODO: pmapi online dyninst cuda cupti openshmem gm mx synapse aspectj
+#TODO: pmapi online dyninst cuda cupti openshmem gm mx aspectj
 #TODO: support llvm libunwind, llvm rt, elftoolchain
 
 CDEPEND="
@@ -44,8 +45,9 @@ CDEPEND="
elf? ( virtual/libelf )
inotify? ( dev-libs/libevent )
memkind? ( dev-libs/memkind )
+   online? ( sys-cluster/synapse )
opencl? ( dev-util/opencl-headers )
-   sionlib? ( sys-cluster/sionlib:= )
+   sionlib? ( sys-cluster/sionlib:=[-tools] )
spectral? (
sci-libs/fftw
sys-cluster/spectral
@@ -75,7 +77,6 @@ REQUIRED_USE="
 "
 #  cupti? ( cuda )
 #  dyninst? ( boost dwarf elf )
-#  online? ( synapse )
 #  aspectj? ( java )
 
 src_prepare() {
@@ -106,7 +107,6 @@ src_configure() {
 
--without-dyninst
--without-cupti
-   --without-synapse
--without-openshmem
--without-gm
--without-mx
@@ -168,6 +168,11 @@ src_configure() {
else
myconf+=( "--without-memkind" )
fi
+   if use online; then
+   myconf+=( "--with-synapse=${EPREFIX}/usr" )
+   else
+   myconf+=( "--without-synapse" )
+   fi
if use opencl; then
myconf+=( "--with-opencl=${EPREFIX}/usr" )
else

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index 4a9abda54..3db14b4bc 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -34,7 +34,7 @@ process). Extrae generates trace files that can be later 
visualized with sys-clu
Enable dev-libs/memkind 
support
Embed the merging process in the 
tracing library so the final tracefile can be generated automatically from the 
application run
Enable support for tracing 
sys-cluster/nanos6 run-time
-   
+   Enable on-line analysis
Enable support for tracing OpenCL
Enable support for tracing OpenMP
Build the parallel mergers 
(mpimpi2prv/mpimpi2dim) based on MPI



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-07-27 Thread Andrew Ammerlaan
commit: d731e99abfe60e51606dc5cf67193740fa659499
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Jul 26 22:25:37 2021 +
Commit: Andrew Ammerlaan  gentoo  org>
CommitDate: Mon Jul 26 23:28:42 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d731e99a

sys-cluster/extrae: fix sionlib detection

Signed-off-by: Alessandro Barbieri  gmail.com>

 .../extrae/{extrae-3.8.3-r7.ebuild => extrae-3.8.3-r8.ebuild} | 8 +---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r7.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
similarity index 96%
rename from sys-cluster/extrae/extrae-3.8.3-r7.ebuild
rename to sys-cluster/extrae/extrae-3.8.3-r8.ebuild
index 50f2ccc32..49144b4b8 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r7.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r8.ebuild
@@ -47,7 +47,7 @@ CDEPEND="
memkind? ( dev-libs/memkind )
online? ( sys-cluster/synapse )
opencl? ( dev-util/opencl-headers )
-   sionlib? ( sys-cluster/sionlib:=[-tools] )
+   sionlib? ( sys-cluster/sionlib:= )
spectral? (
sci-libs/fftw
sys-cluster/spectral
@@ -178,6 +178,10 @@ src_configure() {
else
myconf+=( "--without-opencl" )
fi
+   if use sionlib; then
+   myconf+=( "--with-sionlib=${EPREFIX}/usr" )
+   myconf+=( 
"--with-sionlib-headers=${EPREFIX}/usr/include/sionlib" )
+   fi
if use spectral; then
myconf+=( "--with-fft=${EPREFIX}/usr" )
myconf+=( "--with-spectral=${EPREFIX}/usr" )
@@ -186,8 +190,6 @@ src_configure() {
myconf+=( "--without-spectral" )
fi
 
-   use sionlib && myconf+=( "--with-sionlib=${EPREFIX}/usr" )
-
econf "${myconf[@]}"
 }
 



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-27 Thread Theo Anderson
commit: bc42c1e25088351276554a3abfea77035895f6b6
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Apr 26 23:29:16 2021 +
Commit: Theo Anderson  posteo  de>
CommitDate: Mon Apr 26 23:29:16 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=bc42c1e2

sys-cluster/extrae: finally the last dep

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r1.ebuild | 1 +
 sys-cluster/extrae/extrae-3.8.3-r2.ebuild | 1 +
 sys-cluster/extrae/extrae-3.8.3-r3.ebuild | 1 +
 3 files changed, 3 insertions(+)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
index 4d683f4b6..f353ab149 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
@@ -57,6 +57,7 @@ RDEPEND="
 "
 BDEPEND="
doc? (
+   app-text/ghostscript-gpl
dev-python/sphinx
dev-tex/latexmk
dev-texlive/texlive-latexextra

diff --git a/sys-cluster/extrae/extrae-3.8.3-r2.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
index bf78ee096..fc4335eb8 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
@@ -58,6 +58,7 @@ RDEPEND="
 "
 BDEPEND="
doc? (
+   app-text/ghostscript-gpl
dev-python/sphinx
dev-tex/latexmk
dev-texlive/texlive-latexextra

diff --git a/sys-cluster/extrae/extrae-3.8.3-r3.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
index d7e945c26..69d96736a 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
@@ -59,6 +59,7 @@ RDEPEND="
 "
 BDEPEND="
doc? (
+   app-text/ghostscript-gpl
dev-python/sphinx
dev-tex/latexmk
dev-texlive/texlive-latexextra



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-27 Thread Theo Anderson
commit: c0ad8c4ee84b6d70578ac0a13c2e4f84e2c0ea69
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Apr 27 05:54:53 2021 +
Commit: Theo Anderson  posteo  de>
CommitDate: Tue Apr 27 05:54:53 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c0ad8c4e

sys-cluster/extrae: relax dependencies

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r1.ebuild | 3 +--
 sys-cluster/extrae/extrae-3.8.3-r2.ebuild | 3 +--
 sys-cluster/extrae/extrae-3.8.3-r3.ebuild | 3 +--
 3 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
index f353ab149..83906e3ff 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
@@ -29,14 +29,13 @@ CDEPEND="
app-arch/xz-utils
dev-libs/icu
dev-libs/libpfm
-   sys-libs/libunwind
dev-libs/libxml2
dev-libs/papi
sys-apps/hwloc
-   sys-libs/glibc
sys-libs/zlib
virtual/mpi
 
+   || ( sys-libs/libunwind sys-libs/llvm-libunwind )
|| ( sys-devel/binutils:* sys-libs/binutils-libs )
 
boost? ( dev-libs/boost:= )

diff --git a/sys-cluster/extrae/extrae-3.8.3-r2.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
index fc4335eb8..da5d5f590 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r2.ebuild
@@ -29,14 +29,13 @@ CDEPEND="
app-arch/xz-utils
dev-libs/icu
dev-libs/libpfm
-   sys-libs/libunwind
dev-libs/libxml2
dev-libs/papi
sys-apps/hwloc
-   sys-libs/glibc
sys-libs/zlib
virtual/mpi
 
+   || ( sys-libs/libunwind sys-libs/llvm-libunwind )
|| ( sys-devel/binutils:* sys-libs/binutils-libs )
 
boost? ( dev-libs/boost:= )

diff --git a/sys-cluster/extrae/extrae-3.8.3-r3.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
index 69d96736a..43c112809 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r3.ebuild
@@ -29,14 +29,13 @@ CDEPEND="
app-arch/xz-utils
dev-libs/icu
dev-libs/libpfm
-   sys-libs/libunwind
dev-libs/libxml2
dev-libs/papi
sys-apps/hwloc
-   sys-libs/glibc
sys-libs/zlib
virtual/mpi
 
+   || ( sys-libs/libunwind sys-libs/llvm-libunwind )
|| ( sys-devel/binutils:* sys-libs/binutils-libs )
 
boost? ( dev-libs/boost:= )



[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-24 Thread Theo Anderson
commit: 2c039b70f0366f338ad65a434f402e7d32972d77
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Sat Apr 24 18:45:57 2021 +
Commit: Theo Anderson  posteo  de>
CommitDate: Sat Apr 24 18:51:42 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2c039b70

sys-cluster/extrae: preparation for aspectj support

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r1.ebuild | 16 +---
 sys-cluster/extrae/metadata.xml   |  1 +
 2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
index d0518e68f..f1781b099 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
@@ -14,7 +14,10 @@ LICENSE="LGPL-2.1"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory 
+instrument-io +instrument-syscall merge-in-trace nanos opencl openmp 
+parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
smpss +xml"
-#aspectj and aspectj-weaver needs to be enabled both at the same time but the 
aspectj package in gentoo doesn't have weaver
+#aspectj and aspectj-weaver need to both be enabled at the same time
+#current dev-java/aspectj package only provides aspectj.jar
+#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc
+#aspectj-weaver needs bar/aspectjweaver.jar
 #TODO: find out who is pulling in libpfm
 #TODO: find out which FFT library is used
 #TODO: remove some useflags (boost fft elf dwarf)
@@ -42,6 +45,7 @@ CDEPEND="
inotify? ( dev-libs/libevent )
opencl? ( dev-util/opencl-headers )
 "
+#  aspectj? ( >=dev-java/aspectj-1.9.6 )
 DEPEND="
${CDEPEND}
java? ( virtual/jdk:1.8 )
@@ -56,6 +60,7 @@ BDEPEND="
 "
 REQUIRED_USE="
${PYTHON_REQUIRED_USE}
+   java? ( pthread )
 "
 #  cupti? ( cuda )
 #  dyninst? ( boost dwarf elf )
@@ -92,8 +97,6 @@ src_configure() {
--without-cupti
--without-memkind
--without-clustering
-   --without-java-aspectj
-   --without-java-aspectj-weaver
--without-synapse
--without-spectral
--without-openshmem
@@ -121,6 +124,13 @@ src_configure() {
 #  --without-sionlib
 #--with-pmpi-hook  
   (Choose 
method to call PMPI (dlsym or pmpi))
 
+#  if use aspectj; then
+#  myconf+=( 
"--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )
+#  myconf+=( "--with-java-aspectj-weaver=${EPREFIX}/usr" )
+#  else
+   myconf+=( "--without-java-aspectj-weaver" )
+   myconf+=( "--without-java-aspectj" )
+#  fi
if use boost; then
myconf+=( "--with-boost=${EPREFIX}/usr" )
else

diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index fb390763b..6022df6bb 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -16,6 +16,7 @@ process). Extrae generates trace files that can be later 
visualized with sy
bsc-performance-tools/extrae


+   
Search for boost
Generates the documentation of this 
instrumentation package




[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-21 Thread Andrew Ammerlaan
commit: 9a8335750d5b97c8963cd8799499c469605734d3
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Tue Apr 20 23:48:40 2021 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Wed Apr 21 01:17:11 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=9a833575

sys-cluster/extrae: add nanos support

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r1.ebuild | 176 ++
 sys-cluster/extrae/metadata.xml   |   2 +-
 2 files changed, 177 insertions(+), 1 deletion(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
new file mode 100644
index 0..4affa0895
--- /dev/null
+++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
@@ -0,0 +1,176 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
+inherit autotools java-pkg-opt-2 python-single-r1
+
+DESCRIPTION="Instrumentation framework to generate execution traces of 
parallel runtimes"
+HOMEPAGE="https://github.com/bsc-performance-tools/extrae;
+SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory 
+instrument-io +instrument-syscall merge-in-trace nanos opencl openmp 
+parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
smpss +xml"
+#aspectj and aspectj-weaver needs to be enabled both at the same time but the 
aspectj package in gentoo doesn't have weaver
+#TODO: find out which FFT library is used
+#TODO: remove some useflags (boost fft elf dwarf)
+#TODO: pmapi online dyninst cuda spectral cupti openshmem gm mx synapse 
memkind sionlib aspectj
+#TODO: support llvm libunwind, llvm rt, elftoolchain
+
+CDEPEND="
+   ${PYTHON_DEPS}
+   dev-libs/icu
+   sys-libs/libunwind
+   dev-libs/libxml2
+   dev-libs/papi
+   sys-apps/hwloc
+   sys-libs/glibc
+   sys-libs/zlib
+   virtual/mpi
+
+   || ( sys-devel/binutils:* sys-libs/binutils-libs )
+
+   boost? ( dev-libs/boost:= )
+   dwarf? ( dev-libs/libdwarf )
+   elf? ( virtual/libelf )
+   nanos? ( sys-cluster/nanos6 )
+   opencl? ( dev-util/opencl-headers )
+"
+DEPEND="
+   ${CDEPEND}
+   java? ( virtual/jdk:1.8 )
+"
+RDEPEND="
+   ${CDEPEND}
+   java? ( virtual/jre:1.8 )
+   virtual/opencl
+"
+BDEPEND="
+   doc? ( dev-python/sphinx )
+"
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+#  cupti? ( cuda )
+#  dyninst? ( boost dwarf elf )
+#  online? ( synapse )
+#  aspectj? ( java )
+#  spectral? ( fft )
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+src_configure() {
+   local myconf=(
+   --datadir="${T}"
+   --datarootdir="${T}"
+   --libdir="${EPREFIX}/usr/$(get_libdir)/extrae/lib"
+
+   --disable-mic
+   --disable-online
+   --disable-peruse
+   --disable-pmapi
+   --disable-static
+
+   --enable-shared
+
+   --with-librt="${EPREFIX}/usr"
+   --with-mpi="${EPREFIX}/usr"
+   --with-papi="${EPREFIX}/usr"
+   --with-pic
+   --with-unwind="${EPREFIX}/usr"
+
+   --without-dyninst
+   --without-cupti
+   --without-memkind
+   --without-clustering
+   --without-java-aspectj
+   --without-java-aspectj-weaver
+   --without-synapse
+   --without-spectral
+   --without-openshmem
+   --without-gm
+   --without-mx
+
+   $(use_enable doc)
+   $(use_enable heterogeneous)
+   $(use_enable inotify)
+   $(use_enable instrument-dynamic-memory)
+   $(use_enable instrument-io)
+   $(use_enable instrument-syscall)
+   $(use_enable merge-in-trace)
+   $(use_enable nanos)
+   $(use_enable openmp)
+   $(use_enable sampling)
+   $(use_enable parallel-merge)
+   $(use_enable pebs-sampling)
+   $(use_enable posix-clock)
+   $(use_enable pthread)
+   $(use_enable single-mpi-lib)
+   $(use_enable smpss)
+   $(use_enable xml)
+   )
+#  --without-sionlib
+#--with-pmpi-hook  
   (Choose 
method to call PMPI (dlsym or pmpi))
+
+   if use boost; then
+   myconf+=( "--with-boost=${EPREFIX}/usr" )
+   else
+   myconf+=( "--without-boost" )
+   fi
+   if use 

[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-21 Thread Andrew Ammerlaan
commit: aeadb10ff9c2c671b48c60f33b2f4c73d95aa5ba
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Wed Apr 21 00:17:10 2021 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Wed Apr 21 01:17:11 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=aeadb10f

sys-cluster/extrae: fix dependencies

Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/extrae-3.8.3-r1.ebuild |   5 +-
 sys-cluster/extrae/extrae-3.8.3.ebuild| 175 --
 2 files changed, 4 insertions(+), 176 deletions(-)

diff --git a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild 
b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
index 4affa0895..d0518e68f 100644
--- a/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3-r1.ebuild
@@ -15,6 +15,7 @@ SLOT="0"
 KEYWORDS="~amd64"
 IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory 
+instrument-io +instrument-syscall merge-in-trace nanos opencl openmp 
+parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib 
smpss +xml"
 #aspectj and aspectj-weaver needs to be enabled both at the same time but the 
aspectj package in gentoo doesn't have weaver
+#TODO: find out who is pulling in libpfm
 #TODO: find out which FFT library is used
 #TODO: remove some useflags (boost fft elf dwarf)
 #TODO: pmapi online dyninst cuda spectral cupti openshmem gm mx synapse 
memkind sionlib aspectj
@@ -22,7 +23,9 @@ IUSE="boost doc dwarf elf fft heterogeneous inotify 
+instrument-dynamic-memory +
 
 CDEPEND="
${PYTHON_DEPS}
+   app-arch/xz-utils
dev-libs/icu
+   dev-libs/libpfm
sys-libs/libunwind
dev-libs/libxml2
dev-libs/papi
@@ -36,7 +39,7 @@ CDEPEND="
boost? ( dev-libs/boost:= )
dwarf? ( dev-libs/libdwarf )
elf? ( virtual/libelf )
-   nanos? ( sys-cluster/nanos6 )
+   inotify? ( dev-libs/libevent )
opencl? ( dev-util/opencl-headers )
 "
 DEPEND="

diff --git a/sys-cluster/extrae/extrae-3.8.3.ebuild 
b/sys-cluster/extrae/extrae-3.8.3.ebuild
deleted file mode 100644
index 59b3c2edb..0
--- a/sys-cluster/extrae/extrae-3.8.3.ebuild
+++ /dev/null
@@ -1,175 +0,0 @@
-# Copyright 2019-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
-inherit autotools java-pkg-opt-2 python-single-r1
-
-DESCRIPTION="Instrumentation framework to generate execution traces of 
parallel runtimes"
-HOMEPAGE="https://github.com/bsc-performance-tools/extrae;
-SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="~amd64"
-#TODO: correctly install python stuff
-IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory 
+instrument-io +instrument-syscall merge-in-trace opencl openmp +parallel-merge 
pebs-sampling +posix-clock pthread sampling +single-mpi-lib smpss +xml"
-#aspectj and aspectj-weaver needs to be enabled both at the same time but the 
aspectj package in gentoo doesn't have weaver
-#TODO: find out which FFT library is used
-#TODO: remove some useflags (boost fft elf dwarf)
-#TODO: nanos pmapi online dyninst cuda spectral cupti openshmem gm mx synapse 
memkind sionlib aspectj
-#TODO: support llvm libunwind, llvm rt, elftoolchain
-
-CDEPEND="
-   ${PYTHON_DEPS}
-   dev-libs/icu
-   sys-libs/libunwind
-   dev-libs/libxml2
-   dev-libs/papi
-   sys-apps/hwloc
-   sys-libs/glibc
-   sys-libs/zlib
-   virtual/mpi
-   || ( sys-devel/binutils:* sys-libs/binutils-libs )
-   boost? ( dev-libs/boost:= )
-   dwarf? ( dev-libs/libdwarf )
-   elf? ( virtual/libelf )
-   opencl? ( dev-util/opencl-headers )
-"
-DEPEND="
-   ${CDEPEND}
-   java? ( virtual/jdk:1.8 )
-"
-RDEPEND="
-   ${CDEPEND}
-   java? ( virtual/jre:1.8 )
-   virtual/opencl
-"
-BDEPEND="
-   doc? ( dev-python/sphinx )
-"
-REQUIRED_USE="
-   ${PYTHON_REQUIRED_USE}
-"
-#  cupti? ( cuda )
-#  dyninst? ( boost dwarf elf )
-#  online? ( synapse )
-#  aspectj? ( java )
-#  spectral? ( fft )
-
-src_prepare() {
-   default
-   eautoreconf
-}
-
-src_configure() {
-   local myconf=(
-   --datadir="${T}"
-   --datarootdir="${T}"
-   --libdir="${EPREFIX}/usr/$(get_libdir)/extrae"
-
-   --disable-mic
-   --disable-nanos
-   --disable-online
-   --disable-peruse
-   --disable-pmapi
-   --disable-static
-
-   --enable-shared
-
-   --with-librt="${EPREFIX}/usr"
-   --with-mpi="${EPREFIX}/usr"
-   --with-papi="${EPREFIX}/usr"
-   --with-pic
-   --with-unwind="${EPREFIX}/usr"
-
-   --without-dyninst
-   

[gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/

2021-04-19 Thread Andrew Ammerlaan
commit: d7cf0960683b3e248fb094a5e1e4c8b5d2518777
Author: Alessandro Barbieri  gmail  com>
AuthorDate: Mon Apr 19 01:11:30 2021 +
Commit: Andrew Ammerlaan  riseup  net>
CommitDate: Mon Apr 19 01:11:30 2021 +
URL:https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d7cf0960

sys-cluster/extrae: new package

very WIP
TODO: fix rpath
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Alessandro Barbieri  gmail.com>

 sys-cluster/extrae/Manifest|   1 +
 sys-cluster/extrae/extrae-3.8.3.ebuild | 175 +
 sys-cluster/extrae/metadata.xml|  50 ++
 3 files changed, 226 insertions(+)

diff --git a/sys-cluster/extrae/Manifest b/sys-cluster/extrae/Manifest
new file mode 100644
index 0..17608e9bc
--- /dev/null
+++ b/sys-cluster/extrae/Manifest
@@ -0,0 +1 @@
+DIST extrae-3.8.3.tar.gz 1056317 BLAKE2B 
9efe7011ba9474de66deb8c679f10eff37cc3d5699b42cb1b076ed43b539bbc15ecc613b3f17b03df9e93a219ebcafd3e1d56229db9c0d4e7a0a56d5c3edd591
 SHA512 
3fba66447790e0a1c71c0e5a61f67ad966cdd4e19742799ecc50124a916ef599fff747027ccc803584f0ab2d1d76c29ded7072a70dd0aed5a3be7ff6ecbb8709

diff --git a/sys-cluster/extrae/extrae-3.8.3.ebuild 
b/sys-cluster/extrae/extrae-3.8.3.ebuild
new file mode 100644
index 0..7d5340273
--- /dev/null
+++ b/sys-cluster/extrae/extrae-3.8.3.ebuild
@@ -0,0 +1,175 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( pypy3 python3_{7,8,9} )
+inherit autotools java-pkg-opt-2 python-single-r1
+
+DESCRIPTION="Instrumentation framework to generate execution traces of the 
most used parallel runtimes"
+HOMEPAGE="https://github.com/bsc-performance-tools/extrae;
+SRC_URI="https://github.com/bsc-performance-tools/extrae/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+#TODO: correctly install python stuff
+IUSE="boost doc dwarf elf fft heterogeneous inotify +instrument-dynamic-memory 
+instrument-io +instrument-syscall merge-in-trace opencl openmp +parallel-merge 
pebs-sampling +posix-clock pthread sampling +single-mpi-lib smpss +xml"
+#aspectj and aspectj-weaver needs to be enabled both at the same time but the 
aspectj package in gentoo doesn't have weaver
+#TODO: find out which FFT library is used
+#TODO: remove some useflags (boost fft elf dwarf)
+#TODO: nanos pmapi online dyninst cuda spectral cupti openshmem gm mx synapse 
memkind sionlib aspectj
+#TODO: support llvm libunwind, llvm rt, elftoolchain
+
+CDEPEND="
+   ${PYTHON_DEPS}
+   dev-libs/icu
+   sys-libs/libunwind
+   dev-libs/libxml2
+   dev-libs/papi
+   sys-apps/hwloc
+   sys-libs/glibc
+   sys-libs/zlib
+   virtual/mpi
+   || ( sys-devel/binutils:* sys-libs/binutils-libs )
+   boost? ( dev-libs/boost:= )
+   dwarf? ( dev-libs/libdwarf )
+   elf? ( virtual/libelf )
+   opencl? ( dev-util/opencl-headers )
+"
+DEPEND="
+   ${CDEPEND}
+   java? ( virtual/jdk:1.8 )
+"
+RDEPEND="
+   ${CDEPEND}
+   java? ( virtual/jre:1.8 )
+   virtual/opencl
+"
+BDEPEND="
+   doc? ( dev-python/sphinx )
+"
+REQUIRED_USE="
+   ${PYTHON_REQUIRED_USE}
+"
+#  cupti? ( cuda )
+#  dyninst? ( boost dwarf elf )
+#  online? ( synapse )
+#  aspectj? ( java )
+#  spectral? ( fft )
+
+src_prepare() {
+   default
+   eautoreconf
+}
+
+src_configure() {
+   local myconf=(
+   --datadir="${T}"
+   --datarootdir="${T}"
+   --libdir="${EPREFIX}/usr/$(get_libdir)/extrae"
+
+   --disable-mic
+   --disable-nanos
+   --disable-online
+   --disable-peruse
+   --disable-pmapi
+   --disable-static
+
+   --enable-shared
+
+   --with-librt="${EPREFIX}/usr"
+   --with-mpi="${EPREFIX}/usr"
+   --with-papi="${EPREFIX}/usr"
+   --with-pic
+   --with-unwind="${EPREFIX}/usr"
+
+   --without-dyninst
+   --without-cupti
+   --without-memkind
+   --without-clustering
+   --without-java-aspectj
+   --without-java-aspectj-weaver
+   --without-synapse
+   --without-spectral
+   --without-openshmem
+   --without-gm
+   --without-mx
+
+   $(use_enable doc)
+   $(use_enable heterogeneous)
+   $(use_enable inotify)
+   $(use_enable instrument-dynamic-memory)
+   $(use_enable instrument-io)
+   $(use_enable instrument-syscall)
+   $(use_enable merge-in-trace)
+   $(use_enable openmp)
+   $(use_enable sampling)
+   $(use_enable parallel-merge)
+   $(use_enable pebs-sampling)
+   $(use_enable posix-clock)
+