new packages: libbacktrace, libpfm, numap, numamma (#15868)

* new packages: libbacktrace, libpfm, numap, numamma

* numap: use the existing libpfm4 package

* formatting
This commit is contained in:
François Trahay 2020-04-06 15:01:58 +02:00 committed by GitHub
parent 06f3381dfd
commit 55d15fc07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 72 additions and 0 deletions

View File

@ -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')

View File

@ -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

View File

@ -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')