From c0d1c86b1bb1b4e129c292549845e00dfd8abfee Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 23 Mar 2018 15:13:15 +0000 Subject: COMPMID-734: CLTuner rework Change-Id: I8f20d6ea8a09869d71003e7b08e0d33775282f6c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125802 Tested-by: Jenkins Reviewed-by: Anthony Barbier --- arm_compute/runtime/CL/CLScheduler.h | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'arm_compute/runtime/CL/CLScheduler.h') diff --git a/arm_compute/runtime/CL/CLScheduler.h b/arm_compute/runtime/CL/CLScheduler.h index 89c3bc1553..e1e7ff637f 100644 --- a/arm_compute/runtime/CL/CLScheduler.h +++ b/arm_compute/runtime/CL/CLScheduler.h @@ -30,7 +30,7 @@ #include "arm_compute/core/CL/OpenCL.h" #include "arm_compute/core/Error.h" #include "arm_compute/core/Types.h" -#include "arm_compute/runtime/CL/CLTuner.h" +#include "arm_compute/runtime/CL/ICLTuner.h" #if defined(ARM_COMPUTE_DEBUG_ENABLED) namespace @@ -194,17 +194,19 @@ public: return event; } -private: - /** Tune OpenCL kernel - * - * @note This method uses a brute force approach to find the optimal LWS + /** Tunes OpenCL kernel * * @param[in] kernel Kernel to tune - * - * @return The optimal LWS for the specified kernel */ - cl::NDRange tune_kernel(ICLKernel &kernel); + void tune_kernel_static(ICLKernel &kernel) + { + if(_cl_tuner != nullptr) + { + _cl_tuner->tune_kernel_static(kernel); + } + } +private: /** Flag to ensure symbols initialisation is happening before Scheduler creation */ static std::once_flag _initialize_symbols; -- cgit v1.2.1