gmic
gmic copied to clipboard
Q: How to use than 2 threads
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.
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.
It didn't work for patch based in-painting for me.