gmic icon indicating copy to clipboard operation
gmic copied to clipboard

Q: How to use than 2 threads

Open cryptomilk opened this issue 4 years ago • 2 comments

Hi,

when looking at the code, gmic uses openmp. However I do not see it so set any threads. So it uses only 2 threads. Is there a way to tell it to use more than 2 threads?

export OMP_NUM_THREADS=24 doesn't work for me.

cryptomilk avatar Nov 10 '21 20:11 cryptomilk

By default, it should use all the available CPU cores available (as many threads as there are cores). If it doesn't do that for you, maybe there are some system rules defined specific to OpenMP that limits the number of threads ? I use the OMP_NUM_THREADS trick here (but to limit the number of threads), and it works for me.

dtschump avatar Dec 22 '21 18:12 dtschump

It didn't work for patch based in-painting for me.

cryptomilk avatar Dec 25 '21 17:12 cryptomilk