Add Caliper v2.2.0 and v2.1.1 (#13723)
* Add Caliper v2.2.0 and v2.1.1 * Add conflict for adiak when for versions <2.2 * Trim trailing whitespace
This commit is contained in:
parent
43b0356e14
commit
1ed8de8757
1 changed files with 12 additions and 5 deletions
|
@ -10,16 +10,17 @@
|
||||||
|
|
||||||
class Caliper(CMakePackage):
|
class Caliper(CMakePackage):
|
||||||
"""Caliper is a program instrumentation and performance measurement
|
"""Caliper is a program instrumentation and performance measurement
|
||||||
framework. It provides data collection mechanisms and a source-code
|
framework. It is designed as a performance analysis toolbox in a
|
||||||
annotation API for a variety of performance engineering use cases,
|
library, allowing one to bake performance analysis capabilities
|
||||||
e.g., performance profiling, tracing, monitoring, and
|
directly into applications and activate them at runtime.
|
||||||
auto-tuning.
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
homepage = "https://github.com/LLNL/Caliper"
|
homepage = "https://github.com/LLNL/Caliper"
|
||||||
git = "https://github.com/LLNL/Caliper.git"
|
git = "https://github.com/LLNL/Caliper.git"
|
||||||
|
|
||||||
version('master')
|
version('master')
|
||||||
|
version('2.2.0', tag='v2.2.0')
|
||||||
|
version('2.1.1', tag='v2.1.1')
|
||||||
version('2.0.1', tag='v2.0.1')
|
version('2.0.1', tag='v2.0.1')
|
||||||
version('1.9.1', tag='v1.9.1')
|
version('1.9.1', tag='v1.9.1')
|
||||||
version('1.9.0', tag='v1.9.0')
|
version('1.9.0', tag='v1.9.0')
|
||||||
|
@ -29,6 +30,8 @@ class Caliper(CMakePackage):
|
||||||
is_linux = sys.platform.startswith('linux')
|
is_linux = sys.platform.startswith('linux')
|
||||||
variant('shared', default=True,
|
variant('shared', default=True,
|
||||||
description='Build shared libraries')
|
description='Build shared libraries')
|
||||||
|
variant('adiak', default=True,
|
||||||
|
description='Enable Adiak support')
|
||||||
variant('mpi', default=True,
|
variant('mpi', default=True,
|
||||||
description='Enable MPI wrappers')
|
description='Enable MPI wrappers')
|
||||||
variant('dyninst', default=False,
|
variant('dyninst', default=False,
|
||||||
|
@ -49,6 +52,8 @@ class Caliper(CMakePackage):
|
||||||
variant('sosflow', default=False,
|
variant('sosflow', default=False,
|
||||||
description='Enable SOSflow support')
|
description='Enable SOSflow support')
|
||||||
|
|
||||||
|
depends_on('adiak@0.1:', when='@2.2: +adiak')
|
||||||
|
|
||||||
depends_on('gotcha@1.0.2:1.0.99', when='+gotcha')
|
depends_on('gotcha@1.0.2:1.0.99', when='+gotcha')
|
||||||
|
|
||||||
depends_on('dyninst@9.3.0:9.99', when='@:1.99 +dyninst')
|
depends_on('dyninst@9.3.0:9.99', when='@:1.99 +dyninst')
|
||||||
|
@ -67,7 +72,8 @@ class Caliper(CMakePackage):
|
||||||
depends_on('python', type='build')
|
depends_on('python', type='build')
|
||||||
|
|
||||||
# sosflow support not yet in 2.0
|
# sosflow support not yet in 2.0
|
||||||
conflicts('+sosflow', '@2.0.0:2.0.99')
|
conflicts('+sosflow', '@2.0.0:2.2.99')
|
||||||
|
conflicts('+adiak', '@:2.1.99')
|
||||||
|
|
||||||
def cmake_args(self):
|
def cmake_args(self):
|
||||||
spec = self.spec
|
spec = self.spec
|
||||||
|
@ -76,6 +82,7 @@ def cmake_args(self):
|
||||||
'-DBUILD_TESTING=Off',
|
'-DBUILD_TESTING=Off',
|
||||||
'-DBUILD_DOCS=Off',
|
'-DBUILD_DOCS=Off',
|
||||||
'-DBUILD_SHARED_LIBS=%s' % ('On' if '+shared' in spec else 'Off'),
|
'-DBUILD_SHARED_LIBS=%s' % ('On' if '+shared' in spec else 'Off'),
|
||||||
|
'-DWITH_ADIAK=%s' % ('On' if '+adiak' in spec else 'Off'),
|
||||||
'-DWITH_DYNINST=%s' % ('On' if '+dyninst' in spec else 'Off'),
|
'-DWITH_DYNINST=%s' % ('On' if '+dyninst' in spec else 'Off'),
|
||||||
'-DWITH_CALLPATH=%s' % ('On' if '+callpath' in spec else 'Off'),
|
'-DWITH_CALLPATH=%s' % ('On' if '+callpath' in spec else 'Off'),
|
||||||
'-DWITH_GOTCHA=%s' % ('On' if '+gotcha' in spec else 'Off'),
|
'-DWITH_GOTCHA=%s' % ('On' if '+gotcha' in spec else 'Off'),
|
||||||
|
|
Loading…
Reference in a new issue