pytmosph3r.mpi

Module for wrapping MPI functions from TauREx 3 (future use).

Module Contents

comm
nprocs()[source]

Gets number of processes or returns 1 if mpi is not installed

Returns

Rank of process or 1 if MPI is not installed

Return type

int

allgather(value)[source]
broadcast(array, rank=0)[source]
get_rank()[source]

Gets rank or returns 0 if mpi is not installed

Returns

Rank of process or 0 if MPI is not installed

Return type

int

barrier()[source]

Gets rank or returns 0 if mpi is not installed

Returns

Rank of process or 0 if MPI is not installed

Return type

int

only_master_rank(f)[source]

A decorator to ensure only the master MPI rank can run it

info(msg)[source]