From 55d15fc07e28de32d458ab556775e82c7f8d8d11 Mon Sep 17 00:00:00 2001 From: François Trahay Date: Mon, 6 Apr 2020 15:01:58 +0200 Subject: new packages: libbacktrace, libpfm, numap, numamma (#15868) * new packages: libbacktrace, libpfm, numap, numamma * numap: use the existing libpfm4 package * formatting --- .../repos/builtin/packages/libbacktrace/package.py | 23 +++++++++++++++++ .../repos/builtin/packages/numamma/package.py | 29 ++++++++++++++++++++++ var/spack/repos/builtin/packages/numap/package.py | 20 +++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 var/spack/repos/builtin/packages/libbacktrace/package.py create mode 100644 var/spack/repos/builtin/packages/numamma/package.py create mode 100644 var/spack/repos/builtin/packages/numap/package.py (limited to 'var') diff --git a/var/spack/repos/builtin/packages/libbacktrace/package.py b/var/spack/repos/builtin/packages/libbacktrace/package.py new file mode 100644 index 0000000000..64e5832114 --- /dev/null +++ b/var/spack/repos/builtin/packages/libbacktrace/package.py @@ -0,0 +1,23 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Libbacktrace(AutotoolsPackage): + """A C library that may be linked into a C/C++ program to produce + symbolic backtraces.""" + + homepage = "https://github.com/ianlancetaylor/libbacktrace" + git = "https://github.com/ianlancetaylor/libbacktrace.git" + maintainers = ['trahay'] + + version('master', branch='master') + version('2020-02-19', commit='ca0de0517f3be44fedf5a2c01cfaf6437d4cae68') + + depends_on('autoconf', type='build') + depends_on('automake', type='build') + depends_on('libtool', type='build') + depends_on('m4', type='build') diff --git a/var/spack/repos/builtin/packages/numamma/package.py b/var/spack/repos/builtin/packages/numamma/package.py new file mode 100644 index 0000000000..cc71495449 --- /dev/null +++ b/var/spack/repos/builtin/packages/numamma/package.py @@ -0,0 +1,29 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Numamma(CMakePackage): + """NumaMMa is a lightweight memory profiler that reports the + memory access patterns of applications.""" + + homepage = "https://numamma.github.io/numamma/" + url = "https://github.com/numamma/numamma/archive/numamma-1.1.1.tar.gz" + maintainers = ['trahay'] + + version('1.1.1', sha256='f79ca22a95df33a1af529ddd653d043f7f0d32a6d196e559aee8bef8fc74771f') + + depends_on('numap') + depends_on('libbacktrace') + depends_on('numactl') + depends_on('libelf') + + def cmake_args(self): + spec = self.spec + cmake_args = [ + "-DBACKTRACE_DIR:PATH={0}".format(spec["libbacktrace"].prefix) + ] + return cmake_args diff --git a/var/spack/repos/builtin/packages/numap/package.py b/var/spack/repos/builtin/packages/numap/package.py new file mode 100644 index 0000000000..2df4cfd995 --- /dev/null +++ b/var/spack/repos/builtin/packages/numap/package.py @@ -0,0 +1,20 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Numap(CMakePackage): + """Numap is a Linux library dedicated to memory profiling based on + hardware performance monitoring unit (PMU).""" + + homepage = "https://github.com/numap-library/numap" + git = "https://github.com/numap-library/numap.git" + maintainers = ['trahay'] + + version('master', branch='master') + version('2019-09-06', commit='ffcdb88c64b59b7a3220eb1077d2b237029ca96a') + + depends_on('libpfm4') -- cgit v1.2.3-60-g2f50