[ONCPUML-7] Improvement to Window::split_window
authorJoseph Dobson <joseph.dobson@arm.com>
Tue, 11 Feb 2020 13:10:39 +0000 (13:10 +0000)
committerGian Marco Iodice <gianmarco.iodice@arm.com>
Fri, 1 May 2020 08:08:11 +0000 (08:08 +0000)
commit51ca6ae70680f6c7aaa1900fe6ff4d3ee4e90b08
tree916c9215482b96b09bae95f0f6c2a456f062edd1
parent8bb8de3772b37efb84959390582823488ab1b9e2
[ONCPUML-7] Improvement to Window::split_window

If the total passed to split window did not fit
nicely into the selected Dimensions size then
the size of of the window return will vary considerably
for different ids

This change means that the amount of work each id
will vary by the minimal amount.

For example:
If total was 10 and a Dimensions size was 19

With then with the old code :
* id 0 - 8 would get back 1,
* id 9 would get 10

With the new code:
* id 0-8 would get 2
* id 9 would get 1

Change-Id: I6b74b81d7ddcea06db7aa9fbaf8cb47a659994c1
Signed-off-by: Joseph Dobson <joseph.dobson@arm.com>
Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/c/VisualCompute/ComputeLibrary/+/224448
Tested-by: bsgcomp <bsgcomp@arm.com>
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: bsgcomp <bsgcomp@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/2961
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
arm_compute/core/Window.inl