diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2019-04-22 21:23:44 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2019-04-29 10:40:12 +0200 |
commit | 101eea01c778ad255d3c8467e06643b23ff6bd76 (patch) | |
tree | f9defcf3be94e8d624d0ae098b68c4b508f66756 /include/opencl | |
parent | 7722ffd1f50ee431dfc501c4f0fecd40eb9046d3 (diff) |
test in a separate helper process if OpenCL crashes (tdf#112252)
Some OpenCL implementations may be broken, e.g. pocl simply
asserts and aborts if it can't find Clang. In order to protect
against crashes caused by faulty OpenCL drivers, when testing OpenCL
functionality on OpenCL setup change, first do a simple test
in a separate helper.
Change-Id: I1cf328e731c48f47745b27c7130e7521254209f5
Reviewed-on: https://gerrit.libreoffice.org/71080
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/opencl')
-rw-r--r-- | include/opencl/openclwrapper.hxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/opencl/openclwrapper.hxx b/include/opencl/openclwrapper.hxx index 67dfc8798416..81138ced24e8 100644 --- a/include/opencl/openclwrapper.hxx +++ b/include/opencl/openclwrapper.hxx @@ -77,6 +77,8 @@ OPENCL_DLLPUBLIC bool switchOpenCLDevice(const OUString* pDeviceId, bool bAutoSe OPENCL_DLLPUBLIC void getOpenCLDeviceInfo(size_t& rDeviceId, size_t& rPlatformId); +OPENCL_DLLPUBLIC void getOpenCLDeviceName(OUString& rDeviceName, OUString& rPlatformName); + /** * Set the current command queue position in case of multiple command queues * for a given device. |