MPI Distributed Reconstruction¶
forge supports distributed-memory parallel reconstruction via MPI. Build with
-DMPISupport=ON to produce MPI-enabled executables (forgeSenseMPI,
forgePcSenseMPI, forgePcSenseMPI_TS).
Building with MPI¶
cmake -B build \
-DCMAKE_CXX_COMPILER=nvc++ \
-DOPENACC_GPU=ON \
-DMPISupport=ON
cmake --build build -j$(nproc)
Running¶
mpirun -np 4 forgeSenseMPI \
--device auto \
--no-tui \
-i data.h5 \
-o output/ \
-F NUFFT \
-I minmax \
-t 6
Options¶
| Flag | Description |
|---|---|
--device auto |
Assigns GPU rank % num_gpus to each MPI process |
--device N |
Explicitly assign GPU N to this process |
--mpi-log-all |
Enable log output from all ranks (default: rank 0 only) |
--no-tui |
Required for MPI — disables forgeview auto-spawn |