aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/CLScheduler.h
diff options
context:
space:
mode:
Diffstat (limited to 'arm_compute/runtime/CL/CLScheduler.h')
-rw-r--r--arm_compute/runtime/CL/CLScheduler.h36
1 files changed, 23 insertions, 13 deletions
diff --git a/arm_compute/runtime/CL/CLScheduler.h b/arm_compute/runtime/CL/CLScheduler.h
index bdd779bd91..8eb287c942 100644
--- a/arm_compute/runtime/CL/CLScheduler.h
+++ b/arm_compute/runtime/CL/CLScheduler.h
@@ -94,15 +94,6 @@ public:
return CLKernelLibrary::get().context();
}
- /** Accessor to set the CL context to be used by the scheduler.
- *
- * @param[in] context A CL context.
- */
- void set_context(cl::Context context)
- {
- CLKernelLibrary::get().set_context(context);
- }
-
/** Accessor for the associated CL command queue.
*
* @return A CL command queue.
@@ -122,6 +113,15 @@ public:
return _target;
}
+ /** Accessor to set the CL context to be used by the scheduler.
+ *
+ * @param[in] context A CL context.
+ */
+ void set_context(cl::Context context)
+ {
+ CLKernelLibrary::get().set_context(context);
+ }
+
/** Accessor to set the CL command queue to be used by the scheduler.
*
* @param[in] queue A CL command queue.
@@ -140,6 +140,15 @@ public:
_target = target;
}
+ /** Accessor to set the CL tuner to be used by the scheduler.
+ *
+ * @param[in] tuner A CL tuner
+ */
+ void set_tuner(ICLTuner *tuner)
+ {
+ _cl_tuner = tuner;
+ }
+
/** Blocks until all commands in the associated command queue have finished. */
void sync()
{
@@ -179,10 +188,11 @@ private:
/** Flag to ensure symbols initialisation is happening before Scheduler creation */
static std::once_flag _initialize_symbols;
- cl::CommandQueue _queue;
- GPUTarget _target;
- bool _is_initialised;
- ICLTuner *_cl_tuner;
+ cl::CommandQueue _queue;
+ GPUTarget _target;
+ bool _is_initialised;
+ ICLTuner *_cl_tuner;
+ std::unique_ptr<ICLTuner> _cl_default_static_tuner;
};
}
#endif /* __ARM_COMPUTE_CLSCHEDULER_H__ */