NVIDIA Holoscan SDK v2.4.0
Holoscan v2.4.0

Class FragmentAllocationStrategy

Derived Type

class FragmentAllocationStrategy

Subclassed by holoscan::GreedyFragmentAllocationStrategy

Public Functions

virtual ~FragmentAllocationStrategy() = default
void add_resource_requirement(const SystemResourceRequirement &resource_requirement)

Add resource requirement for a fragment.

Parameters

resource_requirement – The resource requirement for a fragment.

void add_resource_requirement(SystemResourceRequirement &&resource_requirement)

Add resource requirement for a fragment.

Parameters

resource_requirement – The resource requirement for a fragment.

void add_available_resource(const AvailableSystemResource &available_resource)

Add app worker resource.

Parameters

available_resource – The available resource for an app worker.

void add_available_resource(AvailableSystemResource &&available_resource)

Add app worker resource.

Parameters

available_resource – The available resource for an app worker.

virtual void on_add_resource_requirement(const SystemResourceRequirement &resource_requirement) = 0
virtual void on_add_available_resource(const AvailableSystemResource &available_resource) = 0
virtual holoscan::expected<std::unordered_map<std::string, std::string>, std::string> schedule() = 0

Protected Attributes

std::unordered_map<std::string, SystemResourceRequirement> resource_requirements_

System resource requirement for a fragment (fragment name, resource requirement)

std::unordered_map<std::string, AvailableSystemResource> available_resources_

Available system resources (app worker name as server ip/port, available resource)

Previous Class Fragment
Next Class FragmentScheduler
© Copyright 2022-2024, NVIDIA. Last updated on Oct 1, 2024.