# What's the status of image convolutions on CPU & GPU?

**URL:** <https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093>\
**Category:** GPU\
**Created:** [September 26, 2017, 9:21pm UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093 "2017-09-26T21:21:28Z")\
**Posts on this page:** 5\
**Page:** 3

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 23, 2026, 11:51pm UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093/41 "2026-07-23T23:51:59Z")

</div>

Reviving this old discussion because it’s not clear what the community has settled on after all these years. What is the currently recommended way to perform `imfilter` on GPUs? Is there a package that provides GPU-accelerated array filtering with CUDA.jl?

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [July 24, 2026, 9:12am UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093/42 "2026-07-24T09:12:01Z")

</div>

For my use case at work with relatively small kernels, best success so far has been a fairly naive spatial implementation with KernelAbstractions.jl.

---

<div class="post-metadata">

**Author:** ![juliohm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/juliohm/32/215266_2.png) [@juliohm](https://discourse.julialang.org/u/juliohm)\
**Post date:** [July 24, 2026, 10:51am UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093/43 "2026-07-24T10:51:16Z")

</div>

Thank you @GunnarFarneback. Do you have an example of a working implementation that you could share? I’d like to test the speedup for small kernels.

---

<div class="post-metadata">

**Author:** ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)\
**Post date:** [July 24, 2026, 11:59am UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093/44 "2026-07-24T11:59:13Z")

</div>

I created a vibe coded filtering package for a project of mine:

> **[GitHub - SimonDanisch/GPUFiltering.jl: Filtering for Julia and cross GPU via...](https://github.com/SimonDanisch/GPUFiltering.jl)**
>
> Filtering for Julia and cross GPU via KernelAbstractions

It’s a couple of iterations away from me being happy with how to structure the kernels and the general architecture. Because of that, I wouldn’t even have uploaded it to github at this stage, if it wasn’t for this discussion 😉  
But I guess it does some filtering operations on the GPU at decent speed, so maybe worth a look.  
I will polish it in the coming months, so if you’re interested, please try it out and feel free to make PRs with claude code or so 😉

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [July 24, 2026, 8:17pm UTC](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093/45 "2026-07-24T20:17:02Z")

</div>

Not at the moment since I’m on vacation but it was about as basic a loop over the kernel as you can make it.

[Previous page](https://discourse.julialang.org/t/whats-the-status-of-image-convolutions-on-cpu-gpu/6093.md?page=2)
