# IT4Innovations 2020

easyblock = 'EB_Score_minus_P'

name = 'Score-P'
version = '6.0'

homepage = 'http://www.score-p.org'
description = """The Score-P measurement infrastructure is a highly scalable and
 easy-to-use tool suite for profiling, event tracing, and online analysis of HPC
 applications."""

toolchain = {'name': 'intel', 'version': '2020a'}

source_urls = ['https://www.vi-hps.org/cms/upload/packages/scorep/']
sources = ['scorep-%(version)s.tar.gz']

builddependencies = [
   ('libunwind', '1.2.1', '', True),
]

dependencies = [
#   ('Cube', '4.4.4'),    # internal build
    ('OPARI2', '2.0.5'),
    ('OTF2', '2.2'),
    ('PAPI', '6.0.0'),
    ('PDT', '3.25.1'),
]

configopts = '--enable-shared'

sanity_check_paths = {
    'files': [
        "bin/scorep",
        "include/scorep/SCOREP_User.h",
        ("lib/libscorep_adapter_mpi_event.a",
         "lib64/libscorep_adapter_mpi_event.a"),
        ("lib/libscorep_adapter_mpi_event.%s" %
         SHLIB_EXT,
         "lib64/libscorep_adapter_mpi_event.%s" %
         SHLIB_EXT)],
    'dirs': [],
}

# Ensure that local metric documentation is found by Cube GUI
modextrapaths = {'CUBE_DOCPATH': 'share/doc/scorep/profile'}

moduleclass = 'perf'
