sc/source/core/opencl/formulagroupcl.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 78317bc663a0c33bef536b3db98380e64ce32b28 Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Fri Nov 30 15:02:48 2018 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Thu Jan 24 20:37:56 2019 +0100 in dbgutils mode, abort if an OpenCL program fails to compile Change-Id: I86e57e6da645b59f8c71387057047c9aab4d1759 Reviewed-on: https://gerrit.libreoffice.org/65480 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index ab43f2f3092a..594ad8acf8bc 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -4029,7 +4029,12 @@ void DynamicKernel::CreateKernel() } } #endif +#ifdef DBG_UTIL + SAL_WARN("sc.opencl", "Program failed to build, aborting."); + abort(); // make sure errors such as typos don't accidentally go unnoticed +#else throw OpenCLError("clBuildProgram", err, __FILE__, __LINE__); +#endif } SAL_INFO("sc.opencl", "Built program " << mpProgram); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits