From 3d1489de593574e65ef1e64a7ae64e4e56c2978b Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Thu, 3 May 2018 20:47:16 +0100 Subject: COMPMID-605: Transition buffer memory manager Change-Id: Ide7c6124eb19f13f15f517e62d705646a0cd1ecd Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/130184 Reviewed-by: Georgios Pinitas Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/graph/Workload.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'arm_compute/graph/Workload.h') diff --git a/arm_compute/graph/Workload.h b/arm_compute/graph/Workload.h index 35066c474d..e9368eefd0 100644 --- a/arm_compute/graph/Workload.h +++ b/arm_compute/graph/Workload.h @@ -24,7 +24,9 @@ #ifndef __ARM_COMPUTE_GRAPH_WORKLOAD_H__ #define __ARM_COMPUTE_GRAPH_WORKLOAD_H__ +#include "arm_compute/graph/GraphContext.h" #include "arm_compute/runtime/IFunction.h" +#include "arm_compute/runtime/IMemoryGroup.h" #include #include @@ -68,10 +70,8 @@ public: struct ExecutionTask { // TODO (geopin01) : Support vector of functions? - std::unique_ptr task = {}; /**< Task to execute */ - INode *node = {}; /**< Node bound to this workload */ - std::vector commit_handles = {}; /**< Handles needs to sync for this task to execute */ - std::vector release_handles = {}; /**< Handles that can be released after this node execution */ + std::unique_ptr task = {}; /**< Task to execute */ + INode *node = {}; /**< Node bound to this workload */ /** Function operator */ void operator()(); @@ -83,10 +83,11 @@ struct ExecutionTask /** Execution workload */ struct ExecutionWorkload { - std::vector inputs = {}; /**< Input handles */ - std::vector outputs = {}; /**< Output handles */ - std::vector tasks = {}; /**< Execution workload */ - Graph *graph = nullptr; /**< Graph bound to the workload */ + std::vector inputs = {}; /**< Input handles */ + std::vector outputs = {}; /**< Output handles */ + std::vector tasks = {}; /**< Execution workload */ + Graph *graph = { nullptr }; /**< Graph bound to the workload */ + GraphContext *ctx = { nullptr }; /**< Graph execution context */ }; } // namespace graph } // namespace arm_compute -- cgit v1.2.1