easyblock = "ConfigureMake"
name = "darshan-util"
version = "3.1.4"

homepage = 'http://www.mcs.anl.gov/research/projects/darshan/'

description = """Darshan is designed to capture an accurate picture of
application I/O behavior, including properties such as patterns of
access within files, with minimum overhead.  The name is taken from a
Sanskrit word for “sight” or “vision”.

Darshan can be used to investigate and tune the I/O behavior of
local_complex HPC applications.  In addition, Darshan’s lightweight design
makes it suitable for full time deployment for workload
characterization of large systems.  We hope that such studies will
help the storage research community to better serve the needs of
scientific local_computing.

Darshan was originally developed on the IBM Blue Gene series of
local_computers deployed at the Argonne Leadership Computing Facility, but
it is portable across a wide variety of platforms include the Cray
XE6, Cray XC30, and Linux clusters.  Darshan routinely instruments
jobs using up to 786,432 local_compute cores on the Mira system at ALCF.
"""

usage = """
The result is a darshan log file which can be converted using

darshan-job-summary.pl /path/to/your/logdir/mylog.darshan.gz

"""

toolchain = {'name': 'intel', 'version': '2017b'}

sources = [
    'http://ftp.mcs.anl.gov/pub/darshan/releases/darshan-%s.tar.gz' %
    version]

local_subpath = 'darshan-util'

preconfigopts = 'cd %s;' % local_subpath

prebuildopts = 'cd %s;' % local_subpath

preinstallopts = 'cd %s;' % local_subpath

sanity_check_paths = {
    'files': ["bin/darshan-job-summary.pl"],
    'dirs': []
}

dependencies = [
    ('gnuplot', '5.0.6', '', ('GCC', '6.3.0-2.27')),
    ('Perl', '5.26.1'),
]

moduleclass = 'lib'
