Skip to main content

Installation

User documentation · Next: Tutorial

Warper is installed automatically as part of DevitoPRO, just like recipes. In the Python environment used by your Devito application, check:

python3 -m warper --version
python3 -m warper --help

Compute environment

Tuning requires Linux, Python 3.10+ and the tools for your application’s backend:

Backend Requirements
CPU (C/OpenMP) A working C compiler, with OpenMP support for OpenMP applications.
CUDA An NVIDIA GPU, a working CUDA toolchain and Nsight Compute (ncu).

Keep your application’s usual DEVITO_LANGUAGE, DEVITO_ARCH and DEVITO_PLATFORM settings. For CUDA, DEVITO_DEVICEID selects the visible GPU (default 0); Warper detects its architecture automatically.

Nsight Compute is found on PATH or through NCU; its Python report bindings are discovered automatically. CUDA I/O tracing also needs Nsight Systems (nsys on PATH, or NSYS). CPU tuning needs neither profiler.

Choose persistent storage

export WARPER_SESSION_ROOT="$PWD/warper-results"

Choose a writable directory with space for builds and reports. On a cluster, use persistent storage accessible to your compute jobs. Keep the complete original session for resume; the laptop archive is an inspection copy.

Laptop dashboard

The dashboard needs only Python 3.10+, without Devito or a GPU. From the DevitoPRO repository:

python3 warper-gui/server --sessions-root /path/to/warper-results

Open the printed URL and stop with Ctrl-C. In a Warper source checkout, the equivalent path is gui/server. Remote collection also needs ssh and rsync; follow SSH setup. Server options are in the same reference.

Continue with the tutorial, or try its demonstration without a GPU.

Back to top