aboutsummaryrefslogtreecommitdiff
path: root/src/backends/cl/ClBackendContext.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/cl/ClBackendContext.cpp')
-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.";
+ }
}
}