A compute service that manages a set of multi-core compute hosts and provides access to their resources.
More...
#include <BareMetalComputeService.h>
|
| BareMetalComputeService (const std::string &hostname, const std::map< std::string, std::tuple< unsigned long, double >> compute_resources, std::string scratch_space_mount_point, WRENCH_PROPERTY_COLLECTION_TYPE property_list={}, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list={}) |
| Constructor. More...
|
|
| BareMetalComputeService (const std::string &hostname, const std::vector< std::string > compute_hosts, std::string scratch_space_mount_point, WRENCH_PROPERTY_COLLECTION_TYPE property_list={}, WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE messagepayload_list={}) |
| Constructor. More...
|
|
virtual bool | supportsCompoundJobs () override |
| Returns true if the service supports compound jobs. More...
|
|
virtual bool | supportsPilotJobs () override |
| Returns true if the service supports pilot jobs. More...
|
|
virtual bool | supportsStandardJobs () override |
| Returns true if the service supports standard jobs. More...
|
|
|
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.
◆ 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, |
|
|
WRENCH_PROPERTY_COLLECTION_TYPE |
property_list = {} , |
|
|
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE |
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_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") |
◆ BareMetalComputeService() [2/2]
wrench::BareMetalComputeService::BareMetalComputeService |
( |
const std::string & |
hostname, |
|
|
const std::vector< std::string > |
compute_hosts, |
|
|
std::string |
scratch_space_mount_point, |
|
|
WRENCH_PROPERTY_COLLECTION_TYPE |
property_list = {} , |
|
|
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE |
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") |
◆ supportsCompoundJobs()
bool wrench::BareMetalComputeService::supportsCompoundJobs |
( |
| ) |
|
|
overridevirtual |
Returns true if the service supports compound jobs.
- Returns
- true or false
◆ supportsPilotJobs()
bool wrench::BareMetalComputeService::supportsPilotJobs |
( |
| ) |
|
|
overridevirtual |
Returns true if the service supports pilot jobs.
- Returns
- true or false
◆ supportsStandardJobs()
bool wrench::BareMetalComputeService::supportsStandardJobs |
( |
| ) |
|
|
overridevirtual |
Returns true if the service supports standard jobs.
- Returns
- true or false
The documentation for this class was generated from the following files: