aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKevin May <kevin.may@arm.com>2021-05-21 16:42:21 +0100
committerKevin May <kevin.may@arm.com>2021-05-26 11:56:54 +0000
commitb4b3ac91990eb5deaffca2300319f2ddf7aa0886 (patch)
treee480826fe604d652877459ce4bbf4314a461e4b2 /include
parent401c1c3f973da1a2e2cef7f88a5aac2cf295fac7 (diff)
downloadarmnn-b4b3ac91990eb5deaffca2300319f2ddf7aa0886.tar.gz
IVGCVSW-6009 Integrate threadpool into ExNet
* Remove concurrent flag from ExecuteNetwork as it is possible to deduce if SimultaneousIterations > 1 * Add void RunAsync() * Refactor some unit tests Change-Id: I7021d4821b0e460470908294cbd9462850e8b361 Signed-off-by: Keith Davis <keith.davis@arm.com> Signed-off-by: Kevin May <kevin.may@arm.com>
Diffstat (limited to 'include')
-rw-r--r--include/armnn/IRuntime.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/armnn/IRuntime.hpp b/include/armnn/IRuntime.hpp
index 870e027f33..bfc13c9c01 100644
--- a/include/armnn/IRuntime.hpp
+++ b/include/armnn/IRuntime.hpp
@@ -33,7 +33,7 @@ struct INetworkProperties
INetworkProperties(bool importEnabled = false,
bool exportEnabled = false,
bool asyncEnabled = false,
- size_t numThreads = 0)
+ size_t numThreads = 1)
: m_ImportEnabled(importEnabled)
, m_ExportEnabled(exportEnabled)
, m_AsyncEnabled(asyncEnabled)
@@ -45,7 +45,7 @@ struct INetworkProperties
INetworkProperties(bool asyncEnabled,
MemorySource m_InputSource,
MemorySource m_OutputSource,
- size_t numThreads = 0)
+ size_t numThreads = 1)
: m_ImportEnabled(m_InputSource != MemorySource::Undefined)
, m_ExportEnabled(m_OutputSource != MemorySource::Undefined)
, m_AsyncEnabled(asyncEnabled)