pygsti.tools.mpitools#
Functions for working with MPI processor distributions
Functions
|
Build and return the text of a SLURM batch script. |
|
Returns the divisor of a that is closest to b. |
|
Return the number of BLAS threads that should be assigned to each MPI rank on the current node, assuming num_ranks in total. |
|
Prepares for one or multiple distributed dot products given the dimensions to be dotted. |
|
Partition an array of indices (any type) evenly among comm's processors. |
|
Partition an array of "indices" evenly among a given number of "processors" |
|
Partition a continuous slice evenly among comm's processors. |
|
Gathers data within a numpy array, ar_to_fill, according to given indices. |
|
Gathers data within a numpy array, ar_to_fill, according to given slices. |
|
Gathers data within a numpy array, ar_to_fill, according to given slices. |
Get a comm object |
|
|
Performs a distributed dot product, dot(a,b). |
|
Apply a function, f to every element of a list, l in parallel, using MPI. |
|
Find the number of groups to divide nprocs processors into to tackle number_of_tasks tasks. |
|
Return the resolved absolute path to an MPI launcher executable. |
|
Divides up range(start,start+n) into num_slices slices. |
|
Divides up slc into num_slices slices. |
|
Sum a value across all processors in comm. |
|
Sums arrays across all "owner" processors. |
|
Serialize a protocol run into a self-contained directory for MPI workers. |