* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-19 8:04 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-04-19 8:04 UTC (permalink / raw
To: gentoo-commits
commit: 57f584007bef62919f4544785ae1189c7e95c736
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Apr 19 07:49:56 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Apr 19 07:49:56 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=57f58400
sys-cluster/extrae: remove DoublePrefixInPath
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
sys-cluster/extrae/extrae-3.8.3.ebuild | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/sys-cluster/extrae/extrae-3.8.3.ebuild b/sys-cluster/extrae/extrae-3.8.3.ebuild
index 7d5340273..2b38c9b2b 100644
--- a/sys-cluster/extrae/extrae-3.8.3.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3.ebuild
@@ -153,9 +153,9 @@ src_configure() {
src_install() {
default
- mkdir -p "${ED}/$(python_get_sitedir)/" || die
- mv "${ED}/usr/libexec/pyextrae" "${ED}/$(python_get_sitedir)/" || die
- python_optimize "${ED}/$(python_get_sitedir)/pyextrae"
+ mkdir -p "${D}/$(python_get_sitedir)/" || die
+ mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
+ python_optimize "${D}/$(python_get_sitedir)/pyextrae"
#super-duper workaround
mkdir -p "${ED}/usr/share/doc/${PF}" || die
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-19 8:04 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-04-19 8:04 UTC (permalink / raw
To: gentoo-commits
commit: d7cf0960683b3e248fb094a5e1e4c8b5d2518777
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Apr 19 01:11:30 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Apr 19 01:11:30 2021 +0000
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 <lssndrbarbieri <AT> 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 000000000..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 000000000..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)
+ $(use_enable pthread)
+ $(use_enable single-mpi-lib)
+ $(use_enable smpss)
+ $(use_enable xml)
+ )
+# $(use_enable nanos)
+# --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 dwarf; then
+ myconf+=( "--with-dwarf=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-dwarf" )
+ fi
+ if use elf; then
+ myconf+=( "--with-elf=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-elf" )
+ fi
+ if use fft; then
+ myconf+=( "--with-fft=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-fft" )
+ fi
+ if use java; then
+ myconf+=( "--with-java-jdk=$(java-config -O)" )
+ else
+ myconf+=( "--without-java-jdk" )
+ fi
+ if use opencl; then
+ myconf+=( "--with-opencl=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-opencl" )
+ fi
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ mkdir -p "${ED}/$(python_get_sitedir)/" || die
+ mv "${ED}/usr/libexec/pyextrae" "${ED}/$(python_get_sitedir)/" || die
+ python_optimize "${ED}/$(python_get_sitedir)/pyextrae"
+
+ #super-duper workaround
+ mkdir -p "${ED}/usr/share/doc/${PF}" || die
+ mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
+ mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
+
+ if use doc ; then
+ mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
+ mv "${T}/man" "${ED}/usr/share/" || die
+ docompress -x "/usr/share/doc/${PF}/html"
+ fi
+ docompress -x "/usr/share/doc/${PF}/examples"
+ docompress -x "/usr/share/doc/${PF}/tests"
+
+ find "${ED}" -name '*.a' -delete || die
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
new file mode 100644
index 000000000..63ba6df57
--- /dev/null
+++ b/sys-cluster/extrae/metadata.xml
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lssndrbarbieri@gmail.com</email>
+ <name>Alessandro Barbieri</name>
+ </maintainer>
+ <longdescription>
+A dynamic instrumentation package to trace programs compiled and run with the shared
+memory model (like OpenMP and pthreads), the message passing (MPI) programming model or
+both programming models (different MPI processes using OpenMP or pthreads within each MPI
+process). Extrae generates trace files that can be later visualized with <pkg>sys-cluster/paraver</pkg>.
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/bsc-performance-tools/extrae/issues</bugs-to>
+ <remote-id type="github">bsc-performance-tools/extrae</remote-id>
+ </upstream>
+ <use>
+ <flag name="boost">Search for boost</flag>
+ <flag name="doc">Generates the documentation of this instrumentation package</flag>
+ <!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->
+ <!--<flag name="cupti">CUPTI is used to instrument CUDA calls</flag>-->
+ <flag name="dwarf">Build with <pkg>dev-libs/libdwarf</pkg></flag>
+ <!--<flag name="dyninst">Build with dyninst</flag>-->
+ <flag name="elf">Build with <pkg>virtual/libelf</pkg></flag>
+ <flag name="fft">Search for FFT package (which?)</flag>
+ <flag name="heterogeneous">Enable support for heterogeneous tracing</flag>
+ <flag name="inotify">Enable inotify support</flag>
+ <flag name="instrument-dynamic-memory">Enables instrumentation for dynamic memory (malloc, free, realloc) calls</flag>
+ <flag name="instrument-io">Enables instrumentation for basic I/O (read, write) calls</flag>
+ <flag name="instrument-syscall">Enables instrumentation for system calls (other than I/O and mallocs)</flag>
+ <flag name="java">Enable support for tracing Java. This is necessary to create the connectors between |TRACE| and Java applications.</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/nanos</pkg> run-time</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>
+ <flag name="pebs-sampling">enable PEBS sampling</flag>
+ <!--<flag name="pmapi">Enable PMAPI library to gather CPU performance counters</flag>-->
+ <flag name="posix-clock">Use POSIX clock (clock_gettime call) instead of low level timing routines. Use this option if the system where you install the instrumentation package modifies the frequency of its processors at runtime.</flag>
+ <flag name="pthread">Enable support for tracing pthread library</flag>
+ <flag name="sampling">Enable PAPI sampling support</flag>
+ <!--<flag name="spectral">This package enables support for on-line spectral analysis.</flag>-->
+ <flag name="single-mpi-lib">Produces a single instrumentation library for MPI that contains both Fortran and C wrappers. Applications that call the MPI library from both C and Fortran languages need this flag to be enabled.</flag>
+ <flag name="smpss">Enable support for tracing SMP-superscalar</flag>
+ <!--<flag name="synapse">This library is a front-end of the MRNet library</flag>-->
+ <flag name="xml">Enable support for XML configuration</flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-19 8:04 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-04-19 8:04 UTC (permalink / raw
To: gentoo-commits
commit: 540bef0ac2ed6e6b238da909b631c0d39d883c6f
Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Mon Apr 19 07:50:58 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Mon Apr 19 07:51:17 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=540bef0a
sys-cluster/extrae: shorten description
Package-Manager: Portage-3.0.18, Repoman-3.0.3
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
sys-cluster/extrae/extrae-3.8.3.ebuild | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys-cluster/extrae/extrae-3.8.3.ebuild b/sys-cluster/extrae/extrae-3.8.3.ebuild
index 2b38c9b2b..59b3c2edb 100644
--- a/sys-cluster/extrae/extrae-3.8.3.ebuild
+++ b/sys-cluster/extrae/extrae-3.8.3.ebuild
@@ -6,7 +6,7 @@ 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"
+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"
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-21 7:32 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-04-21 7:32 UTC (permalink / raw
To: gentoo-commits
commit: aeadb10ff9c2c671b48c60f33b2f4c73d95aa5ba
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Wed Apr 21 00:17:10 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 21 01:17:11 2021 +0000
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 <lssndrbarbieri <AT> 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..000000000
--- 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
- --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)
- $(use_enable pthread)
- $(use_enable single-mpi-lib)
- $(use_enable smpss)
- $(use_enable xml)
- )
-# $(use_enable nanos)
-# --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 dwarf; then
- myconf+=( "--with-dwarf=${EPREFIX}/usr" )
- else
- myconf+=( "--without-dwarf" )
- fi
- if use elf; then
- myconf+=( "--with-elf=${EPREFIX}/usr" )
- else
- myconf+=( "--without-elf" )
- fi
- if use fft; then
- myconf+=( "--with-fft=${EPREFIX}/usr" )
- else
- myconf+=( "--without-fft" )
- fi
- if use java; then
- myconf+=( "--with-java-jdk=$(java-config -O)" )
- else
- myconf+=( "--without-java-jdk" )
- fi
- if use opencl; then
- myconf+=( "--with-opencl=${EPREFIX}/usr" )
- else
- myconf+=( "--without-opencl" )
- fi
- econf "${myconf[@]}"
-}
-
-src_install() {
- default
-
- mkdir -p "${D}/$(python_get_sitedir)/" || die
- mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
- python_optimize "${D}/$(python_get_sitedir)/pyextrae"
-
- #super-duper workaround
- mkdir -p "${ED}/usr/share/doc/${PF}" || die
- mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
- mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
-
- if use doc ; then
- mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
- mv "${T}/man" "${ED}/usr/share/" || die
- docompress -x "/usr/share/doc/${PF}/html"
- fi
- docompress -x "/usr/share/doc/${PF}/examples"
- docompress -x "/usr/share/doc/${PF}/tests"
-
- find "${ED}" -name '*.a' -delete || die
- find "${ED}" -name '*.la' -delete || die
-}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-21 7:32 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-04-21 7:32 UTC (permalink / raw
To: gentoo-commits
commit: 9a8335750d5b97c8963cd8799499c469605734d3
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr 20 23:48:40 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed Apr 21 01:17:11 2021 +0000
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 <lssndrbarbieri <AT> 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 000000000..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 dwarf; then
+ myconf+=( "--with-dwarf=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-dwarf" )
+ fi
+ if use elf; then
+ myconf+=( "--with-elf=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-elf" )
+ fi
+ if use fft; then
+ myconf+=( "--with-fft=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-fft" )
+ fi
+ if use java; then
+ myconf+=( "--with-java-jdk=$(java-config -O)" )
+ else
+ myconf+=( "--without-java-jdk" )
+ fi
+ if use opencl; then
+ myconf+=( "--with-opencl=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-opencl" )
+ fi
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ mkdir -p "${D}/$(python_get_sitedir)/" || die
+ mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
+ python_optimize "${D}/$(python_get_sitedir)/pyextrae"
+
+ #super-duper workaround
+ mkdir -p "${ED}/usr/share/doc/${PF}" || die
+ mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
+ mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
+
+ if use doc ; then
+ mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
+ mv "${T}/man" "${ED}/usr/share/" || die
+ docompress -x "/usr/share/doc/${PF}/html"
+ fi
+ docompress -x "/usr/share/doc/${PF}/examples"
+ docompress -x "/usr/share/doc/${PF}/tests"
+
+ find "${ED}" -name '*.a' -delete || die
+ find "${ED}" -name '*.la' -delete || die
+}
diff --git a/sys-cluster/extrae/metadata.xml b/sys-cluster/extrae/metadata.xml
index 63ba6df57..fb390763b 100644
--- a/sys-cluster/extrae/metadata.xml
+++ b/sys-cluster/extrae/metadata.xml
@@ -31,7 +31,7 @@ process). Extrae generates trace files that can be later visualized with <pkg>sy
<flag name="instrument-syscall">Enables instrumentation for system calls (other than I/O and mallocs)</flag>
<flag name="java">Enable support for tracing Java. This is necessary to create the connectors between |TRACE| and Java applications.</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/nanos</pkg> run-time</flag>-->
+ <flag name="nanos">Enable support for tracing <pkg>sys-cluster/nanos</pkg> run-time</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>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-24 23:19 Theo Anderson
0 siblings, 0 replies; 14+ messages in thread
From: Theo Anderson @ 2021-04-24 23:19 UTC (permalink / raw
To: gentoo-commits
commit: 2c039b70f0366f338ad65a434f402e7d32972d77
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Sat Apr 24 18:45:57 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Sat Apr 24 18:51:42 2021 +0000
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 <lssndrbarbieri <AT> gmail.com>
| 16 +++++++++++++---
| 1 +
2 files changed, 14 insertions(+), 3 deletions(-)
--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
--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 <pkg>sy
<remote-id type="github">bsc-performance-tools/extrae</remote-id>
</upstream>
<use>
+ <!--<flag name="aspectj">Enable support for tracing Java through <pkg>dev-java/aspectj</pkg> (experimental)</flag>-->
<flag name="boost">Search for boost</flag>
<flag name="doc">Generates the documentation of this instrumentation package</flag>
<!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-27 23:24 Theo Anderson
0 siblings, 0 replies; 14+ messages in thread
From: Theo Anderson @ 2021-04-27 23:24 UTC (permalink / raw
To: gentoo-commits
commit: bc42c1e25088351276554a3abfea77035895f6b6
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Apr 26 23:29:16 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Mon Apr 26 23:29:16 2021 +0000
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 <lssndrbarbieri <AT> gmail.com>
| 1 +
| 1 +
| 1 +
3 files changed, 3 insertions(+)
--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
--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
--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
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-04-27 23:24 Theo Anderson
0 siblings, 0 replies; 14+ messages in thread
From: Theo Anderson @ 2021-04-27 23:24 UTC (permalink / raw
To: gentoo-commits
commit: c0ad8c4ee84b6d70578ac0a13c2e4f84e2c0ea69
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Apr 27 05:54:53 2021 +0000
Commit: Theo Anderson <telans <AT> posteo <DOT> de>
CommitDate: Tue Apr 27 05:54:53 2021 +0000
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 <lssndrbarbieri <AT> gmail.com>
| 3 +--
| 3 +--
| 3 +--
3 files changed, 3 insertions(+), 6 deletions(-)
--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:= )
--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:= )
--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:= )
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-07-27 19:57 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-07-27 19:57 UTC (permalink / raw
To: gentoo-commits
commit: d731e99abfe60e51606dc5cf67193740fa659499
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 26 22:25:37 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Mon Jul 26 23:28:42 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d731e99a
sys-cluster/extrae: fix sionlib detection
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> 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[@]}"
}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-07-27 19:57 Andrew Ammerlaan
0 siblings, 0 replies; 14+ messages in thread
From: Andrew Ammerlaan @ 2021-07-27 19:57 UTC (permalink / raw
To: gentoo-commits
commit: d48c771aca29f31b5bd083082ad9455d738e378f
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Mon Jul 26 16:05:34 2021 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
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>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-08-07 17:48 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2021-08-07 17:48 UTC (permalink / raw
To: gentoo-commits
commit: 80ce0488664df5fb8050d222637f3907b97da61d
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Aug 6 00:13:32 2021 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Aug 6 00:16:44 2021 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=80ce0488
sys-cluster/extrae: add openshmem useflag
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
| 14 ++++++++++----
| 1 +
2 files changed, 11 insertions(+), 4 deletions(-)
--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" )
--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
<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="openshmem">OpenSHMEM to be used for the instrumentation package</flag>
<flag name="parallel-merge">Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI</flag>
<flag name="pebs-sampling">enable PEBS sampling</flag>
<!--<flag name="pmapi">Enable PMAPI library to gather CPU performance counters</flag>-->
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2021-08-20 18:48 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2021-08-20 18:48 UTC (permalink / raw
To: gentoo-commits
commit: 02310e94552ae41bdebc6886d969232f23c7c0d2
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Fri Aug 20 01:23:33 2021 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Fri Aug 20 01:23:33 2021 +0000
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 <lssndrbarbieri <AT> gmail.com>
| 35 ++++++++++++++--------
| 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
- !>=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" )
--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
<!--<flag name="cuda">Enable support for tracing CUDA calls on nVidia hardware and needs to point to the CUDA SDK installation path. This instrumentation is only valid in binaries that use the shared version of the CUDA library.</flag>-->
<!--<flag name="cupti">CUPTI is used to instrument CUDA calls</flag>-->
<flag name="doc">Generates the documentation of this instrumentation package</flag>
- <flag name="dyninst">Build with dyninst</flag>
+ <flag name="dlsym">Use dlsym instead of PMPI</flag>
+ <flag name="dyninst">Build with <pkg>sys-cluster/dyninst</pkg></flag>
<flag name="heterogeneous">Enable support for heterogeneous tracing</flag>
<flag name="inotify">Enable inotify support</flag>
<flag name="instrument-dynamic-memory">Enables instrumentation for dynamic memory (malloc, free, realloc) calls</flag>
@@ -37,11 +38,11 @@ process). Extrae generates trace files that can be later visualized with sys-clu
<flag name="openshmem">OpenSHMEM to be used for the instrumentation package</flag>
<flag name="parallel-merge">Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI</flag>
<flag name="pebs-sampling">enable PEBS sampling</flag>
- <!--<flag name="pmapi">Enable PMAPI library to gather CPU performance counters</flag>-->
+ <flag name="peruse">Enable gathering information with PerUse</flag>
<flag name="posix-clock">Use POSIX clock (clock_gettime call) instead of low level timing routines. Use this option if the system where you install the instrumentation package modifies the frequency of its processors at runtime.</flag>
<flag name="pthread">Enable support for tracing pthread library</flag>
- <flag name="sampling">Enable PAPI sampling support</flag>
- <flag name="spectral">This package enables support for on-line spectral analysis.</flag>
+ <flag name="sampling">Enable <pkg>dev-libs/papi</pkg> sampling support</flag>
+ <flag name="spectral">This package enables support for on-line <pkg>sys-cluster/spectral</pkg> analysis.</flag>
<flag name="single-mpi-lib">Produces a single instrumentation library for MPI that contains both Fortran and C wrappers. Applications that call the MPI library from both C and Fortran languages need this flag to be enabled.</flag>
<flag name="sionlib">Enable support for <pkg>sys-cluster/sionlib</pkg></flag>
<flag name="smpss">Enable support for tracing SMP-superscalar</flag>
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2022-06-03 10:44 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2022-06-03 10:44 UTC (permalink / raw
To: gentoo-commits
commit: 51ded80176b55c0506b5151e556e959874da9a37
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 2 15:54:19 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Jun 2 15:55:04 2022 +0000
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 <lssndrbarbieri <AT> gmail.com>
| 1 -
| 238 -----------------------------
2 files changed, 239 deletions(-)
--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..000000000
--- 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)
- $(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 online)
- $(use_enable openmp)
- $(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)
- )
-
- use dlsym && myconf+=( "--with-pmpi-hook=dlsym" )
-
-# 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 clustering; then
- myconf+=( "--with-clustering=${EPREFIX}/usr" )
- else
- myconf+=( "--without-clustering" )
- fi
- if use dyninst; then
- myconf+=( "--with-boost=${EPREFIX}/usr" )
- myconf+=( "--with-dyninst=${EPREFIX}/usr" )
- myconf+=( "--with-dyninst-headers=${EPREFIX}/usr/include/dyninst" )
- myconf+=( "--with-dwarf=${EPREFIX}/usr" )
- myconf+=( "--with-elf=${EPREFIX}/usr" )
- else
- myconf+=( "--without-boost" )
- myconf+=( "--without-dyninst" )
- myconf+=( "--without-dwarf" )
- myconf+=( "--without-elf" )
- fi
- if use java; then
- myconf+=( "--with-java-jdk=$(java-config -O)" )
- else
- myconf+=( "--without-java-jdk" )
- fi
- if use memkind; then
- myconf+=( "--with-memkind=${EPREFIX}/usr" )
- 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
- 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" )
- fi
- if use spectral; then
- myconf+=( "--with-fft=${EPREFIX}/usr" )
- myconf+=( "--with-spectral=${EPREFIX}/usr" )
- else
- myconf+=( "--without-fft" )
- myconf+=( "--without-spectral" )
- fi
-
- econf "${myconf[@]}"
-}
-
-src_install() {
- default
-
- #TODO: build examples
-
- mkdir -p "${D}/$(python_get_sitedir)/" || die
- mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
- python_optimize "${D}/$(python_get_sitedir)/pyextrae"
-
- #super-duper workaround
- mkdir -p "${ED}/usr/share/doc/${PF}" || die
- mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
- mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
-
- if use doc ; then
- mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
- mv "${T}/man" "${ED}/usr/share/" || die
- docompress -x "/usr/share/doc/${PF}/html"
- fi
- 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
-}
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/
@ 2022-06-03 10:44 Florian Schmaus
0 siblings, 0 replies; 14+ messages in thread
From: Florian Schmaus @ 2022-06-03 10:44 UTC (permalink / raw
To: gentoo-commits
commit: e1499a574732f641844ec73596f429991fffbfc4
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Jun 2 15:54:04 2022 +0000
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org>
CommitDate: Thu Jun 2 15:55:04 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e1499a57
sys-cluster/extrae: add 4.0.1
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
| 1 +
| 234 +++++++++++++++++++++++++++++++++
2 files changed, 235 insertions(+)
--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
--git a/sys-cluster/extrae/extrae-4.0.1.ebuild b/sys-cluster/extrae/extrae-4.0.1.ebuild
new file mode 100644
index 000000000..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)
+ $(use_enable instrument_syscall)
+ $(use_enable merge-in-trace)
+ $(use_enable nanos)
+ $(use_enable online)
+ $(use_enable openmp)
+ $(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)
+ )
+
+ use dlsym && myconf+=( "--with-pmpi-hook=dlsym" )
+
+# if use aspectj; then
+# myconf+=( "--with-java-aspectj=${EPREFIX}/usr/share/aspectj/lib" )
+# myconf+=( "--with-java-aspectj-weaver=${EPREFIX}/usr/share/aspectj/lib" )
+# else
+ myconf+=( "--without-java-aspectj-weaver" )
+ myconf+=( "--without-java-aspectj" )
+# fi
+ if use clustering; then
+ myconf+=( "--with-clustering=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-clustering" )
+ fi
+ if use dyninst; then
+ myconf+=( "--with-boost=${EPREFIX}/usr" )
+ myconf+=( "--with-dyninst=${EPREFIX}/usr" )
+ myconf+=( "--with-dyninst-headers=${EPREFIX}/usr/include/dyninst" )
+ myconf+=( "--with-dwarf=${EPREFIX}/usr" )
+ myconf+=( "--with-elf=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-boost" )
+ myconf+=( "--without-dyninst" )
+ myconf+=( "--without-dwarf" )
+ myconf+=( "--without-elf" )
+ fi
+ if use java; then
+ myconf+=( "--with-java-jdk=$(java-config -O)" )
+ else
+ myconf+=( "--without-java-jdk" )
+ fi
+ if use memkind; then
+ myconf+=( "--with-memkind=${EPREFIX}/usr" )
+ 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
+ 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" )
+ fi
+ if use spectral; then
+ myconf+=( "--with-fft=${EPREFIX}/usr" )
+ myconf+=( "--with-spectral=${EPREFIX}/usr" )
+ else
+ myconf+=( "--without-fft" )
+ myconf+=( "--without-spectral" )
+ fi
+
+ econf "${myconf[@]}"
+}
+
+src_install() {
+ default
+
+ #TODO: build examples
+
+ mkdir -p "${D}/$(python_get_sitedir)/" || die
+ mv "${ED}/usr/libexec/pyextrae" "${D}/$(python_get_sitedir)/" || die
+ python_optimize "${D}/$(python_get_sitedir)/pyextrae"
+
+ #super-duper workaround
+ mkdir -p "${ED}/usr/share/doc/${PF}" || die
+ mv "${ED}/${T}/example" "${ED}/usr/share/doc/${PF}/examples" || die
+ mv "${ED}/${T}/tests" "${ED}/usr/share/doc/${PF}/" || die
+
+ if use doc ; then
+ mv "${T}/docs"/* "${ED}/usr/share/doc/${PF}/" || die
+ mv "${T}/man" "${ED}/usr/share/" || die
+ docompress -x "/usr/share/doc/${PF}/html"
+ fi
+ 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
+}
^ permalink raw reply related [flat|nested] 14+ messages in thread
end of thread, other threads:[~2022-06-03 10:44 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-21 7:32 [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/ Andrew Ammerlaan
-- strict thread matches above, loose matches on Subject: below --
2022-06-03 10:44 Florian Schmaus
2022-06-03 10:44 Florian Schmaus
2021-08-20 18:48 Florian Schmaus
2021-08-07 17:48 Florian Schmaus
2021-07-27 19:57 Andrew Ammerlaan
2021-07-27 19:57 Andrew Ammerlaan
2021-04-27 23:24 Theo Anderson
2021-04-27 23:24 Theo Anderson
2021-04-24 23:19 Theo Anderson
2021-04-21 7:32 Andrew Ammerlaan
2021-04-19 8:04 Andrew Ammerlaan
2021-04-19 8:04 Andrew Ammerlaan
2021-04-19 8:04 Andrew Ammerlaan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox