Bug 160550 - Can't enable OpenCL even though it's supported by the hardware
Summary: Can't enable OpenCL even though it's supported by the hardware
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OpenCL
  Show dependency treegraph
 
Reported: 2024-04-05 16:21 UTC by ksio.amaral89
Modified: 2024-04-07 19:45 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
a screenshot of GPU-Z Advanced tab (26.28 KB, image/png)
2024-04-05 16:24 UTC, ksio.amaral89
Details
output of clinfo.exe (34.83 KB, text/plain)
2024-04-05 16:56 UTC, ksio.amaral89
Details
opencl_devices.log (3.79 KB, text/plain)
2024-04-06 10:47 UTC, ksio.amaral89
Details
opencl_profile.xml (366 bytes, text/plain)
2024-04-07 10:54 UTC, ksio.amaral89
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ksio.amaral89 2024-04-05 16:21:37 UTC
Description:
I can’t enable OpenCL, as after restarting LibreOffice, the checkbox is unchecked again. From what I’ve read, this means the GPU is not whitelisted because the drivers supposedly don’t support the API, but according to GPU-Z, the integrated GPU does support OpenCL:

Supported Version:  Full
Supported Profile: OpenCL 3.0 NEO

So I don’t get why is the device blacklisted, what’s preventing LO from whitelisting the device in order for OpenCL to be enabled?

Steps to Reproduce:
1.Open Tools>Options>LibreOffice>OpenCL
2.Check "Allow use of OpenCL" box
3. Press OK and restart the application

Actual Results:
"Allow use of OpenCL" checkbox is unchecked after restarting the application.

Expected Results:
"Allow use of OpenCL" checkbox should be checked after restarting the application.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
Version: 24.2.1.2 (X86_64) / LibreOffice Community
Build ID: db4def46b0453cc22e2d0305797cf981b68ef5ac
CPU threads: 8; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: pt-BR (pt_BR); UI: en-GB
Calc: threaded

CPU: Core i5-1135G7
GPU: Intel Graphics Xe 80 EUs
OS: Windows 11 Home version 23H2
GPU driver version: 31.0.101.5382
Comment 1 ksio.amaral89 2024-04-05 16:24:08 UTC
Created attachment 193518 [details]
a screenshot of GPU-Z Advanced tab
Comment 2 ksio.amaral89 2024-04-05 16:56:54 UTC
Created attachment 193519 [details]
output of clinfo.exe
Comment 3 m_a_riosv 2024-04-05 21:01:18 UTC
Please attach the file: 'opencl_devices.log'
that you can find in the profile
C:\Users\USER\AppData\Roaming\LibreOffice\4\cache
Comment 4 ksio.amaral89 2024-04-06 10:47:02 UTC
Created attachment 193542 [details]
opencl_devices.log
Comment 5 m_a_riosv 2024-04-06 11:35:27 UTC
Please, @Julien, can you take a look.
Comment 6 Julien Nabet 2024-04-07 10:05:57 UTC
I can't help much here since I know nothing about OpenCL.
It seems another LO feature that is been partly implemented and not really supported.

Anyway I can enable it on Windows 10 with LO 7.6.6 but it stays disabled on my Linux machine with Debian testing and master sources updated today.

I suppose It could be interesting to have opencl_profile.xml if present.
(see https://wiki.documentfoundation.org/QA/FirstSteps#Computation-related_issues_in_Calc_(_OpenCL_))
Comment 7 m_a_riosv 2024-04-07 10:14:41 UTC
Sorry @Julien, I thought you have added some GPU to blacklist.
Comment 8 Julien Nabet 2024-04-07 10:16:24 UTC
(In reply to m_a_riosv from comment #7)
> Sorry @Julien, I thought you have added some GPU to blacklist.

Indeed for OpenGL but OpenGL and OpenCL are 2 different things.
Comment 9 m_a_riosv 2024-04-07 10:22:59 UTC
Hi @ksio, please try to update the driver from intel, not from Windows update.

https://www.intel.com/content/www/us/en/support/detect.html

I remember that a few years ago, I solve to have OpenCL working with it.
There was an issue, with the path where the OpenCL was installed, was not the right place.
Comment 10 ksio.amaral89 2024-04-07 10:54:08 UTC
Created attachment 193556 [details]
opencl_profile.xml

Uploaded opencl_profiles.xml.
Comment 11 ksio.amaral89 2024-04-07 10:59:46 UTC
(In reply to m_a_riosv from comment #9)
> Hi @ksio, please try to update the driver from intel, not from Windows
> update.
> 
> https://www.intel.com/content/www/us/en/support/detect.html
> 
> I remember that a few years ago, I solve to have OpenCL working with it.
> There was an issue, with the path where the OpenCL was installed, was not
> the right place.

It is updated to the latest version (31.0.101.5382). On Windows, OpenCL runtime libraries are installed along the drivers but the user has no choice where to install them.