Bug 88866

Summary: Beignet and LibreOffice Calc
Product: Beignet Reporter: gnn <chgena>
Component: BeignetAssignee: Zhigang Gong <zhigang.gong>
Status: CLOSED NOTABUG QA Contact:
Severity: normal    
Priority: medium CC: wangbiaouestc
Version: unspecified   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: LibreOffice settings: Intel GPU not in the list
clinfo output

Description gnn 2015-01-29 12:48:56 UTC
LibreOffice Calc has some OpenCL support, but Beignet GPU isn't visible for LibreOffice Calc.
Steps to reproduce:
OpenCL could be enabled from Calc by:
Tools->Options->In left pane choose: "LibreOffice Calc"->Formula->Detailed calculation settings->Custom->Details...->Click: "Enable OpenCL for some formula computations"->Choose under the list: Value: True.

After that, you will see a list of available Platform/Devices at the bottom of the window, but no Intel GPU.

I've tried on Ubuntu 14.04 x64 with Beignet 1.0.1 (Intel i5 3470) and LibreOffice 4.2 (stock) and 4.3.5 (from ubuntu ppa)
Comment 1 gnn 2015-01-30 05:56:58 UTC
Created attachment 112959 [details]
LibreOffice settings: Intel GPU not in the list
Comment 2 gnn 2015-01-30 05:59:20 UTC
Created attachment 112960 [details]
clinfo output
Comment 3 Zhigang Gong 2015-01-30 08:25:42 UTC
Given the fact the clinfo could find beignet, I guess there are some black list mechanism in libreoffice. It should be a issue in libreoffice rather than in beignet.
Comment 4 gnn 2015-01-30 18:40:40 UTC
I thought may be libreoffice failed to compile its OpenCL kernels or something like that. Could it be the case? Or should I go to libreoffice bug tracker?
Comment 5 Zhigang Gong 2015-01-31 04:32:51 UTC
(In reply to gnn from comment #4)
> I thought may be libreoffice failed to compile its OpenCL kernels or
> something like that. Could it be the case? Or should I go to libreoffice bug
> tracker?

I don't think so, as beignet is not in the list. Libreoffice doesn't need to test each opencl platforms/devices before the user even choose them. I don't know which libreoffice version you are using. I just checked the 4.4, and there is an OpenCL option to set a whitelist and blacklist.
Comment 6 gnn 2015-01-31 06:32:27 UTC
I've just installed Libre Office 4.4. It looks like they updated OpenCL support and UI for it. But in version 4.4 I don't see any way to get list of detected (used) devices (like in 4.3 on screenshot). Only general black and white lists.
Comment 7 Zhigang Gong 2015-02-02 03:34:02 UTC
(In reply to gnn from comment #6)
> I've just installed Libre Office 4.4. It looks like they updated OpenCL
> support and UI for it. But in version 4.4 I don't see any way to get list of
> detected (used) devices (like in 4.3 on screenshot). Only general black and
> white lists.

You may ask the libre office community to find out how to know the available ocl platforms in libre office 4.4.
Comment 8 Zhigang Gong 2015-02-27 09:17:52 UTC
As we haven't found any specific beignet related issue here, I preferred to close this bug now. If you could provide further information to indicate beignet's not doing the right thing with LibreOffice, you are welcome to reopen or file a new bug.
Thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.