MUQ  0.4.3
muq::SamplingAlgorithms::WorkerClient Class Reference

High-level communication wrapper for controlling worker processes. More...

#include <ParallelMIMCMCWorker.h>

Detailed Description

High-level communication wrapper for controlling worker processes.

This takes care about assigning workers to a worker group for a specific model index/level, sending commands to them and finally unassigning them again.

Definition at line 80 of file ParallelMIMCMCWorker.h.

Public Member Functions

 WorkerClient (std::shared_ptr< parcer::Communicator > comm, std::shared_ptr< PhonebookClient > phonebookClient, int RootRank)
 
void assignGroup (std::vector< int > subgroup, std::shared_ptr< MultiIndex > modelindex)
 
std::vector< int > UnassignGroup (std::shared_ptr< MultiIndex > modelIndex, int groupRootRank)
 
void UnassignAll ()
 
void Finalize ()
 

Constructor & Destructor Documentation

◆ WorkerClient()

WorkerClient::WorkerClient ( std::shared_ptr< parcer::Communicator >  comm,
std::shared_ptr< PhonebookClient phonebookClient,
int  RootRank 
)

Definition at line 139 of file ParallelMIMCMCWorker.cpp.

Member Function Documentation

◆ assignGroup()

void WorkerClient::assignGroup ( std::vector< int >  subgroup,
std::shared_ptr< MultiIndex >  modelindex 
)

◆ Finalize()

◆ UnassignAll()

void WorkerClient::UnassignAll ( )

◆ UnassignGroup()

std::vector< int > WorkerClient::UnassignGroup ( std::shared_ptr< MultiIndex >  modelIndex,
int  groupRootRank 
)

Member Data Documentation

◆ comm

std::shared_ptr<parcer::Communicator> muq::SamplingAlgorithms::WorkerClient::comm
private

Definition at line 95 of file ParallelMIMCMCWorker.h.

Referenced by assignGroup(), Finalize(), and UnassignGroup().

◆ phonebookClient

std::shared_ptr<PhonebookClient> muq::SamplingAlgorithms::WorkerClient::phonebookClient
private

Definition at line 96 of file ParallelMIMCMCWorker.h.

Referenced by assignGroup(), UnassignAll(), and UnassignGroup().


The documentation for this class was generated from the following files: