Bug 445740 - [enhancement] opencl settings
Summary: [enhancement] opencl settings
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Misc (other bugs)
Version First Reported In: 7.3.0
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-19 09:41 UTC by Philippe ROUBACH
Modified: 2023-05-28 08:07 UTC (History)
2 users (show)

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


Attachments
remove a gpu (called "slot") (124.73 KB, image/png)
2021-11-19 09:41 UTC, Philippe ROUBACH
Details
pause any computing for the intel igpu (called "folding slot) (157.26 KB, image/png)
2021-11-19 09:42 UTC, Philippe ROUBACH
Details

Note You need to log in before you can comment on or make changes to this bug.
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