• Tomaž Vajngerl's avatar
    opencl: OpenCLZone, detect CL device change and disable CL on crash · f41eb663
    Tomaž Vajngerl yazdı
    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/27064Reviewed-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    Tested-by: 's avatarTomaž Vajngerl <quikee@gmail.com>
    f41eb663
opencl_device.cxx 24.1 KB