Stream Compaction

Filtering on a GPU: flag what survives, scan to find out where it lands, then gather it into a packed array.

5 tasks

  1. Filter Has No Kernel
  2. Where Do I Land?
  3. Turn the Scatter Around
  4. Find It in log n
  5. Payoff: How Many Survived

Start this module →

This page is an interactive exercise — the editor, the GPU runner and your saved progress need JavaScript. The text above is the full brief.