# Generic CPU and GPU loops with tiled iteration

**URL:** <https://discourse.julialang.org/t/generic-cpu-and-gpu-loops-with-tiled-iteration/20295>\
**Category:** GPU\
**Created:** [January 30, 2019, 10:11pm UTC](https://discourse.julialang.org/t/generic-cpu-and-gpu-loops-with-tiled-iteration/20295 "2019-01-30T22:11:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![datnamer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/datnamer/32/3471_2.png) [@datnamer](https://discourse.julialang.org/u/datnamer)\
**Post date:** [January 31, 2019, 12:31am UTC](https://discourse.julialang.org/t/generic-cpu-and-gpu-loops-with-tiled-iteration/20295/3 "2019-01-31T00:31:51Z")

</div>

> [@tim.holy](#):
>
> GPU kernels explicitly looping over blocks of pixels. If you do the typical one-output-pixel-per-thread then it may not be relevant.
> 
> TiledIteration’s main advantage is in reusing cache, “ha

I don’t mean images necessarily, but any generic looping operation like matrix multiply or sum. Or do you mean a pixel more generically.

Like here: [Writing fast stencil computation kernels that work on both CPUs and GPUs - #3 by maleadt](https://discourse.julialang.org/t/writing-fast-stencil-computation-kernels-that-work-on-both-cpus-and-gpus/20200/3)

---

_[View the full topic](https://discourse.julialang.org/t/generic-cpu-and-gpu-loops-with-tiled-iteration/20295)._
