1
1
namespace GraphBLAS.FSharp.Benchmarks
2
2
3
3
open System.IO
4
- open GraphBLAS.FSharp
5
4
open GraphBLAS.FSharp .IO
6
5
open BenchmarkDotNet.Attributes
7
6
open BenchmarkDotNet.Configs
8
7
open BenchmarkDotNet.Columns
9
8
open Brahma.FSharp
9
+ open GraphBLAS.FSharp .Objects
10
10
open GraphBLAS.FSharp .Backend .Objects
11
11
open GraphBLAS.FSharp .Backend .Matrix .COO
12
12
open GraphBLAS.FSharp .Backend .Matrix .CSR
13
+ open GraphBLAS.FSharp .Backend .Common
13
14
14
15
type Config () =
15
16
inherit ManualConfig()
@@ -221,7 +222,7 @@ module M =
221
222
type EWiseAddBenchmarks4Float32COOWithoutDataTransfer () =
222
223
223
224
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),
225
226
float32,
226
227
( fun _ -> Utils.nextSingle ( System.Random())),
227
228
COOMatrix< float32>. ToBackend
@@ -233,7 +234,7 @@ type EWiseAddBenchmarks4Float32COOWithoutDataTransfer() =
233
234
type EWiseAddBenchmarks4Float32COOWithDataTransfer () =
234
235
235
236
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),
237
238
float32,
238
239
( fun _ -> Utils.nextSingle ( System.Random())),
239
240
COOMatrix< float32>. ToBackend,
@@ -247,7 +248,7 @@ type EWiseAddBenchmarks4Float32COOWithDataTransfer() =
247
248
type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer () =
248
249
249
250
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),
251
252
( fun _ -> true ),
252
253
( fun _ -> true ),
253
254
COOMatrix< bool>. ToBackend
@@ -260,7 +261,7 @@ type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer() =
260
261
type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer () =
261
262
262
263
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),
264
265
float32,
265
266
( fun _ -> Utils.nextSingle ( System.Random())),
266
267
CSRMatrix< float32>. ToBackend
@@ -273,7 +274,7 @@ type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer() =
273
274
type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer () =
274
275
275
276
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),
277
278
( fun _ -> true ),
278
279
( fun _ -> true ),
279
280
CSRMatrix< bool>. ToBackend
@@ -287,7 +288,7 @@ type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer() =
287
288
type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer () =
288
289
289
290
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),
291
292
( fun _ -> true ),
292
293
( fun _ -> true ),
293
294
COOMatrix< bool>. ToBackend
@@ -299,7 +300,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer() =
299
300
type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer () =
300
301
301
302
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),
303
304
( fun _ -> true ),
304
305
( fun _ -> true ),
305
306
CSRMatrix< bool>. ToBackend
@@ -311,7 +312,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer() =
311
312
type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer () =
312
313
313
314
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),
315
316
float32,
316
317
( fun _ -> Utils.nextSingle ( System.Random())),
317
318
COOMatrix< float32>. ToBackend
@@ -323,7 +324,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer() =
323
324
type EWiseAddAtLeastOneBenchmarks4Float32CSRWithoutDataTransfer () =
324
325
325
326
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),
327
328
float32,
328
329
( fun _ -> Utils.nextSingle ( System.Random())),
329
330
CSRMatrix< float32>. ToBackend
0 commit comments