https://bugs.kde.org/show_bug.cgi?id=359030
--- Comment #8 from David Tschumperlé <david.tschumpe...@gmail.com> --- So, maybe more info about how multi-threading is implemented and used in G'MIC. There are two different ways for G'MIC to use multiple cores for doing calculations: 1 - Either a G'MIC filter uses one of the "built-in" command (basically one method of the CImg Library) that has been parallelized (using OpenMP directives). 2 - Either the G'MIC script that defines a filter creates a thread explicitly (there are commands to manage your own threads in G'MIC). These two cases use different libraries and configuration variables to tell the compiler to use them. You can either activate 1 or 2, or the two at the same time (which is better of course). Basically, when you compile, you need to define the following compiler flags to enable (this is a copy/paste from the official G'MIC Makefile): 1. # Flags to enable parallelization of image processing algorithms, using OpenMP. OPENMP_CFLAGS = -fopenmp -Dcimg_use_openmp OPENMP_LIBS = -lgomp 2. # Flags to enable parallel processing. PARALLEL_CFLAGS = -Dgmic_is_parallel ifneq ($(OS),Windows) PARALLEL_LIBS = -lpthread endif That's it. If you compile the G'MIC library with all those flags enabled, it should use the multi-threading capabilities at its best. -- You are receiving this mail because: You are watching all bug changes.