0PricingLogin
CUDA Academy · Lesson

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

  1. The Data Reuse Problem
  2. The Load-Sync-Compute Pattern
  3. Stencil and Sliding Windows
  4. Handling Edge Tiles
← Back to CUDA Academy