11namespace GraphBLAS.FSharp.Benchmarks
22
33open System.IO
4- open GraphBLAS.FSharp
54open GraphBLAS.FSharp .IO
65open BenchmarkDotNet.Attributes
76open BenchmarkDotNet.Configs
87open BenchmarkDotNet.Columns
98open Brahma.FSharp
9+ open GraphBLAS.FSharp .Objects
1010open GraphBLAS.FSharp .Backend .Objects
1111open GraphBLAS.FSharp .Backend .Matrix .COO
1212open GraphBLAS.FSharp .Backend .Matrix .CSR
13+ open GraphBLAS.FSharp .Backend .Common
1314
1415type Config () =
1516 inherit ManualConfig()
@@ -221,7 +222,7 @@ module M =
221222type EWiseAddBenchmarks4Float32COOWithoutDataTransfer () =
222223
223224 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< float32>, float32>(
224- ( fun context wgSize -> COOMatrix.elementwise context Backend.Common. StandardOperations.float32Sum wgSize),
225+ ( fun context wgSize -> COOMatrix.elementwise context StandardOperations.float32Sum wgSize),
225226 float32,
226227 ( fun _ -> Utils.nextSingle ( System.Random())),
227228 COOMatrix< float32>. ToBackend
@@ -233,7 +234,7 @@ type EWiseAddBenchmarks4Float32COOWithoutDataTransfer() =
233234type EWiseAddBenchmarks4Float32COOWithDataTransfer () =
234235
235236 inherit EWiseAddBenchmarksWithDataTransfer< ClCOOMatrix< float32>, float32>(
236- ( fun context wgSize -> COOMatrix.elementwise context Backend.Common. StandardOperations.float32Sum wgSize),
237+ ( fun context wgSize -> COOMatrix.elementwise context StandardOperations.float32Sum wgSize),
237238 float32,
238239 ( fun _ -> Utils.nextSingle ( System.Random())),
239240 COOMatrix< float32>. ToBackend,
@@ -247,7 +248,7 @@ type EWiseAddBenchmarks4Float32COOWithDataTransfer() =
247248type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer () =
248249
249250 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< bool>, bool>(
250- ( fun context wgSize -> COOMatrix.elementwise context Backend.Common. StandardOperations.boolSum wgSize),
251+ ( fun context wgSize -> COOMatrix.elementwise context StandardOperations.boolSum wgSize),
251252 ( fun _ -> true ),
252253 ( fun _ -> true ),
253254 COOMatrix< bool>. ToBackend
@@ -260,7 +261,7 @@ type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer() =
260261type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer () =
261262
262263 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< float32>, float32>(
263- ( fun context wgSize -> CSRMatrix.elementwise context Backend.Common. StandardOperations.float32Sum wgSize),
264+ ( fun context wgSize -> CSRMatrix.elementwise context StandardOperations.float32Sum wgSize),
264265 float32,
265266 ( fun _ -> Utils.nextSingle ( System.Random())),
266267 CSRMatrix< float32>. ToBackend
@@ -273,7 +274,7 @@ type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer() =
273274type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer () =
274275
275276 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< bool>, bool>(
276- ( fun context wgSize -> CSRMatrix.elementwise context Backend.Common. StandardOperations.boolSum wgSize),
277+ ( fun context wgSize -> CSRMatrix.elementwise context StandardOperations.boolSum wgSize),
277278 ( fun _ -> true ),
278279 ( fun _ -> true ),
279280 CSRMatrix< bool>. ToBackend
@@ -287,7 +288,7 @@ type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer() =
287288type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer () =
288289
289290 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< bool>, bool>(
290- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context Backend.Common. StandardOperations.boolSumAtLeastOne wgSize),
291+ ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context StandardOperations.boolSumAtLeastOne wgSize),
291292 ( fun _ -> true ),
292293 ( fun _ -> true ),
293294 COOMatrix< bool>. ToBackend
@@ -299,7 +300,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer() =
299300type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer () =
300301
301302 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< bool>, bool>(
302- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context Backend.Common. StandardOperations.boolSumAtLeastOne wgSize),
303+ ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context StandardOperations.boolSumAtLeastOne wgSize),
303304 ( fun _ -> true ),
304305 ( fun _ -> true ),
305306 CSRMatrix< bool>. ToBackend
@@ -311,7 +312,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer() =
311312type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer () =
312313
313314 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCOOMatrix< float32>, float32>(
314- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context Backend.Common. StandardOperations.float32SumAtLeastOne wgSize),
315+ ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context StandardOperations.float32SumAtLeastOne wgSize),
315316 float32,
316317 ( fun _ -> Utils.nextSingle ( System.Random())),
317318 COOMatrix< float32>. ToBackend
@@ -323,7 +324,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer() =
323324type EWiseAddAtLeastOneBenchmarks4Float32CSRWithoutDataTransfer () =
324325
325326 inherit EWiseAddBenchmarksWithoutDataTransfer< ClCSRMatrix< float32>, float32>(
326- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context Backend.Common. StandardOperations.float32SumAtLeastOne wgSize),
327+ ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context StandardOperations.float32SumAtLeastOne wgSize),
327328 float32,
328329 ( fun _ -> Utils.nextSingle ( System.Random())),
329330 CSRMatrix< float32>. ToBackend
0 commit comments