Bug 506535 - OpenCL isn't working - despite OpenCL driver is loaded on GPU
Summary: OpenCL isn't working - despite OpenCL driver is loaded on GPU
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Bundle-Windows (other bugs)
Version First Reported In: 8.7.0
Platform: Microsoft Windows Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-03 14:30 UTC by nidihi5338
Modified: 2025-10-14 13:47 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.8.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nidihi5338 2025-07-03 14:30:43 UTC
SUMMARY
I've installed latest Nvidia drivers + CUDA + CuDNN SDK as described in 
https://www.digikam.org/news/2025-06-30-8.7.0_release_announcement/

But for some reason I can't use my GPU with the option "Use OpenCL acceleration for AI models". Also the "Help ‣ Components Information" information for OpenCV says "No"

How to troubleshoot why it's not working?


STEPS TO REPRODUCE
1. Installed latest drivers + CuDNN SDK, checked that OpenCL is availble for GPU (driver khronos 3.0)
2. Testing OpenCL AI function in digikam 8.7.0
3. Shows "OpenCL is not avaialable on the system"

OBSERVED RESULT
OpenCL isn't used

EXPECTED RESULT
OpenCL can be used for AI model

SOFTWARE/OS VERSIONS
Windows:  WIN10
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Using Win10, Nvidia Gefore GTX1650
Comment 1 caulier.gilles 2025-07-03 14:43:15 UTC
CuDNN SDK is already present in the windows install. This can explain the dysfunction.
Comment 2 Maik Qualmann 2025-07-06 19:41:12 UTC
*** Bug 506689 has been marked as a duplicate of this bug. ***
Comment 3 Maik Qualmann 2025-07-07 05:44:09 UTC
*** Bug 506689 has been marked as a duplicate of this bug. ***
Comment 4 nidihi5338 2025-07-08 08:43:44 UTC
(In reply to caulier.gilles from comment #1)
> CuDNN SDK is already present in the windows install. This can explain the
> dysfunction.

OpenCL didn't worked in digikam before and after the manual CuDNN SDK installation.
Comment 5 Maik Qualmann 2025-08-13 15:35:39 UTC
*** Bug 508199 has been marked as a duplicate of this bug. ***
Comment 6 Alan 2025-08-13 16:22:12 UTC
**Added To Duplicate 508199**

HI.  I did some additional digging around after reaching out to another user. I had to redownload DNNs that were not included with the installation package, and I was able to get the test to confirm my GPU.

Got them at :

https://files.kde.org/digikam/facesengine/dnnface/
https://files.kde.org/digikam/facesengine/shape-predictor/

A suggestion would be to have these included within the Installation Package of the software, to prevent this from occurring for other users.

Kind Regards

Alan
Comment 7 caulier.gilles 2025-08-17 14:16:11 UTC
@Alan,

The digiKam 8.8.0 pre-release Windows installer will be updated from Qt framework 6.8.3 to 6.9.0 in one hour. I removed the NVIDIA drivers from this bundle. The file will be available soon at this place:

https://files.kde.org/digikam/

Please test give us a feedback to see if the dysfunction still reproducible.
Thanks in advance

Gilles Caulier
Comment 8 Chrisch 2025-10-06 13:19:59 UTC
Having the same problem: OpenCL availability: no

I'm running digikam 8.8.0 on Windows 11 on a Lenovo P14s Gen3 with a built-in Intel GPU and a NVIDIA T550 Laptop GPU.

With other applications I can use CUDA and OpenCL without any problems. 

Any ideas why digikam cannot use the OpenCL? Must I download and install some files manually? Or should digikam support OpenCL out of the box?
Comment 9 caulier.gilles 2025-10-06 15:40:02 UTC
OpenCL checks are provided by OpenCV framework. In fact, in digiKam, It's OpenCV which uses OpenCL at all.

With 8.7.0, i includ the NVIDIA dlls for the OPenCL/DNN stuff. This make a mess with the version already installed by the users. So in 8.8.0, i removed this layer.

Please try with 8.8.0 pre-release available here :

https://files.kde.org/digikam/

Best regards

Gilles Caulier
Comment 10 Joseph Slaker 2025-10-13 16:08:15 UTC
Just confirming that the 8.8 pre-release package worked for me. 

I needed to clear the facesengine directory and redownload the binaries first, then OpenCL support worked after restarting the application.
Comment 11 caulier.gilles 2025-10-14 13:47:31 UTC
Thanks Joseph for the feedback. I close this file now.