commit: d48c771aca29f31b5bd083082ad9455d738e378f
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 26 16:05:34 2021 +0000
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Mon Jul 26 16:06:19 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d48c771a
sys-cluster/extrae: add online useflag
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> 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
<flag name="memkind">Enable <pkg>dev-libs/memkind</pkg>
support</flag>
<flag name="merge-in-trace">Embed the merging process in the
tracing library so the final tracefile can be generated automatically from the
application run</flag>
<flag name="nanos">Enable support for tracing
<pkg>sys-cluster/nanos6</pkg> run-time</flag>
- <!--<flag name="online">Enable on-line analysis</flag>-->
+ <flag name="online">Enable on-line analysis</flag>
<flag name="opencl">Enable support for tracing OpenCL</flag>
<flag name="openmp">Enable support for tracing OpenMP</flag>
<flag name="parallel-merge">Build the parallel mergers
(mpimpi2prv/mpimpi2dim) based on MPI</flag>