From 1f378ee7639837601f5152ee9f185ee1a528d643 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Fri, 27 Oct 2017 13:37:16 +0100 Subject: COMPMID-556: Static helper function for getting gws from window. Change-Id: I3e47385b2f7a7977c2c61272f2fb30e800f39406 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93429 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- arm_compute/core/CL/ICLKernel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'arm_compute/core/CL/ICLKernel.h') diff --git a/arm_compute/core/CL/ICLKernel.h b/arm_compute/core/CL/ICLKernel.h index 9119940bc5..a1bc3eb8d2 100644 --- a/arm_compute/core/CL/ICLKernel.h +++ b/arm_compute/core/CL/ICLKernel.h @@ -180,6 +180,13 @@ public: * @return The maximum workgroup size value. */ size_t get_max_workgroup_size(); + /** Get the global work size given an execution window + * + * @param[in] window Execution window + * + * @return Global work size of the given execution window + */ + static cl::NDRange gws_from_window(const Window &window); private: /** Add the passed array's parameters to the object's kernel's arguments starting from the index idx. -- cgit v1.2.1