36 #ifndef DOXYGEN_SKIP_THIS 37 static const std::string information =
38 #include "arm_compute_version.embed" 44 static std::map<Scheduler::Type, const std::string> scheduler_type_map =
52 return scheduler_type_map[
t];
76 const auto num_of_wg =
static_cast<unsigned int>(ceil(input_x_dimension / 128.f));
80 const unsigned int num_of_stages = num_of_wg / 128 + 2;
unsigned int calculate_number_of_stages_only_x_axis(size_t input_x_dimension, unsigned int axis)
Calculate number of stages for parallel implementations.
Common interface for all kernels implemented in C++.
#define ARM_COMPUTE_ERROR_ON(cond)
If the condition is true then an error message is printed and an exception thrown.
Copyright (c) 2017-2023 Arm Limited.
void schedule_kernel_on_ctx(IRuntimeContext *ctx, ICPPKernel *kernel, const IScheduler::Hints &hints)
Schedules a kernel using the context if not nullptr else uses the legacy scheduling flow...
virtual IScheduler * scheduler()=0
Scheduler accessor.
virtual void schedule(ICPPKernel *kernel, const Hints &hints)=0
Runs the kernel in the same thread as the caller synchronously.
const std::string & string_from_scheduler_type(Scheduler::Type t)
Convert a Scheduler::Type into a string.
static IScheduler & get()
Access the scheduler singleton.