summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-11-30 15:02:48 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-01-24 20:37:56 +0100
commit78317bc663a0c33bef536b3db98380e64ce32b28 (patch)
tree041cf62f6a89423cbd9a77e3ecb69fd6f50a7549
parent2675e4283a5eceb30d47e622775e7e8c4fc98f15 (diff)
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.lunak@collabora.com>
-rw-r--r--sc/source/core/opencl/formulagroupcl.cxx5
1 files changed, 5 insertions, 0 deletions
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);