ppmd.mpi module¶
Auto doc module
-
class
ppmd.mpi.
AllocMem
(shape, dtype)¶ Bases:
object
AllocMem behaves similarly to np.zeros except the memory is allocated with MPI.Alloc_mem.
-
array
¶ Numpy array formed from allocated memory.
-
-
class
ppmd.mpi.
AllocMem
(shape, dtype)¶ Bases:
object
AllocMem behaves similarly to np.zeros except the memory is allocated with MPI.Alloc_mem.
-
array
¶ Numpy array formed from allocated memory.
-
-
ppmd.mpi.
abort
(err='-', err_code=0)¶
-
ppmd.mpi.
all_reduce
(array)¶
-
ppmd.mpi.
cartcomm_dims_xyz
(comm)¶ Return the current dimensions.
-
ppmd.mpi.
cartcomm_get_move_send_recv_ranks
(comm)¶
-
ppmd.mpi.
cartcomm_periods_xyz
(comm)¶ Return the current periods.
-
ppmd.mpi.
cartcomm_shift
(comm, offset=(0, 0, 0), ignore_periods=False)¶ Returns rank of process found at a given offset, will return -1 if no process exists. :arg tuple offset: 3-tuple offset from current process.
-
ppmd.mpi.
cartcomm_top_xyz
(comm)¶ Return the current topology.
-
ppmd.mpi.
check
(statement, message)¶
-
ppmd.mpi.
check_pythonhashseed
()¶
-
ppmd.mpi.
create_cartcomm
(comm, dims, periods, reorder_flag)¶ Create an mpi cart on the current comm
-
ppmd.mpi.
decomposition
¶ alias of
ppmd.mpi.Enum
-
ppmd.mpi.
enum
(**enums)¶
-
ppmd.mpi.
print_str_on_0
(comm, *args)¶ Method to print on rank 0 to stdout