The checkout quickstart runner creates small deterministic inputs locally and exercises the science components. Use it to smoke-test the environment and explore the artifact formats. Scientific benchmarks use representative data and a measurement protocol suited to the workflow.
The default profile prefers GPU backends and falls back to complete CPU paths when CUDA is unavailable. On Linux, install the combined GPU dependencies:
uv sync --locked --extra dev --extra gpu --extra viz
uv run python examples/run_quickstarts.py \
--output-dir /tmp/cuphoton-auto-quickstartFor a deterministic CPU run:
uv sync --locked --extra dev --extra torch --extra viz
uv run python examples/run_quickstarts.py --profile cpu \
--output-dir /tmp/cuphoton-cpu-quickstartTo require CUDA, use the GPU environment from the first example:
uv sync --locked --extra dev --extra gpu --extra viz
uv run python examples/run_quickstarts.py --require-gpu \
--output-dir /tmp/cuphoton-gpu-quickstartUse --output-dir to select the destination. The default is
quickstart-output/:
uv run python examples/run_quickstarts.py \
--profile cpu \
--output-dir /tmp/cuphoton-quickstartThe separate xBeam example creates two HDF5 signals with a seven-sample delay, writes their cross-spectrum and lag correlation, and prints the measured delay:
uv run python examples/xbeam/correlate_series.py /tmp/series-exampleUse a new directory for each run. Add --backend cupy with the io or
gpu extra for CUDA 13 execution. See xBeam for the CLI
and array interfaces.
Pass --component one or more times:
uv run python examples/run_quickstarts.py \
--component xfit \
--output-dir /tmp/xfit-quickstartValid component names are xfit, xpois, xscan, xrep, and xray.
| Component | Synthetic input | Exercised path |
|---|---|---|
| xFit | analytic Gaussian dipole stamps and perturbed parameters | batched nonlinear fit and uncertainty artifacts |
| xPois | two matched 2D source images | kernel fit, matched image, and residual |
| xScan | labeled image stamps and fixed splits | one-epoch training and evaluation smoke |
| xRep | a small FITS image with a valid celestial WCS | reprojection with FITS/WCS output |
| xRay | a deterministic on/off HDF5 pair | trace extraction and linear-prediction analysis |
xDR is not a selectable quickstart component. Its native FITS extension and device-transfer workflow have separate prerequisites; see the xDR guide and the imaging walkthrough.
The output root contains a subdirectory for each selected component and a root
summary.json. The same summary is printed to standard output. It records:
- the requested profile;
- the resolved backend, device, and dtype for each component;
- relevant hardware information;
- input seeds and shapes; and
- paths to the generated component artifacts.
The runner requires a new output directory. Choose a different destination for each run, or remove a previous output directory when its artifacts are no longer needed. Keep quickstart outputs outside version control; regenerate them from the command and recorded seed.
An auto run is successful on CPU or GPU. Use summary.json to confirm the
backend used. A performance or CUDA correctness check should use
--require-gpu, record the GPU and driver, and synchronize device work in the
benchmark harness.