<doc> typos fixed from PR
# Reductions support
Tornado now supports basic reductions for `int`, `float` and `double` data types for the operators `+` and `*`.
-This wiki shows how to program with reduction in Tornado.
-More examples can be found in `examples/src/main/java/uk/ac/manchester/tornado/unittests/reductions` directory of the Tornado SDK.
+This wiki shows how to program with reductions in Tornado.
+More examples can be found in the `examples/src/main/java/uk/ac/manchester/tornado/unittests/reductions` directory of the Tornado SDK.
## Example
@@ -18,14 +18,14 @@ public static void reductionAddFloats(float[] input, @Reduce float[] result) {
The code is very similar to a Java sequential reduction but with `@Reduce` and `@Parallel` annotations.
The `@Reduce` annotation is associated with a variable, in this case, with the `result` float array.
Then, we annotate the loop with `@Parallel`.
-The OpenCL JIT compiler generates OpenCL parallel version for this code that can on GPU and CPU.
+The OpenCL JIT compiler generates OpenCL parallel version for this code that can run on GPU and CPU.
### Create the TaskSchedule
-Tornado generates different OpenCL code depending on target device.
-If the target is the GPU, it performs full reductions within work-groups.
-If the target is the CPU, it performs full reduction within the same thread-id.
+Tornado generates different OpenCL code depending on the target device.
+If the target is a GPU, it performs full reductions within work-groups.
+If the target is a CPU, it performs full reduction within the same thread-id.
Therefore, the size of the output varies depending on the device.
This also means that a final reduction has to be performed after the GPU/Multi-threaded CPU execution.
Line 3 obtains the size of the output when the target device is a GPU.
@@ -155,7 +155,7 @@ __kernel void reductionAddFloats(__global uchar *_heap_base, ulong _frame_base,
The generated reduction computes a partial reduction.
It computes a full reduction per work-group on the GPU.
-The final reduction will be compute on the CPU for all the work-groups into a single scalar value.
+The final reduction will be computed on the CPU for all the work-groups into a single scalar value.
### Final reduction
@@ -203,7 +203,7 @@ public void testSumFloats() {
## Map/Reduce
This section shows an example of how to perform map/reduce operations within Tornado.
-Each of the operation corresponds to a task as follows in the next example:
+Each of the operations corresponds to a task as follows in the next example:
```java
@@ -261,7 +261,7 @@ public void testMapReduce() {
## Reduction with dependencies
Tornado also supports reductions using data dependencies.
-The next example illustrates this use:
+The next example illustrates this case:
```java
