Skip to content

Commit 04f2a77

Browse files
author
Andrew Tao
committed
Make parallel_scan work on noncommutative functions
1 parent 3c807b9 commit 04f2a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/task.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ let parallel_scan pool op elements =
267267
let x = ref prefix_s.(n/p - 1) in
268268
for i = 2 to p do
269269
let ind = i * n / p - 1 in
270-
x := op prefix_s.(ind) !x;
270+
x := op !x prefix_s.(ind);
271271
prefix_s.(ind) <- !x
272272
done;
273273

0 commit comments

Comments
 (0)