No opencl with Intel B580 (Asrock Challenger)

This is a fresh Ubuntu 24.04.2 install. I don’t know if I have to install proprietary drivers, there are none offered

$ darktable-cli setubal.orf setubal.orf.xmp test.jpg --core -d perf -d opencl
darktable 5.2.0
Copyright (C) 2012-2025 Johannes Hanika and other contributors.

Compile options:
Bit depth → 64 bit
Debug → DISABLED
SSE2 optimizations → ENABLED
OpenMP → ENABLED
OpenCL → ENABLED
Lua → ENABLED - API version 9.5.0
Colord → ENABLED
gPhoto2 → ENABLED
OSMGpsMap → ENABLED - map view is available
GMIC → ENABLED - Compressed LUTs are supported
GraphicsMagick → ENABLED
ImageMagick → DISABLED
libavif → DISABLED
libheif → ENABLED
libjxl → ENABLED
LibRaw → ENABLED - Version 0.22.0-Devel202502
OpenJPEG → ENABLED
OpenEXR → ENABLED
WebP → ENABLED

See resources | darktable for detailed documentation.
See Sign in to GitHub · GitHub to report bugs.

 0.0285 [opencl_init] opencl disabled via darktable preferences
 0.0285 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL'
 0.0285 [dt_dlopencl_init] could not find default opencl runtime library 'libOpenCL.so'
 0.0286 [opencl_init] opencl library 'libOpenCL.so.1' found on your system and loaded, preference 'default path'
 0.0286 [opencl_init] 0 platforms detected, error: Unknown OpenCL error
 0.0286 [opencl_init] FINALLY: opencl PREFERENCE=OFF is NOT AVAILABLE and NOT ENABLED.
 0.4260 [xmp_import] creating tag: darktable|format|orf
 0.8631 [dt_dev_load_raw] loading the image. took 0.432 secs (0.482 CPU)
 0.9356 [export] creating pixelpipe took 0.070 secs (1.286 CPU)
 0.9358 [dev_pixelpipe] took 0.000 secs (0.000 CPU) initing base buffer [export]
 0.9453 [dev_pixelpipe] took 0.009 secs (0.091 CPU) [export] processed `rawprepare' on CPU, blended on CPU
 0.9571 [dev_pixelpipe] took 0.012 secs (0.094 CPU) [export] processed `temperature' on CPU, blended on CPU
 0.9789 [dev_pixelpipe] took 0.022 secs (0.480 CPU) [export] processed `highlights' on CPU, blended on CPU
 0.9910 [dev_pixelpipe] took 0.012 secs (0.133 CPU) [export] processed `hotpixels' on CPU, blended on CPU
 1.0745 [dev_pixelpipe] took 0.083 secs (1.809 CPU) [export] processed `demosaic' on CPU, blended on CPU
 3.0527 [dev_pixelpipe] took 1.978 secs (36.156 CPU) [export] processed `denoiseprofile' on CPU, blended on CPU
 3.4594 [dev_pixelpipe] took 0.407 secs (6.574 CPU) [export] processed `lens' on CPU, blended on CPU
 3.5557 [dev_pixelpipe] took 0.096 secs (1.762 CPU) [export] processed `ashift' on CPU, blended on CPU
 3.6025 [dev_pixelpipe] took 0.047 secs (1.111 CPU) [export] processed `exposure' on CPU, blended on CPU
 3.6316 [dev_pixelpipe] took 0.029 secs (0.695 CPU) [export] processed `colorin' on CPU, blended on CPU
 3.6589 [dt_ioppr_transform_image_colorspace] IOP_CS_LAB-->IOP_CS_RGB took 0.027 secs (0.646 CPU) [channelmixerrgb]
 3.7850 [dev_pixelpipe] took 0.153 secs (3.669 CPU) [export] processed `channelmixerrgb' on CPU, blended on CPU
 3.8125 [dt_ioppr_transform_image_colorspace] IOP_CS_RGB-->IOP_CS_LAB took 0.027 secs (0.670 CPU) [atrous]
 4.9553 [dev_pixelpipe] took 1.170 secs (25.338 CPU) [export] processed `atrous' on CPU, blended on CPU
 4.9835 [dt_ioppr_transform_image_colorspace] IOP_CS_LAB-->IOP_CS_RGB took 0.028 secs (0.665 CPU) [colorbalancergb]
 5.5530 [dev_pixelpipe] took 0.598 secs (14.237 CPU) [export] processed `colorbalancergb' on CPU, blended on CPU
 5.5852 [dev_pixelpipe] took 0.032 secs (0.742 CPU) [export] processed `rgblevels' on CPU, blended on CPU
 5.7674 [dev_pixelpipe] took 0.182 secs (4.367 CPU) [export] processed `sigmoid' on CPU, blended on CPU
 5.7953 [dt_ioppr_transform_image_colorspace] IOP_CS_RGB-->IOP_CS_LAB took 0.028 secs (0.671 CPU) [bilat]
 6.3528 [dev_pixelpipe] took 0.585 secs (8.274 CPU) [export] processed `bilat' on CPU, blended on CPU
 6.4099 [dev_pixelpipe] took 0.057 secs (1.352 CPU) [export] processed `colorout' on CPU, blended on CPU
 6.4534 [resample_plain] took 0.043 secs (1.051 CPU) 1:1 copy/crop of 8065x6046 pixels
 6.4535 [dev_pixelpipe] took 0.044 secs (1.052 CPU) [export] processed `finalscale' on CPU, blended on CPU
 6.4535 [dev_process_export] pixel pipeline processing took 5.518 secs (107.968 CPU)
 6.9745 [export_job] exported to `test.jpg'

You need the Intel drivers installed. Do you have those?

1 Like

No I don’t, because I have no info about this.

Normally Ubuntu offers to install drivers from vendors, like nvidia. But in this case nothing is offered.

Is there a tutorial how to do this?

Where can I download it? Searched for it, but didn’t find the right site.

My kernel is 6.11

sudo apt install intel-opencl-icd should do the trick.

1 Like

The existing repos show:

intel-opencl-icd/noble 23.43.27642.40-1ubuntu3 amd64

I found in the meantime Installing Client GPUs — Intel® software for general purpose GPU capabilities documentation

For Ubuntu 25.04 and 24.04, we offer the intel-graphics Personal Package Archive (PPA).

There are a lot of instructions. what I have to install.

I remember installing a nvidia driver manually can, but must not, be a great challenge, if you do something wrong.

Using Ubuntu 24.04 with Lunar Lake or Battlemage requires your system to be running the hardware enablement (HWE) kernel.

I am writing at another machine, but I think, I do not use a hwe-kernel.

A HWE kernel is not hard to install.

1 Like

The hwe-kernel was already installed. The question is, if it is used.

~$ dpkg -l | grep linux-image
ii  linux-image-6.11.0-29-generic                  6.11.0-29.29~24.04.1                       amd64        Signed kernel image generic
ii  linux-image-generic-hwe-24.04                  6.11.0-29.29~24.04.1                       amd64        Generic Linux kernel image

It works now somehow, but it should be faster.

Following Installing Client GPUs — Intel® software for general purpose GPU capabilities documentation I did:

sudo add-apt-repository -y ppa:kobuk-team/intel-graphics

sudo apt-get install -y libze-intel-gpu1 libze1 intel-metrics-discovery intel-opencl-icd clinfo intel-gsc

sudo apt-get install -y intel-media-va-driver-non-free libmfx-gen1 libvpl2 libvpl-tools libva-glx2 va-driver-all vainfo

Don’t forget to start Darktable after the installation and check what it says. I had to activate opencli in the settings.

Full log attached

$ darktable-cli setubal.orf setubal.orf.xmp test.jpg --core -d perf -d opencl
---
     3.4343 [dev_process_export] pixel pipeline processing took 2.408 secs (3.537 CPU)
     3.9460 [export_job] exported to `test_05.jpg'
 [opencl_summary_statistics] device 'Intel(R) OpenCL Graphics Intel(R) Arc(TM) B580 Graphics' id=0: 262 out of 262 events were successful and 0 events lost. max event=261

setubal-b580-log.txt (10.9 KB)

There is something odd. A couple of the modules are using tiles, but your card reports 12gb of memory.

What happens if you set the resources to very fast GPU?

1 Like

Then do uname -a and you should be able to tell.

1 Like

Sorry, can’t find this again. The options are in German. Is it posstivle to set the whole interface to English?

Can I change this via ssh? I am doing a lot via ssh, because the machine is 50m away.

This doesn’t show hwe.

Can you tell me how to query if a hwe-kernel is used or how I set the hwe-kernel as default, which is kept after an update.

Maybe I do not use the hwe-kernel, but the normal kernel.

Apparently you need to do sudo apt-get install --install-recommends linux-generic-hwe-24.04, then reboot, make sure you select the kernel in GRUB, then you can try hwe-support-status --verbose. I’m not an ubuntu user, so…

1 Like

Why do you think so. Above I showed that dpkg means, that hwe is installed.

When I try to install the hwe-kernel it says, it is installed already, but beside the normal kernel

~# hwe-support-status --verbose
Your Hardware Enablement Stack (HWE) is supported until Mai 2029.

I think the problem is not, if hwe is installed, but if it is used.

:~$ uname -a
Linux sv.local 6.11.0-29-generic #29~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jun 26 14:16:59 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

That’s what ubuntu says to do. Straight from the ubuntu HWE site. I’d guess that the command should enable the HWE kernel for you too.

1 Like

the output is not in English, so I tell you what it said, when I tried to install as you posted: “nothing to do, already installed”.

If i try to remove the non-hwe-kernel with apt, it wants to remove the hwe-kernel too, which is not a good idea to remove all kernels :wink:

reboot, and select the HWE kernel at the grub boot screen.

1 Like

This is not possible. There is 1 Ubunut installation with 2 kernels, but no grubmenu.

I thought to modify /etc/default/grub like this:

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

This should work at least for the moment, no idea what happens after a kernel update. But I can’t select the hwe kernel, although it is installed.

Any hint fot the “very fast gpu”-setting?

It looks like the hwe-kernel is a metapackage. So the problem is elsewhere.

Its in the manual. Preferences…

1 Like

That’s clear. In which section? I have to translate it from English.