wrench::BareMetalComputeService Class Reference

A compute service that manages a set of multi-core compute hosts and provides access to their resources. More...

#include <BareMetalComputeService.h>

Inheritance diagram for wrench::BareMetalComputeService:
wrench::ComputeService wrench::Service

Public Member Functions

 BareMetalComputeService (const std::string &hostname, const std::map< std::string, std::tuple< unsigned long, double >> compute_resources, std::string scratch_space_mount_point, std::map< std::string, std::string > property_list={}, std::map< std::string, double > messagepayload_list={})
 Constructor. More...
 
 BareMetalComputeService (const std::string &hostname, const std::vector< std::string > compute_hosts, std::string scratch_space_mount_point, std::map< std::string, std::string > property_list={}, std::map< std::string, double > messagepayload_list={})
 Constructor. More...
 

Additional Inherited Members

- Static Public Attributes inherited from wrench::ComputeService
static constexpr unsigned long ALL_CORES = ULONG_MAX
 A convenient constant to mean "use all cores of a physical host" whenever a number of cores is needed when instantiating compute services.
 
static constexpr double ALL_RAM = DBL_MAX
 A convenient constant to mean "use all ram of a physical host" whenever a ram capacity is needed when instantiating compute services.
 

Detailed Description

A compute service that manages a set of multi-core compute hosts and provides access to their resources.

One can think of this as a simple service that allows the user to run tasks and to specify for each task on which host it should run and with how many cores. If no host is specified, the service will pick the least loaded host. If no number of cores is specified, the service will use as many cores as possible. The service will make sure that the RAM capacity of a host is not exceeded by possibly delaying task executions until enough RAM is available.

Constructor & Destructor Documentation

◆ BareMetalComputeService() [1/2]

wrench::BareMetalComputeService::BareMetalComputeService ( const std::string &  hostname,
const std::map< std::string, std::tuple< unsigned long, double >>  compute_resources,
std::string  scratch_space_mount_point,
std::map< std::string, std::string >  property_list = {},
std::map< std::string, double >  messagepayload_list = {} 
)

Constructor.

Parameters
hostnamethe name of the host on which the service should be started
compute_resourcesa map of <num_cores, memory_manager_service> tuples, indexed by hostname, which represents the compute resources available to this service.
scratch_space_mount_pointthe compute service's scratch space's mount point ("" means none)
property_lista property list ({} means "use all defaults")
messagepayload_lista message payload list ({} means "use all defaults")

◆ BareMetalComputeService() [2/2]

wrench::BareMetalComputeService::BareMetalComputeService ( const std::string &  hostname,
const std::vector< std::string >  compute_hosts,
std::string  scratch_space_mount_point,
std::map< std::string, std::string >  property_list = {},
std::map< std::string, double >  messagepayload_list = {} 
)

Constructor.

Parameters
hostnamethe name of the host on which the service should be started
compute_hosts,:the names of the hosts available as compute resources (the service will use all the cores and all the RAM of each host)
scratch_space_mount_pointthe compute service's scratch space's mount point ("" means none)
property_lista property list ({} means "use all defaults")
messagepayload_lista message payload list ({} means "use all defaults")

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