aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/CL/CLScheduler.h
diff options
context:
space:
mode:
authorGeorgios Pinitas <georgios.pinitas@arm.com>2018-03-23 15:13:15 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:49:16 +0000
commitc0d1c86b1bb1b4e129c292549845e00dfd8abfee (patch)
treedfb24aa860615f45a430a5c921df7a1a20eb52d8 /arm_compute/runtime/CL/CLScheduler.h
parent7fad9b1d00f3ee1488ba4038d1371f6ea219f8b7 (diff)
downloadComputeLibrary-c0d1c86b1bb1b4e129c292549845e00dfd8abfee.tar.gz
COMPMID-734: CLTuner rework
Change-Id: I8f20d6ea8a09869d71003e7b08e0d33775282f6c Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/125802 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'arm_compute/runtime/CL/CLScheduler.h')
-rw-r--r--arm_compute/runtime/CL/CLScheduler.h18
1 files changed, 10 insertions, 8 deletions
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;