@@ -196,7 +196,7 @@ module M =
196196type EWiseAddBenchmarks4Float32COOWithoutDataTransfer () =
197197
198198 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.COO< float32>, float32>(
199- ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
199+ ( fun context wgSize -> COOMatrix.map2 context ArithmeticOperations.float32Sum wgSize),
200200 float32,
201201 ( fun _ -> Utils.nextSingle ( System.Random())),
202202 Matrix.ToBackendCOO
@@ -208,7 +208,7 @@ type EWiseAddBenchmarks4Float32COOWithoutDataTransfer() =
208208type EWiseAddBenchmarks4Float32COOWithDataTransfer () =
209209
210210 inherit EWiseAddBenchmarksWithDataTransfer< ClMatrix.COO< float32>, float32>(
211- ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
211+ ( fun context wgSize -> COOMatrix.map2 context ArithmeticOperations.float32Sum wgSize),
212212 float32,
213213 ( fun _ -> Utils.nextSingle ( System.Random())),
214214 Matrix.ToBackendCOO< float32>,
@@ -222,7 +222,7 @@ type EWiseAddBenchmarks4Float32COOWithDataTransfer() =
222222type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer () =
223223
224224 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.COO< bool>, bool>(
225- ( fun context wgSize -> COOMatrix.elementwise context ArithmeticOperations.boolSum wgSize),
225+ ( fun context wgSize -> COOMatrix.map2 context ArithmeticOperations.boolSum wgSize),
226226 ( fun _ -> true ),
227227 ( fun _ -> true ),
228228 Matrix.ToBackendCOO< bool>
@@ -235,7 +235,7 @@ type EWiseAddBenchmarks4BoolCOOWithoutDataTransfer() =
235235type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer () =
236236
237237 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.CSR< float32>, float32>(
238- ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations.float32Sum wgSize),
238+ ( fun context wgSize -> CSRMatrix.map2 context ArithmeticOperations.float32Sum wgSize),
239239 float32,
240240 ( fun _ -> Utils.nextSingle ( System.Random())),
241241 Matrix.ToBackendCSR
@@ -248,7 +248,7 @@ type EWiseAddBenchmarks4Float32CSRWithoutDataTransfer() =
248248type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer () =
249249
250250 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.CSR< bool>, bool>(
251- ( fun context wgSize -> CSRMatrix.elementwise context ArithmeticOperations.boolSum wgSize),
251+ ( fun context wgSize -> CSRMatrix.map2 context ArithmeticOperations.boolSum wgSize),
252252 ( fun _ -> true ),
253253 ( fun _ -> true ),
254254 Matrix.ToBackendCSR
@@ -262,7 +262,7 @@ type EWiseAddBenchmarks4BoolCSRWithoutDataTransfer() =
262262type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer () =
263263
264264 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.COO< bool>, bool>(
265- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
265+ ( fun context wgSize -> COOMatrix.map2AtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
266266 ( fun _ -> true ),
267267 ( fun _ -> true ),
268268 Matrix.ToBackendCOO< bool>
@@ -274,7 +274,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCOOWithoutDataTransfer() =
274274type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer () =
275275
276276 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.CSR< bool>, bool>(
277- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
277+ ( fun context wgSize -> CSRMatrix.map2AtLeastOne context ArithmeticOperations.boolSumAtLeastOne wgSize),
278278 ( fun _ -> true ),
279279 ( fun _ -> true ),
280280 Matrix.ToBackendCSR
@@ -286,7 +286,7 @@ type EWiseAddAtLeastOneBenchmarks4BoolCSRWithoutDataTransfer() =
286286type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer () =
287287
288288 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.COO< float32>, float32>(
289- ( fun context wgSize -> COOMatrix.elementwiseAtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
289+ ( fun context wgSize -> COOMatrix.map2AtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
290290 float32,
291291 ( fun _ -> Utils.nextSingle ( System.Random())),
292292 Matrix.ToBackendCOO< float32>
@@ -298,7 +298,7 @@ type EWiseAddAtLeastOneBenchmarks4Float32COOWithoutDataTransfer() =
298298type EWiseAddAtLeastOneBenchmarks4Float32CSRWithoutDataTransfer () =
299299
300300 inherit EWiseAddBenchmarksWithoutDataTransfer< ClMatrix.CSR< float32>, float32>(
301- ( fun context wgSize -> CSRMatrix.elementwiseAtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
301+ ( fun context wgSize -> CSRMatrix.map2AtLeastOne context ArithmeticOperations.float32SumAtLeastOne wgSize),
302302 float32,
303303 ( fun _ -> Utils.nextSingle ( System.Random())),
304304 Matrix.ToBackendCSR< float32>
0 commit comments