aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/graph
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-04-10 16:53:02 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commita1be5ba07b344794a649510b9bb20968df204f6e (patch)
tree2f16427030127eccaea0f828adb414eb432d94c1 /arm_compute/graph
parent50b2254066fe794676e82316fdd81fec0ad68250 (diff)
downloadComputeLibrary-a1be5ba07b344794a649510b9bb20968df204f6e.tar.gz
COMPMID-959: Number of threads was overwritten in benchmark_graph tests
RunExample would set the number of threads specified on the command line then the default graph config was overwriting it with the default hint. Now the default config of the graph only sets the number of threads if explicitly requested by the user. Change-Id: Ibc945e790abe8f16afd89e2a40cbe07bf0966e84 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/127301 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'arm_compute/graph')
-rw-r--r--arm_compute/graph/Types.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/arm_compute/graph/Types.h b/arm_compute/graph/Types.h
index 00d37a3354..35f701284b 100644
--- a/arm_compute/graph/Types.h
+++ b/arm_compute/graph/Types.h
@@ -74,10 +74,10 @@ class TensorDescriptor;
/** Graph configuration structure */
struct GraphConfig
{
- bool use_function_memory_manager{ false }; /**< Use a memory manager to manage per-funcion auxilary memory */
- bool use_transition_memory_manager{ false }; /**< Use a memory manager to manager transition buffer memory */
- bool use_tuner{ false }; /**< Use a tuner in tunable backends */
- unsigned int num_threads{ 0 }; /**< Number of threads to use (thread capable backends), if 0 the backend will auto-initialize */
+ bool use_function_memory_manager{ false }; /**< Use a memory manager to manage per-funcion auxilary memory */
+ bool use_transition_memory_manager{ false }; /**< Use a memory manager to manager transition buffer memory */
+ bool use_tuner{ false }; /**< Use a tuner in tunable backends */
+ int num_threads{ -1 }; /**< Number of threads to use (thread capable backends), if 0 the backend will auto-initialize, if -1 the backend will stay as it is. */
};
/**< Data layout format */