Bug 167365 - Cannot enable OpenCL with rusticl on radeonsi (RX 7900XTX)
Summary: Cannot enable OpenCL with rusticl on radeonsi (RX 7900XTX)
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: OpenCL
  Show dependency treegraph
 
Reported: 2025-07-03 10:10 UTC by Alex
Modified: 2025-07-04 13:17 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2025-07-03 10:10:20 UTC
I see some open bugs already with similar symptoms, but none has an answer. Basically I'm trying a very simple thing, clicking enabled OpenCL, restarting the LibreOffice and the checkbox is still disabled, no errors reported in logs.
Comment 1 V Stuart Foote 2025-07-03 16:50:04 UTC
Please post the opencl_devices.log and opencl_profile.xml from your user profile. Should be ~/.libreoffice/4/cache or similar.
Comment 2 Alex 2025-07-03 17:18:40 UTC
$ cat ./.config/libreoffice/4/cache/opencl_devices.log
Device Index: 0
  Selected: false
  Device Name: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 20.1.6, DRM 3.63, 6.15.4-200.fc42.x86_64)
  Device Vendor: AMD
  Device Version: OpenCL 3.0 
  Driver Version: 25.1.4
  Device Type: gpu 
  Device Extensions: cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_il_program cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_integer_dot_product cl_khr_spirv_no_integer_wrap_decoration cl_khr_suggested_local_work_size cl_khr_spirv_linkonce_odr cl_khr_gl_sharing cles_khr_int64 cl_khr_3d_image_writes cl_khr_depth_images cl_khr_pci_bus_info cl_khr_device_uuid cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative
  Device OpenCL C Version: OpenCL C 1.2 
  Device Available: true
  Device Compiler Available: true
  Device Linker Available: true
  Platform Name: rusticl
  Platform Vendor: Mesa/X.org
  Platform Version: OpenCL 3.0 
  Platform Profile: FULL_PROFILE
  Platform Extensions: cl_khr_icd cl_khr_byte_addressable_store cl_khr_create_command_queue cl_khr_expect_assume cl_khr_extended_versioning cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_il_program cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_integer_dot_product cl_khr_spirv_no_integer_wrap_decoration cl_khr_suggested_local_work_size cl_khr_spirv_linkonce_odr cl_khr_gl_sharing cles_khr_int64 cl_khr_3d_image_writes cl_khr_depth_images cl_khr_pci_bus_info cl_khr_device_uuid cl_khr_subgroup_shuffle cl_khr_subgroup_shuffle_relative
Comment 3 Alex 2025-07-03 17:19:38 UTC
$ cat ./.config/libreoffice/4/cache/opencl_profile.xml
<?xml version="1.0" encoding="UTF-8"?>
<profile>
 <version>LibreOffice v1</version>
 <device>
  <type>opencl</type>
  <name>AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 20.1.6, DRM 3.63, 6.15.4-200.fc42.x86_64)</name>
  <driver>25.1.4</driver>
  <time>max</time>
  <errors>false</errors>
 </device>
 <device>
  <type>native</type>
  <time>1947648</time>
  <errors>false</errors>
 </device>
</profile>
Comment 4 V Stuart Foote 2025-07-03 17:39:22 UTC
Device Index: 0
  Selected: false
  Device Name: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 20.1.6, DRM 3.63, 6.15.4-200.fc42.x86_64)

Selected: should be 'true' if enabled.

Check Tools -> Options -> OpenCL

'Allow use of OpenCL' is checked enabled.
Comment 5 Alex 2025-07-03 17:48:03 UTC
(In reply to V Stuart Foote from comment #4)
> Device Index: 0
>   Selected: false
>   Device Name: AMD Radeon RX 7900 XTX (radeonsi, navi31, LLVM 20.1.6, DRM
> 3.63, 6.15.4-200.fc42.x86_64)
> 
> Selected: should be 'true' if enabled.
> 
> Check Tools -> Options -> OpenCL
> 
> 'Allow use of OpenCL' is checked enabled.

That's the whole purpose of this BZ, when I select OpenCL, click Apply, when it asks me, I click Restart Now -> it restarts with OpenCL disabled again
Comment 6 Alex 2025-07-03 17:53:54 UTC
Here is a link how it looks: https://e.pcloud.link/publink/show?code=XZKq16Z0W35sQIxyNjBHhQwnSaPzu39c0D7
Comment 7 V Stuart Foote 2025-07-03 23:01:54 UTC
Fact that the OpenCL device is identified in opencl_devices.log and the opencl_profile.xml is generated suggests the device is seen and "tested" in  OpenCLconfig::checkimplementation()

If the vendor string reported is "AMD" but the denylist test [1] looks for "Advanced Microsystem Devices" could be an issue there.

But not clear to me how the allowed profile matches are curated, if at all, and mostly will just fallback rejection to not use OpenCL with Calc.

@quikee, anything to add?

Anyhow, seems dupe of bug 105106

=-ref-=
[1] https://opengrok.libreoffice.org/xref/core/opencl/source/openclconfig.cxx?a=true&r=d573e2ae17d2ff589ec7adc0dddf6a78db4cc93a&h=35#35