Skip to main content

An adaptive and highly asynchronous ensemble simulation workflow manager MatEnsemble (https://github.com/Q-CAD/MatEnsemble) built jointly on top of the hierarchical graph based scheduler FLUX and concurrent-futures infrastructure of python

Project description

PyPI version Documentation Python License

MatEnsemble

MatEnsemble

MatEnsemble is a Python library for high-throughput workflows on HPC systems. You define a directed acyclic graph (DAG) of chores—Python callables or executable commands—and MatEnsemble submits work through Flux, tracks completions, adapts scheduling to free CPUs and GPUs, and writes structured logs and per-chore output directories.

An optional in-tree dynopro stack supports streaming dynamics and on-the-fly analysis for advanced materials simulation workflows.

Features

  • DAG-based workflows with dependencies via deferred return values (OutputReference)
  • Adaptive scheduling that back-fills the allocation as chores finish (with a non-adaptive available)
  • Two chore types: Python chores (remotely unpickled and executed by matensemble.runtime_worker) and argv-style executable chores
  • Resource requests: tasks, cores per task, GPUs per task, optional MPI (pmi2) via Flux
  • Observability: status.json, matensemble_workflow.log, per-chore stdout / stderr, pickle and JSON result artifacts; optional web dashboard

Adaptive task management

On-the-fly dynamics and analysis

Installation

OCI images are published to GitHub Container Registry

ghcr.io/freddude2004/matensemble:baseline-vX.Y.Z

See the container packages and the Quick start in the docs for Apptainer/Singularity and site-specific notes.

Anaconda

You can build a Conda environment with MatEnsemble and dependencies installed using the environment.yaml file.

conda env create -f environment.yaml

Example

from matensemble.pipeline import Pipeline

pipe = Pipeline()
pipe.exec(command=["/bin/echo", "hello from MatEnsemble"])
pipe.submit()

For Python chores, dependency graphs, and the required split between an importable chore module and a runner script, see the Tutorials.

Examples in the repository

Illustrative workflows live under example_workflows/.

Requirements and runtime

  • A Flux allocation (or equivalent) on the machine where you call Pipeline.submit()
  • For MPI Python or executable chores: a coherent MPI/Flux setup (e.g. PMI2) as expected by your site
  • Optional: SSH port forwarding if you enable the dashboard on a compute node (see the architecture guide in the docs)

Related links

Authors

Soumendu Bagchi, Kaleb Duchesneau (see pyproject.toml for contact details).

License

BSD 3-Clause. See LICENSE.

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

matensemble-0.3.11.tar.gz (214.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

matensemble-0.3.11-py3-none-any.whl (228.3 kB view details)

Uploaded Python 3

File details

Details for the file matensemble-0.3.11.tar.gz.

File metadata

  • Download URL: matensemble-0.3.11.tar.gz
  • Upload date:
  • Size: 214.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for matensemble-0.3.11.tar.gz
Algorithm Hash digest
SHA256 4d0e10a3fed1c3da32cfe9ceec1aa1f7dd5fd0e220d6768bd982714e52f3345a
MD5 32d95a5e20a01fab1374239dbcfa88ee
BLAKE2b-256 3f466f33a69742f2cdeeacd5e53fe480179015d63a79cc753d9da74b58a1c0b8

See more details on using hashes here.

File details

Details for the file matensemble-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: matensemble-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 228.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.19 {"installer":{"name":"uv","version":"0.11.19","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for matensemble-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 cacdbec9f7c7772aeb1e5cf1d6d206701c9c366e26c2d5290b4fd07163bfc29a
MD5 c540d6759bfbf0a9d54a283d0bf9869e
BLAKE2b-256 c32d955f33d98c98f5fe5e26c3f910418c89a050e31cacb69bcbdacfa8ad40d8

See more details on using hashes here.

Supported by

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