Skip to content

Commit 6f7b5ee

Browse files
committed
fix initial value
1 parent d3a5c85 commit 6f7b5ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/english/hpc/pipelining/throughput.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ But we can go higher than that. The *throughput* of `add`[^throughput] is 2 on m
4141
The solution is to use *two* accumulators and just sum up odd and and even elements separately:
4242

4343
```c++
44-
int s0 = 0, s1 = 1;
44+
int s0 = 0, s1 = 0;
4545
s0 += a[0];
4646
s1 += a[1];
4747
s0 += a[2];

0 commit comments

Comments
 (0)