Multi-GPU¶
Source directory:
examples/multi-gpu/
The multi-GPU examples currently cover 2D acoustic FWI on the Marmousi model. Each backend has its own page:
Both examples use data parallelism over shots: each GPU receives a subset of the global shot batch, computes local synthetic data and gradients, then participates in a backend-specific gradient reduction.
Prepare the Marmousi Model Files¶
Both examples read:
examples/models/marmousi/true.npyexamples/models/marmousi/smooth.npy
Generate them before running either multi-GPU example:
python3 examples/models/marmousi/download_marmousi.py --extract
python3 examples/models/marmousi/extract_model_segy.py
python3 examples/models/marmousi/convert_segy_to_npy.py
python3 examples/models/marmousi/prepare_fwi_models.py \
--input examples/models/marmousi/npy/vp_1p25m.npy \
--source-dh 1.25 \
--target-dh 25.0 \
--radii 8,8 \
--passes 3