Skip to content

Commit 77d6fe5

Browse files
committed
Reduce instead of prefixSum
1 parent 3616f94 commit 77d6fe5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/GraphBLAS-sharp.Backend/Common/ClArray.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ module ClArray =
647647
let count<'a> (predicate: Expr<'a -> bool>) (clContext: ClContext) workGroupSize =
648648

649649
let sum =
650-
PrefixSum.standardExcludeInPlace clContext workGroupSize
650+
Reduce.reduce <@ (+) @> clContext workGroupSize
651651

652652
let getBitmap =
653653
Map.map<'a, int> (Map.predicateBitmap predicate) clContext workGroupSize

0 commit comments

Comments
 (0)