aboutsummaryrefslogtreecommitdiff
path: root/src/graph/backends/CL/CLDeviceBackend.cpp
diff options
context:
space:
mode:
authorManuel Bottini <manuel.bottini@arm.com>2020-11-18 17:56:30 +0000
committerGeorgios Pinitas <georgios.pinitas@arm.com>2021-01-08 11:27:40 +0000
commitb56c1758dfc233452ff73149fabe30e1c460e9d3 (patch)
treef6a9fb4d3a89e7239024193ee2675488fb1025ca /src/graph/backends/CL/CLDeviceBackend.cpp
parent805145dcffff952b6fad390e4092ff6141106cab (diff)
downloadComputeLibrary-b56c1758dfc233452ff73149fabe30e1c460e9d3.tar.gz
Generalization of CLTuner
Rename lws to tuning parameters in functions used externally Add new generalized objects for the OpenCL Tuner to accommodate further possible tuning parameters Resolves: COMPMID-3935 Change-Id: I0f2a0f89bca5dae4a4e4adce2f7c7cae32ecb84a Signed-off-by: Manuel Bottini <manuel.bottini@arm.com> Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/4584 Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/graph/backends/CL/CLDeviceBackend.cpp')
-rw-r--r--src/graph/backends/CL/CLDeviceBackend.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/graph/backends/CL/CLDeviceBackend.cpp b/src/graph/backends/CL/CLDeviceBackend.cpp
index bc7bbddbd8..50dd799ee1 100644
--- a/src/graph/backends/CL/CLDeviceBackend.cpp
+++ b/src/graph/backends/CL/CLDeviceBackend.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2018-2020 Arm Limited.
+ * Copyright (c) 2018-2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -71,11 +71,7 @@ CLDeviceBackend::CLDeviceBackend()
CLDeviceBackend::~CLDeviceBackend()
{
- // TODO (geopin01) : Shouldn't call non exception safe stuff here
- if(_tuner.tune_new_kernels() && !_tuner.lws_table().empty() && !_tuner_file.empty())
- {
- _tuner.save_to_file(_tuner_file);
- }
+ _tuner.save_to_file(_tuner_file);
}
void CLDeviceBackend::set_kernel_tuning(bool enable_tuning)
@@ -117,6 +113,7 @@ void CLDeviceBackend::setup_backend_context(GraphContext &ctx)
// Setup tuner
_tuner_file = ctx.config().tuner_file;
+
// Load tuner data if available
if(file_exists(_tuner_file))
{