aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/instruments/OpenCLTimer.h
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-05-16 14:20:04 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:52:35 +0000
commitc483521dd36134acd659341f7629e0c02b1f23d9 (patch)
treef71c3fd75826309a89cd95016f52c0d5a9b4b5c1 /tests/framework/instruments/OpenCLTimer.h
parent4d0a8d6a8f7cc2b5964cc69990e9f3a3ea7e036d (diff)
downloadComputeLibrary-c483521dd36134acd659341f7629e0c02b1f23d9.tar.gz
COMPMID-959: Only intercept clEnqueueNDRangeKernel when the timer is enabled
Otherwise we'll start intercepting the cl_tuner run, which we don't want Change-Id: Ib3d835a02a6cec9617a715bfbeaed506792a00fc Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/131478 Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com> Tested-by: Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/instruments/OpenCLTimer.h')
-rw-r--r--tests/framework/instruments/OpenCLTimer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/framework/instruments/OpenCLTimer.h b/tests/framework/instruments/OpenCLTimer.h
index 059f4493f9..c5f3bce92a 100644
--- a/tests/framework/instruments/OpenCLTimer.h
+++ b/tests/framework/instruments/OpenCLTimer.h
@@ -52,6 +52,7 @@ public:
std::string id() const override;
void test_start() override;
void start() override;
+ void stop() override;
void test_stop() override;
MeasurementsMap measurements() const override;
@@ -66,6 +67,7 @@ private:
std::function<decltype(clEnqueueNDRangeKernel)> _real_function;
std::function<decltype(graph::execute_task)> _real_graph_function;
std::string _prefix;
+ bool _timer_enabled;
#endif /* ARM_COMPUTE_CL */
private: