# IT4Innovations 2018

easyblock = 'EB_Score_minus_P'

name = 'Scalasca'
version = '2.4'
versionsuffix = '-MPICH'

homepage = 'http://www.scalasca.org/'
description = """Scalasca is a software tool that supports the performance optimization of
 parallel programs by measuring and analyzing their runtime behavior. The analysis identifies
 potential performance bottlenecks -- in particular those concerning communication and
 synchronization -- and offers guidance in exploring their causes."""

toolchain = {'name': 'GCC', 'version': '6.3.0-2.27'}

sources = [SOURCELOWER_TAR_GZ]
source_urls = [
    'http://apps.fz-juelich.de/scalasca/releases/scalasca/%(version_major_minor)s/dist']

dependencies = [
    ('MPICH', '3.2.1'),
    ('Score-P', '4.1', '-MPICH'),
]

sanity_check_paths = {
    'files': [
        "bin/scalasca",
        ("lib/libpearl.replay.a",
         "lib64/libpearl.replay.a")],
    'dirs': [],
}

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

moduleclass = 'perf'
