diff options
author | Kevin Huck <khuck@cs.uoregon.edu> | 2020-03-20 01:41:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 09:41:36 +0100 |
commit | 625bf187d28cda3215c9613e60c3e3b1a3c141d3 (patch) | |
tree | e48d93a2dccfde7237c7abaa172974b92cd1e423 /var | |
parent | e2cf6f5b1baca2b99e6d95f632e8b7eae9780069 (diff) | |
download | spack-625bf187d28cda3215c9613e60c3e3b1a3c141d3.tar.gz spack-625bf187d28cda3215c9613e60c3e3b1a3c141d3.tar.bz2 spack-625bf187d28cda3215c9613e60c3e3b1a3c141d3.tar.xz spack-625bf187d28cda3215c9613e60c3e3b1a3c141d3.zip |
perfstubs: added new package (#15547)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/perfstubs/package.py | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/perfstubs/package.py b/var/spack/repos/builtin/packages/perfstubs/package.py new file mode 100644 index 0000000000..9162e749fc --- /dev/null +++ b/var/spack/repos/builtin/packages/perfstubs/package.py @@ -0,0 +1,34 @@ +# 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 Perfstubs(CMakePackage): + """Profiling API for adding tool instrumentation support to any project. + + This was motivated by the need to quickly add instrumentation to the + [ADIOS2](https://github.com/ornladios/ADIOS2) library without adding a build + dependency, or tying to a specific measurement tool. + + The initial prototype implementation was tied to TAU, but evolved to this more + generic version, which was extracted as a separate repository for testing and + demonstration purposes. + """ + + homepage = "https://github.com/khuck/perfstubs" + git = "https://github.com/khuck/perfstubs.git" + + version('master', branch='master') + variant('static', default=False, description='Build static executable support') + + def cmake_args(self): + spec = self.spec + + args = [ + '-DPERFSTUBS_USE_STATIC:BOOL={0}'.format( + 'ON' if '+static' in spec else 'OFF') + ] + return args |