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.
Created attachment 143723 [details] pause any computing for the intel igpu (called "folding slot)
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
opencv chooses by default the nvidia dGPU, then no problem. thanks
The Help/Components Info has a new section named "OpenCV Configuration" where OpenCL usage is listed. https://i.imgur.com/bCtYFEL.png Gilles Caulier
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