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
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-chorestdout/stderr, pickle and JSON result artifacts; optional web dashboard
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.
Development install
Quick 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
- Flux documentation
- Flux Python guide
- Slurm documentation (common front-end to batch allocations)
- LAMMPS manual (often used alongside ensemble MD workflows)
Authors
Soumendu Bagchi, Kaleb Duchesneau (see pyproject.toml for contact details).
License
BSD 3-Clause. See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file matensemble-0.3.0.tar.gz.
File metadata
- Download URL: matensemble-0.3.0.tar.gz
- Upload date:
- Size: 213.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bfde452bc159519e8ec1f6f100ef24ba5843b89cf719fb1266e28c609424bc80
|
|
| MD5 |
de15edfca990ff54a779f883834f5bf0
|
|
| BLAKE2b-256 |
c38772c6bf57a29eaf8d07d9864e8ec375a0acd6fe11b1baea676d32312785ee
|
File details
Details for the file matensemble-0.3.0-py3-none-any.whl.
File metadata
- Download URL: matensemble-0.3.0-py3-none-any.whl
- Upload date:
- Size: 227.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90a31b4d546de230799528f688e47b638e44ccb40c4a5e780f9079474a239b03
|
|
| MD5 |
5a43f47bbcd1488b54a65133c91d545f
|
|
| BLAKE2b-256 |
3e0f4b1d34b477275b2518b8952d29dabbe1217591e1495c4082a731ba0e4219
|