Module ppl::core::orchestrator
source · Expand description
Orchestrator of the framework
Structs§
- The orchestrator is the main structure of the library. Is composed by a list of partitions, each partition, if pinning is enabled, is a core. The orchestrator is responsible to create the partitions and to distribute the jobs to the partitions. The orchestractor is global, implemented as a singleton. The main idea is to have a central point that distribuite evenly the jobs to the partitions, exploiting the CPU topology of the system.
- Struct that represent a partition. It contains the list of workers (executors) and the number of available workers. A partition, if pinning is enabled, will be pinned to a specific core. Basically a partition represent a core, the executors are the threads pinned on that core.
Enums§
- Enum representing a Job in the orchestrator.
Functions§
- Get or initialize the global orchestrator. If the global orchestrator is not initialized, a new one is created with the default configuration.