Introducing Reductions
Reductions
By now, we've spent a lot of time in this tutorial talking about how to decompose problems into chares and distribute them across processors. That's great, but what good is splitting up your problem if you can't put it back together? When you need to combine values from an array of chares, you can turn to one of the most important parallel programming tools: a reduction.
Reductions turn data that is scattered across a chare array into a single value using a reduction operation, such as sum or maximum. Each of the chares in the array contribute some local data
"Hello World" Code
The "Hello" Chare Class
|
|