Skip to main content

Python tools to interact with darshan log records of HPC applications.

Project description

Python utilities to interact with Darshan log records of HPC applications. pydarshan requires darshan-utils (3.2.2+) to be installed.

Features

  • Darshan Report Object Wrapper

  • CFFI bindings to access darshan log files

  • Plots typically found in the darshan reports (matplotlib)

  • Auto-discover darshan-util.so (via darshan-parser in $PATH)

Usage

For examples and Jupyter notebooks to get started with pydarshan make sure to check out the examples subdirectory.

A brief examples showing some of the basic functionality is the following:

import darshan

# Open darshan log
report = darshan.DarshanReport('example.darshan')

# Load some report data
report.mod_read_all_records('POSIX')
report.mod_read_all_records('MPI-IO')
# or fetch all
report.read_all_generic_records()

# ...
# Generate summaries for currently loaded data
# Note: aggregations are still experimental and have to be activated:
darshan.enable_experimental()
report.summarize()

Installation

To install in most cases the following will work:

pip install darshan

For alternative installation instructions and installation from source refer to <docs/install.rst>

Testing

Targets for various tests are included in the makefile. To run the normal test suite use:

make test

Or to test against different version of Python using Tox:

make test-all

Coverage tests can be performed using:

make coverage

Conformance to PEPs can be tested using flake8 via:

make lint

Documentation

Documentation for the python bindings is generated seperatedly from the darshan-utils C library in the interest of using Sphinx. After installing the developement requirements using pip install -r requirements_dev.txt the documentation can be build using make as follows:

pip install -r requirements_dev.txt
make docs

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

darshan-0.0.5.tar.gz (269.0 kB view hashes)

Uploaded Source

Built Distributions

darshan-0.0.5-py2.py3-none-any.whl (35.6 kB view hashes)

Uploaded Python 2 Python 3

darshan-0.0.5-cp39-cp39-manylinux2010_x86_64.whl (211.8 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.12+ x86-64

darshan-0.0.5-cp39-cp39-manylinux1_x86_64.whl (199.5 kB view hashes)

Uploaded CPython 3.9

darshan-0.0.5-cp39-cp39-manylinux1_i686.whl (194.7 kB view hashes)

Uploaded CPython 3.9

darshan-0.0.5-cp38-cp38-manylinux2010_x86_64.whl (212.3 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.12+ x86-64

darshan-0.0.5-cp38-cp38-manylinux1_x86_64.whl (199.9 kB view hashes)

Uploaded CPython 3.8

darshan-0.0.5-cp38-cp38-manylinux1_i686.whl (195.0 kB view hashes)

Uploaded CPython 3.8

darshan-0.0.5-cp37-cp37m-manylinux2010_x86_64.whl (212.7 kB view hashes)

Uploaded CPython 3.7m manylinux: glibc 2.12+ x86-64

darshan-0.0.5-cp37-cp37m-manylinux1_x86_64.whl (199.4 kB view hashes)

Uploaded CPython 3.7m

darshan-0.0.5-cp37-cp37m-manylinux1_i686.whl (194.5 kB view hashes)

Uploaded CPython 3.7m

darshan-0.0.5-cp36-cp36m-manylinux2010_x86_64.whl (211.8 kB view hashes)

Uploaded CPython 3.6m manylinux: glibc 2.12+ x86-64

darshan-0.0.5-cp36-cp36m-manylinux1_x86_64.whl (199.4 kB view hashes)

Uploaded CPython 3.6m

darshan-0.0.5-cp36-cp36m-manylinux1_i686.whl (194.5 kB view hashes)

Uploaded CPython 3.6m

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page