11namespace GraphBLAS.FSharp.Benchmarks
22
33open System.IO
4+ open GraphBLAS.FSharp .Backend .Quotes
45open GraphBLAS.FSharp .IO
56open BenchmarkDotNet.Attributes
67open BenchmarkDotNet.Configs
@@ -222,7 +223,7 @@ module M =
222223type EWiseAddBenchmarks4Float32COOWithoutDataTransfer () =
223224
224225 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< float32>, float32>(
225- ( fun context wgSize -> COOMatrix.elementwise context StandardOperations .float32Sum wgSize),
226+ ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations .float32Sum wgSize),
226227 float32,
227228 ( fun _ -> Utils.nextSingle ( System.Random())),
228229 COOMatrix< float32>. ToBackend
@@ -234,7 +235,7 @@ type EWiseAddBenchmarks4Float32COOWithoutDataTransfer() =
234235type EWiseAddBenchmarks4Float32COOWithDataTransfer () =
235236
236237 inherit EWiseAddBenchmarksWithDataTransfer< ClCOOMatrix< float32>, float32>(
237- ( fun context wgSize -> COOMatrix.elementwise context StandardOperations .float32Sum wgSize),
238+ ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations .float32Sum wgSize),
238239 float32,
239240 ( fun _ -> Utils.nextSingle ( System.Random())),
240241 COOMatrix< float32>. ToBackend,
@@ -248,7 +249,7 @@ type EWiseAddBenchmarks4Float32COOWithDataTransfer() =
248249type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer () =
249250
250251 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< bool>, bool>(
251- ( fun context wgSize -> COOMatrix.elementwise context StandardOperations .boolSum wgSize),
252+ ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations .boolSum wgSize),
252253 ( fun _ -> true ),
253254 ( fun _ -> true ),
254255 COOMatrix< bool>. ToBackend
@@ -261,7 +262,7 @@ type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer() =
261262type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer () =
262263
263264 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< float32>, float32>(
264- ( fun context wgSize -> CSRMatrix.elementwise context StandardOperations .float32Sum wgSize),
265+ ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations .float32Sum wgSize),
265266 float32,
266267 ( fun _ -> Utils.nextSingle ( System.Random())),
267268 CSRMatrix< float32>. ToBackend
@@ -274,7 +275,7 @@ type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer() =
274275type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer () =
275276
276277 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< bool>, bool>(
277- ( fun context wgSize -> CSRMatrix.elementwise context StandardOperations .boolSum wgSize),
278+ ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations .boolSum wgSize),
278279 ( fun _ -> true ),
279280 ( fun _ -> true ),
280281 CSRMatrix< bool>. ToBackend
@@ -288,7 +289,7 @@ type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer() =
288289type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer () =
289290
290291 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< bool>, bool>(
291- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context StandardOperations .boolSumAtLeastOne wgSize),
292+ ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations .boolSumAtLeastOne wgSize),
292293 ( fun _ -> true ),
293294 ( fun _ -> true ),
294295 COOMatrix< bool>. ToBackend
@@ -300,7 +301,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer() =
300301type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer () =
301302
302303 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< bool>, bool>(
303- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context StandardOperations .boolSumAtLeastOne wgSize),
304+ ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations .boolSumAtLeastOne wgSize),
304305 ( fun _ -> true ),
305306 ( fun _ -> true ),
306307 CSRMatrix< bool>. ToBackend
@@ -312,7 +313,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer() =
312313type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer () =
313314
314315 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< float32>, float32>(
315- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context StandardOperations .float32SumAtLeastOne wgSize),
316+ ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations .float32SumAtLeastOne wgSize),
316317 float32,
317318 ( fun _ -> Utils.nextSingle ( System.Random())),
318319 COOMatrix< float32>. ToBackend
@@ -324,7 +325,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer() =
324325type EWiseAddAtLeastOneBenchmarks4Float32CSRWithoutDataTransfer () =
325326
326327 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< float32>, float32>(
327- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context StandardOperations .float32SumAtLeastOne wgSize),
328+ ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations .float32SumAtLeastOne wgSize),
328329 float32,
329330 ( fun _ -> Utils.nextSingle ( System.Random())),
330331 CSRMatrix< float32>. ToBackend
0 commit comments