0Pricing
CUDA Academy · Lesson

Handling Edge Tiles

Bounds and padding at array borders.

The Boundary Problem

Real arrays rarely divide evenly into tiles. The last tile at each border may run off the end of your data.

Out-of-Range Reads

A thread whose global index exceeds the array size will read garbage or crash. Edge tiles must guard every access.

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