vt::vrt::collection::balance::WeightedMessages struct

Base classes

class ComposedModel
Utility class to support implementation of composable load modeling components.

Constructors, destructors, conversion operators

WeightedMessages(std::shared_ptr<balance::LoadModel> base, LoadType in_per_msg_weight = 0.0, LoadType in_per_byte_weight = 1.0) explicit
Constructor.

Public functions

void setLoads(std::unordered_map<PhaseType, LoadMapType> const* proc_load, std::unordered_map<PhaseType, CommMapType> const* proc_comm, std::unordered_map<PhaseType, DataMapType> const* user_data) override
Initialize the model instance with pointers to the measured load data.
auto getModeledComm(ElementIDStruct object, PhaseOffset when) const -> LoadType override

Function documentation

vt::vrt::collection::balance::WeightedMessages::WeightedMessages(std::shared_ptr<balance::LoadModel> base, LoadType in_per_msg_weight = 0.0, LoadType in_per_byte_weight = 1.0) explicit

Constructor.

Parameters
base in the underlying source of object work loads
in_per_msg_weight in weight to add per message received
in_per_byte_weight in weight to add per byte received

void vt::vrt::collection::balance::WeightedMessages::setLoads(std::unordered_map<PhaseType, LoadMapType> const* proc_load, std::unordered_map<PhaseType, CommMapType> const* proc_comm, std::unordered_map<PhaseType, DataMapType> const* user_data) override

Initialize the model instance with pointers to the measured load data.

This would typically be called by LBManager when the user has passed a new model instance for a collection