From f41eb66302208f384a475fb20c98b6d1b0676cb6 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Fri, 8 Jul 2016 22:16:27 +0900 Subject: opencl: OpenCLZone, detect CL device change and disable CL on crash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guard OpenCL calls with OpenCLZone, so if a OpenCL call crashes we detect this and disable OpenCL so next time the user doesn't encounter the crash at the same calculation because he has a broken OpenCL drivers. Similar has been implemented for OpenGL with good results. Additionaly we persistently remember a known good OpenCL device ID and driver version so we can match this and perform calculation tests when they change. This is to ensure that the selected OpenCL device performs as we expect. In this commit the calculation tests aren't included yet. Remove complex static initializer in opencl wrapper library. Change-Id: I1a8b81ee31298731efcf63dc6a476955afc035e9 Reviewed-on: https://gerrit.libreoffice.org/27064 Reviewed-by: Tomaž Vajngerl Tested-by: Tomaž Vajngerl --- opencl/Library_opencl.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'opencl/Library_opencl.mk') diff --git a/opencl/Library_opencl.mk b/opencl/Library_opencl.mk index 501be304cfaf..039ec0125e53 100644 --- a/opencl/Library_opencl.mk +++ b/opencl/Library_opencl.mk @@ -38,6 +38,7 @@ $(eval $(call gb_Library_use_libraries,opencl,\ comphelper \ cppu \ sal \ + salhelper \ tl \ )) @@ -46,6 +47,7 @@ $(eval $(call gb_Library_add_exception_objects,opencl,\ opencl/source/openclwrapper \ opencl/source/opencl_device \ opencl/source/platforminfo \ + opencl/source/OpenCLZone \ )) ifeq ($(OS),LINUX) -- cgit