24.02.1
|
Go to the documentation of this file.
45 if (num_iterations < 1)
67 void SingleThreadScheduler::run_workloads(std::vector<Workload> &workloads)
71 for (
auto &wl : workloads)
CPUInfo & cpu_info()
Get CPU info.
constexpr size_t num_iterations(size_t dimension) const
Return the number of iterations needed to iterate through a given dimension.
unsigned int num_threads() const override
Returns the number of threads that the SingleThreadScheduler has, which is always 1.
static constexpr unsigned int split_dimensions_all
When arm_compute::ISchedular::Hints::_split_dimension is initialized with this value then the schedul...
virtual void run_op(ITensorPack &tensors, const Window &window, const ThreadInfo &info)
Execute the kernel on the passed window.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
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.
void schedule(ICPPKernel *kernel, const Hints &hints) override
Runs the kernel in the same thread as the caller synchronously.
void set_num_threads(unsigned int num_threads) override
Sets the number of threads the scheduler will use to run the kernels.
virtual void run(const Window &window, const ThreadInfo &info)
Execute the kernel on the passed window.
unsigned int split_dimension() const
Return the prefered split dimension.
Common interface for all kernels implemented in C++.
#define ARM_COMPUTE_UNUSED(...)
To avoid unused variables warnings.
const Window & window() const
The maximum window the kernel can be executed on.
Information about executing thread and CPU.
Describe a multidimensional execution window.
Copyright (c) 2017-2024 Arm Limited.
ScaleKernelInfo info(interpolation_policy, default_border_mode, PixelValue(), sampling_policy, false)