aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Taylor <stuart.taylor@arm.com>2022-03-15 17:03:58 +0000
committerStuart Taylor <stuart.taylor@arm.com>2022-03-15 17:03:58 +0000
commit06ccd713391cca68dc8ab53b84bf058723ae55ab (patch)
tree2b6a7048a6b0517aa2c2f7c84da40bf60fc0a2b9
parenta96fcb26a31e23b08d3ba98932d51fc18edd254f (diff)
downloadarmnn-06ccd713391cca68dc8ab53b84bf058723ae55ab.tar.gz
Support incremental CL tuning
Allow reading of an existing params file even when tuning. Signed-off-by: Stuart Taylor <stuart.taylor@arm.com> Change-Id: I6c6d9ec60908d644afbb5ff1c55f4a6cacf650d2
-rw-r--r--src/backends/cl/ClBackendContext.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backends/cl/ClBackendContext.cpp b/src/backends/cl/ClBackendContext.cpp
index 5358fe9c79..c63fb0c893 100644
--- a/src/backends/cl/ClBackendContext.cpp
+++ b/src/backends/cl/ClBackendContext.cpp
@@ -210,7 +210,7 @@ ClBackendContext::ClBackendContext(const IRuntime::CreationOptions& options)
ConfigureTuner(*(m_Tuner.get()), tuningLevel);
- if (!m_TuningFile.empty() && tuningLevel == TuningLevel::None)
+ if (!m_TuningFile.empty())
{
try
{
@@ -219,7 +219,11 @@ ClBackendContext::ClBackendContext(const IRuntime::CreationOptions& options)
}
catch (const std::exception& e)
{
- ARMNN_LOG(warning) << "Could not load GpuAcc tuner data file.";
+ // Warn if not tuning, otherwise tuning will generate new params
+ if (tuningLevel == TuningLevel::None)
+ {
+ ARMNN_LOG(warning) << "Could not load GpuAcc tuner data file.";
+ }
}
}