My task contains hundreds of thousands of convolution operations like the following one. Each cost 11s now. I wonder if anyone can help to accelerate it.
using ImageFiltering @time imfilter(Float32, rand(Int8, 300, 300, 300), rand(Int8, 100, 100, 100));
11.034938 seconds (83 allocations: 3.212 GiB, 4.00% gc time)
One way that may be useful is to call GPU while the command
imfilter(ArrayFireLibs(), rand(Int8, 300, 300, 300), rand(Int8, 100, 100, 100)) seems not to work as ArrayFire package cannot be installed by add ArrayFire.
Any help is greatly appreciated.