mpi

Bindings for basic::mpi namespace

class pyrosetta.rosetta.basic.mpi.DbMoverMessageListener

Bases: MessageListener

assign(self: pyrosetta.rosetta.basic.mpi.DbMoverMessageListener, : pyrosetta.rosetta.basic.mpi.DbMoverMessageListener) pyrosetta.rosetta.basic.mpi.DbMoverMessageListener

C++: basic::mpi::DbMoverMessageListener::operator=(const class basic::mpi::DbMoverMessageListener &) –> class basic::mpi::DbMoverMessageListener &

deserialize_data(self: pyrosetta.rosetta.basic.mpi.DbMoverMessageListener, data: str) None

C++: basic::mpi::DbMoverMessageListener::deserialize_data(const std::string &) –> void

receive(self: pyrosetta.rosetta.basic.mpi.DbMoverMessageListener, data: str) None

receive the protocol id and batch id from the slave

C++: basic::mpi::DbMoverMessageListener::receive(const std::string &) –> void

request(self: pyrosetta.rosetta.basic.mpi.DbMoverMessageListener, identifier: str, return_data: str) bool

check to see if we have a protocol id and batch id. If we have them then tell them to the slave. If we don’t have them then tell the slave to make them

C++: basic::mpi::DbMoverMessageListener::request(const std::string &, std::string &) –> bool

class pyrosetta.rosetta.basic.mpi.MessageListener

Bases: pybind11_object

assign(self: pyrosetta.rosetta.basic.mpi.MessageListener, : pyrosetta.rosetta.basic.mpi.MessageListener) pyrosetta.rosetta.basic.mpi.MessageListener

C++: basic::mpi::MessageListener::operator=(const class basic::mpi::MessageListener &) –> class basic::mpi::MessageListener &

receive(self: pyrosetta.rosetta.basic.mpi.MessageListener, data: str) None

C++: basic::mpi::MessageListener::receive(const std::string &) –> void

request(self: pyrosetta.rosetta.basic.mpi.MessageListener, identifier: str, return_data: str) bool

C++: basic::mpi::MessageListener::request(const std::string &, std::string &) –> bool

class pyrosetta.rosetta.basic.mpi.MessageListenerFactory

Bases: SingletonBase_basic_mpi_MessageListenerFactory_t

static get_instance() basic::mpi::MessageListenerFactory

C++: utility::SingletonBase<basic::mpi::MessageListenerFactory>::get_instance() –> class basic::mpi::MessageListenerFactory *

get_listener(self: pyrosetta.rosetta.basic.mpi.MessageListenerFactory, tag: pyrosetta.rosetta.basic.mpi.listener_tags) pyrosetta.rosetta.basic.mpi.MessageListener

C++: basic::mpi::MessageListenerFactory::get_listener(enum basic::mpi::listener_tags) –> class std::shared_ptr<class basic::mpi::MessageListener>

pyrosetta.rosetta.basic.mpi.listener_tag_to_name(tag: pyrosetta.rosetta.basic.mpi.listener_tags) str

C++: basic::mpi::listener_tag_to_name(enum basic::mpi::listener_tags) –> std::string

class pyrosetta.rosetta.basic.mpi.listener_tags

Bases: pybind11_object

MessageListener id tags note: please add string conversion to util.cc/hh

Members:

DATABASE_PROTOCOL_AND_BATCH_ID_TAG

DATABASE_PROTOCOL_AND_BATCH_ID_TAG = <listener_tags.DATABASE_PROTOCOL_AND_BATCH_ID_TAG: 42>
property name
property value
class pyrosetta.rosetta.basic.mpi.mpi_tags

Bases: pybind11_object

Members:

NEW_JOB_ID_TAG

BAD_INPUT_TAG

JOB_SUCCESS_TAG

JOB_FAILURE_TAG

REQUEST_MESSAGE_TAG

RECEIVE_MESSAGE_TAG

JOB_GO_TAG

BAD_INPUT_TAG = <mpi_tags.BAD_INPUT_TAG: 20>
JOB_FAILURE_TAG = <mpi_tags.JOB_FAILURE_TAG: 40>
JOB_GO_TAG = <mpi_tags.JOB_GO_TAG: 70>
JOB_SUCCESS_TAG = <mpi_tags.JOB_SUCCESS_TAG: 30>
NEW_JOB_ID_TAG = <mpi_tags.NEW_JOB_ID_TAG: 10>
RECEIVE_MESSAGE_TAG = <mpi_tags.RECEIVE_MESSAGE_TAG: 60>
REQUEST_MESSAGE_TAG = <mpi_tags.REQUEST_MESSAGE_TAG: 50>
property name
property value
pyrosetta.rosetta.basic.mpi.name_to_listener_tag(listener_tag_name: str) pyrosetta.rosetta.basic.mpi.listener_tags

C++: basic::mpi::name_to_listener_tag(const std::string &) –> enum basic::mpi::listener_tags

pyrosetta.rosetta.basic.mpi.request_data_from_head_node(listener_tag: pyrosetta.rosetta.basic.mpi.listener_tags, data: str) str
send mpi message to head node in order to request data. The

data sent back will be a string formatted by the listener specified in the listener_tags enum of MessageListenerFactory

C++: basic::mpi::request_data_from_head_node(enum basic::mpi::listener_tags, const std::string &) –> std::string

pyrosetta.rosetta.basic.mpi.send_data_to_head_node(data: str) None

C++: basic::mpi::send_data_to_head_node(const std::string &) –> void