1 |
commit: d48c771aca29f31b5bd083082ad9455d738e378f |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Jul 26 16:05:34 2021 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Mon Jul 26 16:06:19 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d48c771a |
7 |
|
8 |
sys-cluster/extrae: add online useflag |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
.../{extrae-3.8.3-r6.ebuild => extrae-3.8.3-r7.ebuild} | 17 +++++++++++------ |
13 |
sys-cluster/extrae/metadata.xml | 2 +- |
14 |
2 files changed, 12 insertions(+), 7 deletions(-) |
15 |
|
16 |
diff --git a/sys-cluster/extrae/extrae-3.8.3-r6.ebuild b/sys-cluster/extrae/extrae-3.8.3-r7.ebuild |
17 |
similarity index 93% |
18 |
rename from sys-cluster/extrae/extrae-3.8.3-r6.ebuild |
19 |
rename to sys-cluster/extrae/extrae-3.8.3-r7.ebuild |
20 |
index 4baf807be..50f2ccc32 100644 |
21 |
--- a/sys-cluster/extrae/extrae-3.8.3-r6.ebuild |
22 |
+++ b/sys-cluster/extrae/extrae-3.8.3-r7.ebuild |
23 |
@@ -15,15 +15,16 @@ LICENSE="LGPL-2.1" |
24 |
SLOT="0" |
25 |
KEYWORDS="~amd64" |
26 |
IUSE="boost clustering doc dwarf elf heterogeneous inotify +instrument-dynamic-memory |
27 |
-+instrument-io +instrument-syscall memkind merge-in-trace nanos opencl openmp +parallel-merge |
28 |
-pebs-sampling +posix-clock pthread sampling +single-mpi-lib sionlib smpss spectral +xml" |
29 |
++instrument-io +instrument-syscall memkind merge-in-trace nanos online opencl openmp |
30 |
++parallel-merge pebs-sampling +posix-clock pthread sampling +single-mpi-lib sionlib smpss |
31 |
+spectral +xml" |
32 |
|
33 |
#aspectj and aspectj-weaver need to both be enabled at the same time |
34 |
#current dev-java/aspectj package only provides aspectj.jar |
35 |
#aspectj needs foo/lib/aspectj.jar and foo/bin/ajc |
36 |
#aspectj-weaver needs bar/aspectjweaver.jar |
37 |
#TODO: remove some useflags (boost elf dwarf) |
38 |
-#TODO: pmapi online dyninst cuda cupti openshmem gm mx synapse aspectj |
39 |
+#TODO: pmapi online dyninst cuda cupti openshmem gm mx aspectj |
40 |
#TODO: support llvm libunwind, llvm rt, elftoolchain |
41 |
|
42 |
CDEPEND=" |
43 |
@@ -44,8 +45,9 @@ CDEPEND=" |
44 |
elf? ( virtual/libelf ) |
45 |
inotify? ( dev-libs/libevent ) |
46 |
memkind? ( dev-libs/memkind ) |
47 |
+ online? ( sys-cluster/synapse ) |
48 |
opencl? ( dev-util/opencl-headers ) |
49 |
- sionlib? ( sys-cluster/sionlib:= ) |
50 |
+ sionlib? ( sys-cluster/sionlib:=[-tools] ) |
51 |
spectral? ( |
52 |
sci-libs/fftw |
53 |
sys-cluster/spectral |
54 |
@@ -75,7 +77,6 @@ REQUIRED_USE=" |
55 |
" |
56 |
# cupti? ( cuda ) |
57 |
# dyninst? ( boost dwarf elf ) |
58 |
-# online? ( synapse ) |
59 |
# aspectj? ( java ) |
60 |
|
61 |
src_prepare() { |
62 |
@@ -106,7 +107,6 @@ src_configure() { |
63 |
|
64 |
--without-dyninst |
65 |
--without-cupti |
66 |
- --without-synapse |
67 |
--without-openshmem |
68 |
--without-gm |
69 |
--without-mx |
70 |
@@ -168,6 +168,11 @@ src_configure() { |
71 |
else |
72 |
myconf+=( "--without-memkind" ) |
73 |
fi |
74 |
+ if use online; then |
75 |
+ myconf+=( "--with-synapse=${EPREFIX}/usr" ) |
76 |
+ else |
77 |
+ myconf+=( "--without-synapse" ) |
78 |
+ fi |
79 |
if use opencl; then |
80 |
myconf+=( "--with-opencl=${EPREFIX}/usr" ) |
81 |
else |
82 |
|
83 |
diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml |
84 |
index 4a9abda54..3db14b4bc 100644 |
85 |
--- a/sys-cluster/extrae/metadata.xml |
86 |
+++ b/sys-cluster/extrae/metadata.xml |
87 |
@@ -34,7 +34,7 @@ process). Extrae generates trace files that can be later visualized with sys-clu |
88 |
<flag name="memkind">Enable <pkg>dev-libs/memkind</pkg> support</flag> |
89 |
<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> |
90 |
<flag name="nanos">Enable support for tracing <pkg>sys-cluster/nanos6</pkg> run-time</flag> |
91 |
- <!--<flag name="online">Enable on-line analysis</flag>--> |
92 |
+ <flag name="online">Enable on-line analysis</flag> |
93 |
<flag name="opencl">Enable support for tracing OpenCL</flag> |
94 |
<flag name="openmp">Enable support for tracing OpenMP</flag> |
95 |
<flag name="parallel-merge">Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI</flag> |