drop opencl implementation of MEDIAN()

Desktop / LibreOffice - Luboš Luňák [collabora.com] - 22 September 2022 16:06 UTC

Input data to this function is not required to be sorted, so implementing this would mean sorting it in opencl, which is not exactly trivial and not worth the effort. There also exist algorithms that find the median without sorting an array, but they work by guessing it and looping until their guess is right, so again, not worth the trouble. I'd say there's nothing to be gained here from using opencl.

Change-Id: Ic6d6efdfc59b9058bdae50d07d8039db481dfb75 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140397

1af18947bfd0 drop opencl implementation of MEDIAN()
sc/source/core/opencl/formulagroupcl.cxx | 4 ---
sc/source/core/opencl/op_statistical.cxx | 59 --------------------------------
sc/source/core/opencl/op_statistical.hxx | 6 ----
3 files changed, 69 deletions(-)

Upstream: cgit.freedesktop.org

  • Share