|
def | __del__ (self) |
|
def | __init__ (self, comm, info=None) |
| attributes: self._ckmr, self.nprocs, self.rank, self.emptykvs, self._dismissed. More...
|
|
def | create_kvs (self, opts) |
|
def | dismiss (self) |
|
def | free (self) |
|
def | get_spawner_communicator (self, index) |
|
def | make_kvs (self, opts) |
|
def | reply_to_spawner (self) |
|
def | send_kvs_to_spawner (self, kvs) |
|
def | set_option (self, k, v) |
|
KMR context.
Definition at line 629 of file kmr4py.py.
◆ __init__()
def kmr4py.KMR.__init__ |
( |
|
self, |
|
|
|
comm, |
|
|
|
info = None |
|
) |
| |
attributes: self._ckmr, self.nprocs, self.rank, self.emptykvs, self._dismissed.
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 an communicator instance of mpi4py.MPI.Comm,
a string "dummy" or "world" as a comm argument.
Definition at line 635 of file kmr4py.py.
◆ free()
def kmr4py.KMR.free |
( |
|
self | ) |
|
Dismisses KMR (an alias of dismiss()).
Definition at line 711 of file kmr4py.py.
◆ dismiss()
def kmr4py.KMR.dismiss |
( |
|
self | ) |
|
◆ create_kvs()
def kmr4py.KMR.create_kvs |
( |
|
self, |
|
|
|
opts |
|
) |
| |
Makes a new KVS (an alias of make_kvs()).
Definition at line 728 of file kmr4py.py.
◆ make_kvs()
def kmr4py.KMR.make_kvs |
( |
|
self, |
|
|
|
opts |
|
) |
| |
◆ reply_to_spawner()
def kmr4py.KMR.reply_to_spawner |
( |
|
self | ) |
|
Sends a reply message from a spawned process.
Definition at line 739 of file kmr4py.py.
◆ get_spawner_communicator()
def kmr4py.KMR.get_spawner_communicator |
( |
|
self, |
|
|
|
index |
|
) |
| |
Obtains a parent communicator of a spawned process. C version
returns a reference, but this returns an entity
Definition at line 745 of file kmr4py.py.
◆ send_kvs_to_spawner()
def kmr4py.KMR.send_kvs_to_spawner |
( |
|
self, |
|
|
|
kvs |
|
) |
| |
Sends the KVS from a spawned process to the spawner.
Definition at line 752 of file kmr4py.py.
◆ set_option()
def kmr4py.KMR.set_option |
( |
|
self, |
|
|
|
k, |
|
|
|
v |
|
) |
| |
Sets KMR option, taking both arguments by strings.
Definition at line 797 of file kmr4py.py.
The documentation for this class was generated from the following file: