← Back to examples

Decomposition: two ways to split the same job

The job: process a big array. Toggle between data decomposition (same operation, different slices) and functional/task decomposition (a pipeline of different operations). Slide the worker count for the data view and watch the chunks resize.

Workers: 4

Data / Domain Decomposition

Same operation on every slice. This is data parallelism — what GPUs live for.
The full array (24 items):