Stencil and Sliding Windows
Tiling neighborhoods with halo cells.
What a Stencil Is
A stencil computes each output from a fixed neighborhood of inputs, like averaging a pixel with the cells around it.
The Sliding Window
As you move along the array, the input window slides by one. Consecutive outputs share most of their inputs, so reuse is huge.
All lessons in this course
- The Data Reuse Problem
- The Load-Sync-Compute Pattern
- Stencil and Sliding Windows
- Handling Edge Tiles