CLI reference
User documentation · Tutorial · GUI reference
Command forms
python3 -m warper OPERATOR [options] -- APPLICATION [arguments]
python3 -m warper --resume SESSION_ID [options]
python3 -m warper --help
OPERATOR is the Devito Operator name. Everything after -- is the application command, such as app.py, python3 app.py or python3 -m package.module. Use your application’s existing Devito environment.
General options
| Option | Purpose |
|---|---|
--optimize-for DURATION |
Kernel-tuning budget, such as 30m or 2h; default 15m. On tuning resume, adds this time to the budget. Scaling completes its matrix. |
--scenario NAME |
Group related runs in the dashboard. |
--seed EXPR |
Start from a Devito option expression: ('advanced', {...}). |
--resume SESSION_ID |
Continue a saved session. Completed sessions only validate saved results. |
--operator-occurrence N |
Select the Nth matching Operator invocation; default 1. |
--abort-on-numerical-discrepancy |
Stop at the first numerical failure; default: reject that trial and continue. |
--version, --help |
Print the version or complete command help. |
The budget includes compilation, measurement and profiling. Final validation can finish afterward.
CPU tuning options
| Option | Purpose and default |
|---|---|
--trial-time-target SECONDS |
Target native runtime per trial; default 1 second. |
--timesteps-per-run N |
Use a fixed timestep count per trial instead. |
--blk-size-min N |
Minimum block size; default 2. |
--blk-size-max N |
Maximum block size; default 64. |
--blk-size-step N |
Block-size increment; default 2. |
--blk-shape-probe X,Y |
Initial block probe; default 16,16. |
Choose either --trial-time-target or --timesteps-per-run. See CPU tuning for examples.
CUDA tuning options
| Option | Purpose and default |
|---|---|
--max-workers N |
Parallel construction workers; default 3. More workers need more CPU capacity and host memory. |
Fresh unseeded V100/Volta and Turing runs divide the search budget among three independently tuned gpu-vect modes: minimal, soft and True. Each mode starts with a checked baseline and a CTA/eligible-WDR screen without prefetch, then finishes its applicable tuning stages. The final native comparison selects one complete Operator. GPU execution remains serial. Explicit seeds fix their grouping mode, and older sessions keep their recorded search on resume.
I/O modes
--io-analysis MODE controls the separate CUDA I/O stage:
| Mode | Behavior |
|---|---|
auto (default) |
Detect supported saving/compression, tune compute first, then restore I/O and analyze it. |
on |
Request analysis even when custom I/O is not detected automatically. |
off |
Keep saving during compute tuning and skip separate I/O analysis. |
only |
Analyze an existing champion without repeating compute tuning. |
For an existing session:
python3 -m warper --resume SESSION_ID --io-analysis onlySee the I/O guide for application settings and results.
CPU tuning automatically uses LIKWID for separate diagnostic evidence when available; no profiler selection or counter-mode option is required.
MPI commands
Start a strong-scaling study from a completed tuning session. Kernel settings and the global problem size stay fixed throughout the study.
# Detect the baseline backend and use the node's allocated NUMA domains or GPUs.
python3 -m warper --strong-scale-from SESSION_ID --single-node
# Discover each host, then scale through the supplied allocation.
python3 -m warper --strong-scale-from SESSION_ID --hostfile hosts
# Resume one of the campaigns attached to the same baseline.
python3 -m warper --resume SESSION_ID --scaling-scope multi-nodeA one-host file creates single-node scaling; multiple distinct hosts create multi-node scaling. Counts double through the detected limit, including its endpoint. Scaling completes the matrix without --optimize-for. Add a command after -- to use a different fixed application problem.
Warper measures legal decompositions and manages placement within the supplied allocation. See MPI execution and scaling or CPU NUMA scaling for setup and results.
Environment
| Variable | Purpose |
|---|---|
WARPER_SESSION_ROOT |
Directory for saved sessions and resume lookup. |
WARPER_PLANNER |
codex (default) for optional AI planning, or off for deterministic tuning only. |