WRENCH  1.11
Cyberinfrastructure Simulation Workbench
Overview Installation Getting Started WRENCH 101 WRENCH 102
Public Member Functions | List of all members
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 wrench::BareMetalComputeServiceOneShot

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, 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...
 

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,
WRENCH_PROPERTY_COLLECTION_TYPE  property_list = {},
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE  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,
WRENCH_PROPERTY_COLLECTION_TYPE  property_list = {},
WRENCH_MESSAGE_PAYLOADCOLLECTION_TYPE  messagepayload_list = {} 
)

Constructor.

Parameters
hostnamethe name of the host on which the service should be started
compute_hoststhe 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")

Member Function Documentation

◆ 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: