https://bugs.kde.org/show_bug.cgi?id=413972
Bug ID: 413972 Summary: align_image_stack and enfuse use only 1 CPU core if called by digiKam plugin, 4 CPU core on command line Product: digikam Version: 6.3.0 Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: Plugin-Generic-ExpoBlending Assignee: digikam-bugs-n...@kde.org Reporter: frerk.me...@mailbox.org Target Milestone: --- SUMMARY align_image_stack and enfuse command line tools take to long because they only use 1 core if called from the Plugin-Generic-Expoblending. If OMP_NUM_THREADS=4 is set, they are using 4 cores if called from the command line. STEPS TO REPRODUCE 1. export OMP_NUM_THREADS=4 (number of core your CPU has) 2. start digiKam from the same command line 3. use ksysguard to monitor how many cpu cores are used 4. align and enfuse 2 or more pictures with Expoblending Plugin OBSERVED RESULT 5. only the first CPU core is used 100%, the others are idle (<5%) EXPECTED RESULT 6. all cores are up to 100% usage most of the time like when called without digiKam. SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: openLEAP 15.1 (available in About System) KDE Plasma Version: 5.12.8 KDE Frameworks Version: 5.55.0 Qt Version: 5.9.7 ADDITIONAL INFORMATION Called from the digiKam Exposure Blending Plugin this always takes the time of a 1 Core System, even when I have a 4 core Intel i7. This is my benchmark with calls from the command line and different OMP_NUM_THREADS setting. Both tools are linked with the openMP library libgomp.so.1. I had to install enfuse-enblend from the KDE:graphics Repo because the one that is default in openLEAP 15.1 is to old and not linked to openMP. Problem could be upstream. I would like to know if this is a problem on other Linux distributions or SUSE Versions as well. time align_image_stack -v -c 16 -a aligned IMGP1842.JPG IMGP1843.JPG IMGP1844.JPG OMP_NUM_THREADS=4 real 0m17,917s user 0m56,392s sys 0m0,208s OMP_NUM_THREADS=1 real 0m35,746s user 0m35,521s sys 0m0,172s enfuse -c --exposure-weight=1 --saturation-weight=0.2 --contrast-weight=0.2 -v -o hdr.jpg aligned0000.tif aligned0001.tif aligned0002.tif OMP_NUM_THREADS=4 real 1m52,775s user 6m18,861s sys 0m0,172s OMP_NUM_THREADS=1 real 3m54,044s user 3m53,403s sys 0m0,120s Thanks in advance, Frerk -- You are receiving this mail because: You are watching all bug changes.