pygsti.tools.mpitools.sum_across_procs#
- sum_across_procs(x, comm)#
Sum a value across all processors in comm.
- Parameters:
x (object) – Local value - the current processor’s contribution to the sum.
comm (mpi4py.MPI.Comm) – MPI communicator
- Returns:
Of the same type as the x objects that were summed.
- Return type:
object