diff options
author | Anthony Barbier <anthony.barbier@arm.com> | 2018-02-27 13:08:00 +0000 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:48:33 +0000 |
commit | 8db8318e2292d79f1971ae72198a3031f8ea65bd (patch) | |
tree | 1dd901c4c6036137596250d53fc43b5ca28ae4fe /src/graph | |
parent | 861f0db548befac0cd5fb28fe2fa8ea1828c715d (diff) | |
download | ComputeLibrary-8db8318e2292d79f1971ae72198a3031f8ea65bd.tar.gz |
COMPMID-978 Load/Store tuning data from file
Change-Id: I1d1f402df3a58704c021b9866d489844fb5e7d7a
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/122395
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'src/graph')
-rw-r--r-- | src/graph/Graph.cpp | 13 |
1 files changed, 4 insertions, 9 deletions
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<INode> _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); } } |