Add Caliper 1.7.0 and Gotcha 1.0.2 (#8572)

* Update Gotcha and Caliper versions

* caliper: Use spack-built gotcha

* caliper: Enable sampling support on Linux

* More robust check for Linux
This commit is contained in:
David Böhme 2018-06-27 15:21:23 -07:00 committed by Adam J. Stewart
parent e3f208e4cb
commit 51bd319fcf
2 changed files with 12 additions and 1 deletions

View File

@ -39,8 +39,12 @@ class Caliper(CMakePackage):
url = ""
version('master', git='https://github.com/LLNL/Caliper.git')
version('1.7.0', git='https://github.com/LLNL/Caliper.git', tag='v1.7.0')
# version 1.6.0 is broken b/c it downloads the wrong gotcha version
version('1.6.0', git='https://github.com/LLNL/Caliper.git', tag='v1.6.0')
is_linux = sys.platform.startswith('linux')
variant('mpi', default=True,
description='Enable MPI wrappers')
variant('dyninst', default=False,
@ -51,14 +55,17 @@ class Caliper(CMakePackage):
# pthread_self() signature is incompatible with PAPI_thread_init() on Mac
variant('papi', default=sys.platform != 'darwin',
description='Enable PAPI service')
variant('libpfm', default=sys.platform == 'linux2',
variant('libpfm', default=is_linux,
description='Enable libpfm (perf_events) service')
# gotcha doesn't work on Mac
variant('gotcha', default=sys.platform != 'darwin',
description='Enable GOTCHA support')
variant('sampler', default=is_linux,
description='Enable sampling support on Linux')
variant('sosflow', default=False,
description='Enable SOSflow support')
depends_on('gotcha@1.0:', when='+gotcha')
depends_on('dyninst', when='+dyninst')
depends_on('papi', when='+papi')
depends_on('libpfm4', when='+libpfm')
@ -81,10 +88,13 @@ def cmake_args(self):
'-DWITH_PAPI=%s' % ('On' if '+papi' in spec else 'Off'),
'-DWITH_LIBPFM=%s' % ('On' if '+libpfm' in spec else 'Off'),
'-DWITH_SOSFLOW=%s' % ('On' if '+sosflow' in spec else 'Off'),
'-DWITH_SAMPLER=%s' % ('On' if '+sampler' in spec else 'Off'),
'-DWITH_MPI=%s' % ('On' if '+mpi' in spec else 'Off'),
'-DWITH_MPIT=%s' % ('On' if spec.satisfies('^mpi@3:') else 'Off')
]
if '+gotcha' in spec:
args.append('-DUSE_EXTERNAL_GOTCHA=True')
if '+papi' in spec:
args.append('-DPAPI_PREFIX=%s' % spec['papi'].prefix)
if '+libpfm' in spec:

View File

@ -38,6 +38,7 @@ class Gotcha(CMakePackage):
branch="develop")
version('master', git='https://github.com/LLNL/gotcha.git',
branch="master")
version('1.0.2', git='https://github.com/LLNL/gotcha.git', tag="1.0.2")
version('0.0.2', git='https://github.com/LLNL/gotcha.git', tag="0.0.2")
def configure_args(self):