aboutsummaryrefslogtreecommitdiff
path: root/src/graph/backends/CL/CLDeviceBackend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/graph/backends/CL/CLDeviceBackend.cpp')
-rw-r--r--src/graph/backends/CL/CLDeviceBackend.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/graph/backends/CL/CLDeviceBackend.cpp b/src/graph/backends/CL/CLDeviceBackend.cpp
index ae7f0a50b3..0666ec0ccb 100644
--- a/src/graph/backends/CL/CLDeviceBackend.cpp
+++ b/src/graph/backends/CL/CLDeviceBackend.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018 ARM Limited.
+ * Copyright (c) 2018-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -81,6 +81,11 @@ void CLDeviceBackend::set_kernel_tuning(bool enable_tuning)
_tuner.set_tune_new_kernels(enable_tuning);
}
+void CLDeviceBackend::set_kernel_tuning_mode(CLTunerMode tuning_mode)
+{
+ _tuner.set_tuner_mode(tuning_mode);
+}
+
void CLDeviceBackend::initialize_backend()
{
// Setup Scheduler
@@ -118,6 +123,7 @@ void CLDeviceBackend::setup_backend_context(GraphContext &ctx)
}
set_kernel_tuning(ctx.config().use_tuner);
+ set_kernel_tuning_mode(ctx.config().tuner_mode);
// Setup a management backend
if(ctx.memory_management_ctx(Target::CL) == nullptr)