From 8db8318e2292d79f1971ae72198a3031f8ea65bd Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Tue, 27 Feb 2018 13:08:00 +0000 Subject: COMPMID-978 Load/Store tuning data from file Change-Id: I1d1f402df3a58704c021b9866d489844fb5e7d7a Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122395 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- src/graph/Graph.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) (limited to 'src/graph') diff --git a/src/graph/Graph.cpp b/src/graph/Graph.cpp index b6c6822c36..b1698e4672 100644 --- a/src/graph/Graph.cpp +++ b/src/graph/Graph.cpp @@ -62,7 +62,7 @@ public: std::unique_ptr _current_node{ nullptr }; ITensorObject *_current_output{ nullptr }; bool _info_enabled{ false }; - CLTuner _tuner{}; + CLFileTuner _tuner{}; private: ITensorObject *_current_input{ nullptr }; @@ -85,14 +85,9 @@ void Graph::graph_init(const bool use_cl_tuner) // Check if OpenCL is available and initialize the scheduler if(opencl_is_available()) { - if(use_cl_tuner) - { - arm_compute::CLScheduler::get().default_init(&_pimpl->_tuner); - } - else - { - arm_compute::CLScheduler::get().default_init(); - } + _pimpl->_tuner.set_tune_new_kernels(use_cl_tuner); + _pimpl->_tuner.set_update_file(use_cl_tuner); + arm_compute::CLScheduler::get().default_init(&_pimpl->_tuner); } } -- cgit v1.2.1