File tree Expand file tree Collapse file tree
src/GraphBLAS-sharp.Backend
tests/GraphBLAS-sharp.Tests/Common Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ open GraphBLAS.FSharp.Backend.Quotes
55open Microsoft.FSharp .Control
66open Microsoft.FSharp .Quotations
77
8- module Fold =
8+ module Reduce =
99 let private runGeneral ( clContext : ClContext ) ( workGroupSize : int ) scan scanToCell =
1010
1111 fun ( processor : MailboxProcessor < _ >) ( inputArray : ClArray < 'a >) ->
Original file line number Diff line number Diff line change @@ -249,7 +249,7 @@ module DenseVector =
249249 getValuesAndIndices clContext workGroupSize
250250
251251 let reduce =
252- Fold .reduce clContext workGroupSize opAdd
252+ Reduce .reduce clContext workGroupSize opAdd
253253
254254 fun ( processor : MailboxProcessor < _ >) ( vector : ClArray < 'a option >) ->
255255
Original file line number Diff line number Diff line change @@ -349,6 +349,6 @@ module SparseVector =
349349 let reduce < 'a when 'a : struct > ( clContext : ClContext ) ( workGroupSize : int ) ( opAdd : Expr < 'a -> 'a -> 'a >) =
350350
351351 let reduce =
352- Fold .reduce clContext workGroupSize opAdd
352+ Reduce .reduce clContext workGroupSize opAdd
353353
354354 fun ( processor : MailboxProcessor < _ >) ( vector : ClVector.Sparse < 'a >) -> reduce processor vector.Values
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ let makeTest
5959
6060
6161let testFixtures config wgSize q plus plusQ zero filter name =
62- let reduce = Fold .reduce context wgSize plusQ
62+ let reduce = Reduce .reduce context wgSize plusQ
6363
6464 makeTest q reduce plus zero filter
6565 |> testPropertyWithConfig config ( sprintf " Correctness on %s " name)
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ let makeTest (q: MailboxProcessor<_>) sum plus zero isEqual (filter: 'a [] -> 'a
4646 |> Expect.equal actualSum expectedSum
4747
4848let testFixtures config wgSize q plus ( plusQ : Expr < 'a -> 'a -> 'a >) zero isEqual filter name =
49- let sum = Fold .sum context wgSize plusQ zero
49+ let sum = Reduce .sum context wgSize plusQ zero
5050
5151 makeTest q sum plus zero isEqual filter
5252 |> testPropertyWithConfig config ( sprintf " Correctness on %s " name)
You can’t perform that action at this time.
0 commit comments