A compute service that manages a set of multi-core compute hosts and provides access to their resources. More...
#include <BareMetalComputeService.h>
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
-
hostname the name of the host on which the service should be started compute_resources a map of <num_cores, memory> tuples, indexed by hostname, which represents the compute resources available to this service. - use num_cores = ComputeService::ALL_CORES to use all cores available on the host
- use memory = ComputeService::ALL_RAM to use all RAM available on the host
scratch_space_mount_point the compute service's scratch space's mount point ("" means none) property_list a property list ({} means "use all defaults") messagepayload_list a 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
-
hostname the 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_point the compute service's scratch space's mount point ("" means none) property_list a property list ({} means "use all defaults") messagepayload_list a message payload list ({} means "use all defaults")
The documentation for this class was generated from the following files:
- BareMetalComputeService.h
- BareMetalComputeService.cpp