23.08
|
Go to the documentation of this file.
63 CLTuningInfo tune_info;
64 tune_info.tuner_mode = map_tuner_mode(options->
mode);
65 tune_info.tune_wbsm =
false;
67 return std::make_unique<CLTuner>(
true , tune_info);
72 :
IQueue(ctx), _tuner(nullptr)
74 _tuner = populate_tuner(options);
Provides global access to a CL context and command queue.
@ AclExhaustive
Exhaustive tuning mode, increased tuning time but with best results.
arm_compute::CLScheduler & scheduler()
Return legacy scheduler.
#define ARM_COMPUTE_ERROR(msg)
Print the given message then throw an std::runtime_error.
AclTuningMode mode
Tuning mode.
Base class specifying the queue interface.
bool set_cl_queue(::cl::CommandQueue queue)
Update/inject an underlying cl command queue object.
@ AclRapid
Fast tuning mode, testing a small portion of the tuning space.
@ EXHAUSTIVE
Searches all possible LWS configurations while tuning.
::cl::CommandQueue cl_queue()
Underlying cl command queue accessor.
@ NORMAL
Searches a subset of LWS configurations while tuning.
ClQueue(IContext *ctx, const AclQueueOptions *options)
Construct a new CpuQueue object.
Interface to enqueue OpenCL kernels and get/set the OpenCL CommandQueue and ICLTuner.
@ RAPID
Searches a minimal subset of LWS configurations while tuning.
StatusCode finish() override
static CLScheduler & get()
Access the scheduler singleton.
@ AclTuningModeNone
No tuning.
Copyright (c) 2017-2023 Arm Limited.
@ AclNormal
Normal tuning mode, gives a good balance between tuning mode and performance.
CLTunerMode
< OpenCL tuner modes
cl::CommandQueue & queue()
Accessor for the associated CL command queue.
void set_queue(cl::CommandQueue queue)
Accessor to set the CL command queue to be used by the scheduler.