Bug 445740

Summary: [enhancement] opencl settings
Product: [Applications] digikam Reporter: Philippe ROUBACH <philippe.roubach>
Component: Setup-MiscAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: wishlist CC: caulier.gilles, metzpinguin
Priority: NOR    
Version First Reported In: 7.3.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 8.1.0
Sentry Crash Report:
Attachments: remove a gpu (called "slot")
pause any computing for the intel igpu (called "folding slot)

Description Philippe ROUBACH 2021-11-19 09:41:19 UTC
Created attachment 143722 [details]
remove a gpu (called "slot")

SUMMARY

1. How to know that digikam uses really opencl if we uncheck "disable opncl .." in system tab ?

An indicator  saying " all is ok " would be a good thing.
 
2. in case we get 2 gpus what opencl is used ?

I get an igpu (intel HD graphics 630) and a discrete gpu (nvidia GeForce GTX 730).

My monitor is connected to the igpu.
I use the gpu for scientific computing.

Intel OpenCL is installed for the intel igpu.
Nvidia OpenCL is installed for NVIDIA GPU.
CUDA is installed for Nvidia GPU.

I can set the scientific computing to not use the intel igpu according to get no issue displaying the desktop because the igpu is too weak.

Some settings listing all the computing software (intel OpenCL, NVIDIA OpenCL, NVIDIA CUDA would be a good thing.
The ability to disable/enable each one according to demand for scientific program what ones to use would be a good thing.

I joined the settings GUI of the scientific program where we can remove the use of a gpu or pause the use of the intel igpu.
Comment 1 Philippe ROUBACH 2021-11-19 09:42:20 UTC
Created attachment 143723 [details]
pause any computing for the intel igpu (called "folding slot)
Comment 2 Maik Qualmann 2021-11-19 11:35:54 UTC
In the digiKam system settings, the option for OpenCL is a pure OFF switch. We don't recommend using OpenCL, which comes with memory leaks and crashes with OpenCV and face detection. You can check whether OpenCV is using the OpenCL with the command "opencv_version --opencl". If necessary, you can set environment variables and select a special GPU. We are not planning to build a GPU configuration into digiKam at the moment.

Maik
Comment 3 Philippe ROUBACH 2021-11-19 11:57:56 UTC
opencv chooses by default the nvidia dGPU, then no problem.

thanks
Comment 4 caulier.gilles 2023-05-17 15:20:01 UTC
The Help/Components Info has a new section named "OpenCV Configuration" where OpenCL usage is listed.

https://i.imgur.com/bCtYFEL.png

Gilles Caulier
Comment 5 caulier.gilles 2023-05-28 08:07:58 UTC
Git commit 013c0abe8e049d3b3371115a0f0e341436496a07 by Gilles Caulier.
Committed on 28/05/2023 at 08:06.
Pushed by cgilles into branch 'master'.

Enable OpenCL options with OpenCV from Flatpak bundle generated from KDE infra.

M  +9    -8    project/bundles/flatpak/org.kde.digikam.json

https://invent.kde.org/graphics/digikam/-/commit/013c0abe8e049d3b3371115a0f0e341436496a07