24.02
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_CPPSCHEDULER_H
25 #define ARM_COMPUTE_CPPSCHEDULER_H
69 void run_workloads(std::vector<Workload> &workloads)
override;
73 std::unique_ptr<Impl> _impl;
static CPPScheduler & get()
Access the scheduler singleton.
~CPPScheduler()
Default destructor.
unsigned int num_threads() const override
Returns the number of threads that the SingleThreadScheduler has in its pool.
std::function< int(int, int)> BindFunc
Function to be used and map a given thread id to a logical core id.
C++11 implementation of a pool of threads to automatically split a kernel's execution among several t...
Common interface for all kernels implemented in C++.
void set_num_threads_with_affinity(unsigned int num_threads, BindFunc func) override
Sets the number of threads the scheduler will use to run the kernels but also using a binding functio...
void set_num_threads(unsigned int num_threads) override
Sets the number of threads the scheduler will use to run the kernels.
Scheduler interface to run kernels.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
void schedule(ICPPKernel *kernel, const Hints &hints) override
Runs the kernel in the same thread as the caller synchronously.
void schedule_op(ICPPKernel *kernel, const Hints &hints, const Window &window, ITensorPack &tensors) override
Runs the kernel in the same thread as the caller synchronously.
CPPScheduler()
Constructor: create a pool of threads.