aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/IScheduler.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-09-11 14:19:39 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit148b07500ad883ff2d31a4087ba2538103005979 (patch)
tree251abddc8ff93b8b8e1324e97d933b9828656db7 /arm_compute/runtime/IScheduler.h
parent73023027d6250daaa1df49fdeb1d21e59a0bf7f5 (diff)
downloadComputeLibrary-148b07500ad883ff2d31a4087ba2538103005979.tar.gz
COMPMID-1563: Added a tag to ISCheduler::run_workloads to identify workloads
Change-Id: Ieac59e3ccf47feab8f88c65200eb8a81b2eb4196 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/147728 Tested-by: bsgcomp <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'arm_compute/runtime/IScheduler.h')
-rw-r--r--arm_compute/runtime/IScheduler.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/arm_compute/runtime/IScheduler.h b/arm_compute/runtime/IScheduler.h
index 1f90f4ef9c..14acf04439 100644
--- a/arm_compute/runtime/IScheduler.h
+++ b/arm_compute/runtime/IScheduler.h
@@ -134,8 +134,9 @@ public:
* @note there is no guarantee regarding the order in which the workloads will be executed or whether or not they will be executed in parallel.
*
* @param[in] workloads Array of workloads to run
+ * @param[in] tag String that can be used by profiling tools to identify the workloads run by the scheduler (Can be null).
*/
- virtual void run_workloads(std::vector<Workload> &workloads) = 0;
+ virtual void run_tagged_workloads(std::vector<Workload> &workloads, const char *tag);
/** Get CPU info.
*
@@ -152,6 +153,13 @@ public:
unsigned int num_threads_hint() const;
protected:
+ /** Execute all the passed workloads
+ *
+ * @note there is no guarantee regarding the order in which the workloads will be executed or whether or not they will be executed in parallel.
+ *
+ * @param[in] workloads Array of workloads to run
+ */
+ virtual void run_workloads(std::vector<Workload> &workloads) = 0;
CPUInfo _cpu_info;
private: