can gmic run on gpu so that all operations that require matrix - matrix multiplications etc can be transferred to the gpu?
I believe gmic is CPU bound.
Unfortunately, at the moment, no (but I did request it; passed info to David about someone who implemented Greycstoration plugin with gpu acceleration as well (before G’MIC, David created GreyC plugin which basically is an anisotrophic smoothing plugin). Still, originally, G’MIC only was able to take advantage of a single CPU, but now, can handle multiple CPUs if you have them. I still have some hope that one day G’MIC can take advantage of GPU too. Can you imagine 100s of CPUs to run G’MIC? lol
G’MIC does not use GPU capabilities. But, the algorithms it has are usually massively parallelized (through the OpenMP library), so if you have 100 CPUs to run G’MIC, it will be way faster than with a single core.
I personally run G’MIC everyday on my 24-cores PC, and I can assure you this is fast
24-cores? What PC do you own, David. I thought 8 (with 7 virtual cores) was the max.
$ cat /proc/cpuinfo
says there is a bunch of Intel(R) Xeon(R) CPU E5-2630 v2 @ 2.60GHz,
This is how looks a call to htop
:
I feel quite comfortable with this PC (it’s just a DELL, bought approx $2600).
Ah; Xeon’s are and have always been used in the cadillac platforms, David. Which Dell did you get? I have an 8-core AMD; I’m so unworthy. lolol
David, remember that you are comparing with thousands of cores in TITANX :).
Wait, thousands of cores that cannot access memory at non-aligned slots without a speed bottleneck
And with a lot of other limitations, like it requires to rewrite/refactor a lot of code to make algorithms use GPU. On the contrary, adding OpenMP pragmas in the source code is almost straightforward, can manage very complex operations, and in 5 years, every cheap computer will have more than 50 cores…
It doesn’t worth the amount of work it requires to port code for GPUs (at least in my humble opinion).
I have a very faint memory that Donald E Knuth said, half a Century ago: if I have 4k core memory and seven tape drives, of which three also can read backwards, then I can do anything.
Agree 100%. The hardware model of multiple cores requires almost no code reorg in applications of interest here, and average computers are far more likely able to take advantage of multi-core optimizations than gpu equivalent. That may change as chip makers put gpus on the cpu die, but physics will make these a challenge to power and cool in small and mobile platforms.
Last year, I was looking into purchasing a gpu card to take advantage of darktable optimizations, but now I’m thinking about swapping out my 4-core amd for a 6- or 8-core to take advantage of thread optimizations in my homebrew program and g’mic.
Hey, David. I wonder how fast G’MIC can run on this processor. lol
https://www.sciencedaily.com/releases/2016/06/160617215802.htm
You’ll know in 8-10 years, when every cheap PC will have at least 512-1024 CPU cores
Just be patient !
As cheap (need to be since I only have a part time job unfortunately now) as I am, I’ll still be unworthy with my 8-core AMD, David. lol