WRENCH
1.10
Cyberinfrastructure Simulation Workbench
|
Overview | Installation | Getting Started | WRENCH 101 | WRENCH 102 |
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. | |
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.
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.
hostname | the name of the host on which the service should be started |
compute_resources | a map of <num_cores, memory_manager_service> tuples, indexed by hostname, which represents the compute resources available to this service.
|
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") |
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.
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") |