# Stream Compaction

*Module of the free GPU.js GPGPU course · 5 tasks*

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

## Tasks

1. [Filter Has No Kernel](https://gpu.rocks/learn/stream-compaction-0aed2e43/1.md)
2. [Where Do I Land?](https://gpu.rocks/learn/stream-compaction-0aed2e43/2.md)
3. [Turn the Scatter Around](https://gpu.rocks/learn/stream-compaction-0aed2e43/3.md)
4. [Find It in log n](https://gpu.rocks/learn/stream-compaction-0aed2e43/4.md)
5. [Payoff: How Many Survived](https://gpu.rocks/learn/stream-compaction-0aed2e43/5.md)

---

Interactive version: https://gpu.rocks/learn/stream-compaction-0aed2e43
