RADICAL Workflow Mini-Apps¶
wfMiniAPI is a library for building workflow mini-apps: small, self-contained
versions of scientific workflows that keep the shape and the load of the real thing
without its code, data or deployment. Its MiniApp records every run of a mini-app
and checks that the record is complete.
What wfMiniAPI gives you¶
- Kernels that stand in for an application's work inside tasks: computation, file I/O, MPI communication and host/GPU data movement, on CPU or GPU. See Kernels.
MiniApp, which attaches to a run, records when it started and how it ended, and afterwards verifies that the run's telemetry reached its file, in a short report. See Use MiniApp and Telemetry.- Example mini-apps of common workflow patterns: pipelines, inverse design, digital replicas, adaptive training and MPI tasks, and a campaign of AI agents run with many engines. See Examples.
A mini-app run¶
flowchart LR
subgraph yours["Your mini-app"]
S["Your script"]
W["Your workflow<br/>(task functions)"]
end
subgraph wf["wfMiniAPI"]
M["MiniApp"]
K["Kernels"]
end
subgraph af["AsyncFlow"]
E["Engine"]
end
subgraph rh["RHAPSODY"]
B["Backend<br/>(runs task bodies)"]
T["Telemetry manager"]
end
C[("checkpoint")]
R[("report")]
S -- "builds, runs, shuts down" --> E
S -- "enters, then verify()" --> M
W -- "tasks" --> E
E -- "submits tasks" --> B
B -- "task bodies call" --> K
E -- "task events" --> T
M -- "RunStarted, RunEnded" --> T
T -- "writes" --> C
M -- "reads" --> C
M -- "writes" --> R
Your script builds the engine and the telemetry, runs your workflow, and shuts them
down. MiniApp sits beside the run: it never runs or stops anything, it only records
the run and checks the result.
Built on AsyncFlow and RHAPSODY
The workflow engine is AsyncFlow: it runs your tasks in dependency order. The execution backends and the telemetry come from RHAPSODY. These docs cover only what wfMiniAPI adds, and link to theirs for the rest.
Where to go next¶
| To | Read |
|---|---|
| install wfMiniAPI and run a first mini-app on a laptop | Getting started |
| turn an application into a mini-app | Write the workflow |
attach MiniApp to your script |
Use MiniApp |
| understand and read what a run records | Telemetry |
| run on an HPC allocation | Run on HPC |
| fix an error or an incomplete report | Troubleshooting |
The AI-steered simulation mini-app lives in its own repository, DeepDriveSim.