diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2018-05-01 15:26:20 +0100 |
---|---|---|
committer | Anthony Barbier <anthony.barbier@arm.com> | 2018-11-02 16:51:17 +0000 |
commit | 5c2fb3f34462632b99331e2cc2d964c99fc1782b (patch) | |
tree | 16ee3edc412fcf7e3d20241ca8fb093d9774863d /tests/framework/instruments/OpenCLTimer.h | |
parent | cac13b1cfd593889271f8e2191be2039b8d88f36 (diff) | |
download | ComputeLibrary-5c2fb3f34462632b99331e2cc2d964c99fc1782b.tar.gz |
COMPMID-997: Add support for node's name in GraphAPI.
Change-Id: I0ca02e42807c1ad9afeffb7202a3556feb11442f
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/129701
Tested-by: Jenkins <bsgcomp@arm.com>
Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Diffstat (limited to 'tests/framework/instruments/OpenCLTimer.h')
-rw-r--r-- | tests/framework/instruments/OpenCLTimer.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/tests/framework/instruments/OpenCLTimer.h b/tests/framework/instruments/OpenCLTimer.h index 44578782ed..059f4493f9 100644 --- a/tests/framework/instruments/OpenCLTimer.h +++ b/tests/framework/instruments/OpenCLTimer.h @@ -30,6 +30,8 @@ #include "arm_compute/core/CL/OpenCL.h" #endif /* ARM_COMPUTE_CL */ +#include "arm_compute/graph/Workload.h" + #include <list> namespace arm_compute @@ -48,17 +50,22 @@ public: */ OpenCLTimer(ScaleFactor scale_factor); std::string id() const override; + void test_start() override; void start() override; - void stop() override; + void test_stop() override; MeasurementsMap measurements() const override; + +private: #ifdef ARM_COMPUTE_CL struct kernel_info { cl::Event event{}; /**< OpenCL event associated to the kernel enqueue */ std::string name{}; /**< OpenCL Kernel name */ }; - std::list<kernel_info> kernels{}; - std::function<decltype(clEnqueueNDRangeKernel)> real_function; + std::list<kernel_info> _kernels; + std::function<decltype(clEnqueueNDRangeKernel)> _real_function; + std::function<decltype(graph::execute_task)> _real_graph_function; + std::string _prefix; #endif /* ARM_COMPUTE_CL */ private: |