From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ADCA013835C for ; Mon, 19 Apr 2021 08:04:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 0E697E0876; Mon, 19 Apr 2021 08:04:36 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D6B92E0876 for ; Mon, 19 Apr 2021 08:04:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9980E340E94 for ; Mon, 19 Apr 2021 08:04:24 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 14950720 for ; Mon, 19 Apr 2021 08:04:21 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1618794690.d7cf0960683b3e248fb094a5e1e4c8b5d2518777.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-cluster/extrae/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-cluster/extrae/Manifest sys-cluster/extrae/extrae-3.8.3.ebuild sys-cluster/extrae/metadata.xml X-VCS-Directories: sys-cluster/extrae/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: d7cf0960683b3e248fb094a5e1e4c8b5d2518777 X-VCS-Branch: master Date: Mon, 19 Apr 2021 08:04:21 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0d3dfc80-7d8a-4226-8e09-69684e10aa6f X-Archives-Hash: 6d66fb492204f37f3206fe59b728698c commit: d7cf0960683b3e248fb094a5e1e4c8b5d2518777 Author: Alessandro Barbieri gmail com> AuthorDate: Mon Apr 19 01:11:30 2021 +0000 Commit: Andrew Ammerlaan riseup 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 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 @@ + + + + + lssndrbarbieri@gmail.com + Alessandro Barbieri + + +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 sys-cluster/paraver. + + + https://github.com/bsc-performance-tools/extrae/issues + bsc-performance-tools/extrae + + + Search for boost + Generates the documentation of this instrumentation package + + + Build with dev-libs/libdwarf + + Build with virtual/libelf + Search for FFT package (which?) + Enable support for heterogeneous tracing + Enable inotify support + Enables instrumentation for dynamic memory (malloc, free, realloc) calls + Enables instrumentation for basic I/O (read, write) calls + Enables instrumentation for system calls (other than I/O and mallocs) + Enable support for tracing Java. This is necessary to create the connectors between |TRACE| and Java applications. + Embed the merging process in the tracing library so the final tracefile can be generated automatically from the application run + + + Enable support for tracing OpenCL + Enable support for tracing OpenMP + Build the parallel mergers (mpimpi2prv/mpimpi2dim) based on MPI + enable PEBS sampling + + 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. + Enable support for tracing pthread library + Enable PAPI sampling support + + 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. + Enable support for tracing SMP-superscalar + + Enable support for XML configuration + +