![]() |
Project
|
#include <SimpleResourceManager.h>
Inherits o2::framework::ResourceManager.
Public Member Functions | |
SimpleResourceManager (std::vector< ComputingResource > intialResources) | |
initialResources the precomputed list of available resources | |
std::vector< ComputingOffer > | getAvailableOffers () override |
Get the available resources for a device to run on. | |
void | notifyAcceptedOffer (ComputingOffer const &accepted) override |
A resource manager with infinite resources at its disposal. This is a trivial implementation which can be used to do laptop deploys.
Definition at line 22 of file SimpleResourceManager.h.
|
inline |
initialResources the precomputed list of available resources
Definition at line 26 of file SimpleResourceManager.h.
|
overridevirtual |
Get the available resources for a device to run on.
The simplest implementation of this allocates mMaxPorts ports starting from the mInitialPort. For now we still consider everything running on a single machine.
Implements o2::framework::ResourceManager.
Definition at line 23 of file SimpleResourceManager.cxx.
|
overridevirtual |
Notify that we have accepted a given resource and that it should not be reoffered
Implements o2::framework::ResourceManager.
Definition at line 48 of file SimpleResourceManager.cxx.