24 #ifndef ARM_COMPUTE_CPPSCHEDULER_H 25 #define ARM_COMPUTE_CPPSCHEDULER_H 62 void run_workloads(std::vector<Workload> &workloads)
override;
66 std::unique_ptr<Impl> _impl;
unsigned int num_threads() const override
Returns the number of threads that the SingleThreadScheduler has in his pool.
Common interface for all kernels implemented in C++.
Scheduler interface to run kernels.
Copyright (c) 2017-2021 Arm Limited.
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...
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...
~CPPScheduler()
Default destructor.
void set_num_threads(unsigned int num_threads) override
Sets the number of threads the scheduler will use to run the kernels.
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.
Describe a multidimensional execution window.
void schedule(ICPPKernel *kernel, const Hints &hints) override
Runs the kernel in the same thread as the caller synchronously.
CPPScheduler()
Constructor: create a pool of threads.