Module kmr4py :: Class KMR

Class KMR

source code

KMR context.

Instance Methods
 
__init__(self, comm, info=None)
Makes a KMR context with a given MPI communicator (comm), which is used in succeeding operations.
source code
 
__del__(self) source code
 
free(self)
Dismisses KMR (an alias of dismiss()).
source code
 
dismiss(self)
Dismisses KMR.
source code
 
create_kvs(self, **opts)
Makes a new KVS (an alias of make_kvs()).
source code
 
make_kvs(self, **opts)
Makes a new KVS.
source code
 
reply_to_spawner(self)
Sends a reply message from a spawned process.
source code
 
get_spawner_communicator(self, index)
Obtains a parent communicator of a spawned process.
source code
 
send_kvs_to_spawner(self, kvs)
Sends the KVS from a spawned process to the spawner.
source code
 
set_option(self, k, v)
Sets KMR option, taking both arguments by strings.
source code
Instance Variables
  emptykvs
self.emptykvs holds an empty KVS needed by map_once, map_on_rank_zero, read_files_reassemble, and read_file_by_segments.
  nprocs
self.nprocs holds an nprocs of MPI.
  rank
self.rank holds a rank of MPI.
Method Details

__init__(self, comm, info=None)
(Constructor)

source code 

Makes a KMR context with a given MPI communicator (comm), which is used in succeeding operations. Info specifies its options by MPI_Info. Arguments of comm/info are passed as a long integer (assuming either an integer (int) or a pointer in C). It also accepts a string "dummy" or "world" as a comm argument.