triqs.utility.mpi_nompi.all_reduce
- triqs.utility.mpi_nompi.all_reduce(x, comm=None, op=<function <lambda>>)[source]
Serial reduction: return
xunchanged.Operation
opis ignored, so reductions such asMINLOCorMAXLOCthat produce non-scalar values may give different results than their parallel counterparts; callers must therefore not rely on the reduced value being computed in serial.- Parameters:
- xobject
Local contribution. Returned unchanged.
- commobject, optional
Ignored; accepted for API compatibility. Default
world(Nonein serial).- opcallable, optional
Reduction operation. Ignored in this stub.
- Returns:
- object
The input
x, returned as-is.
Notes
For backwards compatibility with an older signature, when
xisNonethe function prints a warning and returnscommto mimic the legacy call.