11namespace GraphBLAS.FSharp.Benchmarks.Matrix.Map2
22
33open System.IO
4- open GraphBLAS.FSharp .Backend .Quotes
5- open GraphBLAS.FSharp .IO
64open BenchmarkDotNet.Attributes
75open Brahma.FSharp
6+ open GraphBLAS.FSharp
7+ open GraphBLAS.FSharp .IO
88open GraphBLAS.FSharp .Objects
9- open GraphBLAS.FSharp .Backend .Objects
109open GraphBLAS.FSharp .Objects .MatrixExtensions
11- open GraphBLAS.FSharp .Backend . Objects .ClContext
12- open GraphBLAS.FSharp .Backend .Matrix
10+ open GraphBLAS.FSharp .Objects .ClContextExtensions
11+ open GraphBLAS.FSharp .Backend .Quotes
1312open GraphBLAS.FSharp .Benchmarks
1413
1514[<AbstractClass>]
@@ -138,7 +137,7 @@ module WithoutTransfer =
138137 type Float32 () =
139138
140139 inherit Benchmark< ClMatrix.COO< float32>, float32>(
141- ( Matrix.map2 ArithmeticOperations.float32SumOption),
140+ ( Operations. Matrix.map2 ArithmeticOperations.float32SumOption),
142141 float32,
143142 ( fun _ -> Utils.nextSingle ( System.Random())),
144143 Matrix.COO
@@ -150,7 +149,7 @@ module WithoutTransfer =
150149 type Bool () =
151150
152151 inherit Benchmark< ClMatrix.COO< bool>, bool>(
153- ( Matrix.map2 ArithmeticOperations.boolSumOption),
152+ ( Operations. Matrix.map2 ArithmeticOperations.boolSumOption),
154153 ( fun _ -> true ),
155154 ( fun _ -> true ),
156155 Matrix.COO
@@ -163,7 +162,7 @@ module WithoutTransfer =
163162 type Float32 () =
164163
165164 inherit Benchmark< ClMatrix.CSR< float32>, float32>(
166- ( Matrix.map2 ArithmeticOperations.float32SumOption),
165+ ( Operations. Matrix.map2 ArithmeticOperations.float32SumOption),
167166 float32,
168167 ( fun _ -> Utils.nextSingle ( System.Random())),
169168 ( fun matrix -> Matrix.CSR matrix.ToCSR)
@@ -175,7 +174,7 @@ module WithoutTransfer =
175174 type Bool () =
176175
177176 inherit Benchmark< ClMatrix.CSR< bool>, bool>(
178- ( Matrix.map2 ArithmeticOperations.boolSumOption),
177+ ( Operations. Matrix.map2 ArithmeticOperations.boolSumOption),
179178 ( fun _ -> true ),
180179 ( fun _ -> true ),
181180 ( fun matrix -> Matrix.CSR matrix.ToCSR)
@@ -189,7 +188,7 @@ module WithoutTransfer =
189188 type Bool () =
190189
191190 inherit Benchmark< ClMatrix.COO< bool>, bool>(
192- ( Matrix.map2AtLeastOne ArithmeticOperations.boolSumAtLeastOne),
191+ ( Operations. Matrix.map2AtLeastOne ArithmeticOperations.boolSumAtLeastOne),
193192 ( fun _ -> true ),
194193 ( fun _ -> true ),
195194 Matrix.COO
@@ -201,7 +200,7 @@ module WithoutTransfer =
201200 type Float32 () =
202201
203202 inherit Benchmark< ClMatrix.COO< float32>, float32>(
204- ( Matrix.map2AtLeastOne ArithmeticOperations.float32SumAtLeastOne),
203+ ( Operations. Matrix.map2AtLeastOne ArithmeticOperations.float32SumAtLeastOne),
205204 float32,
206205 ( fun _ -> Utils.nextSingle ( System.Random())),
207206 Matrix.COO
@@ -214,7 +213,7 @@ module WithoutTransfer =
214213 type Bool () =
215214
216215 inherit Benchmark< ClMatrix.CSR< bool>, bool>(
217- ( Matrix.map2AtLeastOne ArithmeticOperations.boolSumAtLeastOne),
216+ ( Operations. Matrix.map2AtLeastOne ArithmeticOperations.boolSumAtLeastOne),
218217 ( fun _ -> true ),
219218 ( fun _ -> true ),
220219 ( fun matrix -> Matrix.CSR matrix.ToCSR)
@@ -226,7 +225,7 @@ module WithoutTransfer =
226225 type Float32 () =
227226
228227 inherit Benchmark< ClMatrix.CSR< float32>, float32>(
229- ( Matrix.map2AtLeastOne ArithmeticOperations.float32SumAtLeastOne),
228+ ( Operations. Matrix.map2AtLeastOne ArithmeticOperations.float32SumAtLeastOne),
230229 float32,
231230 ( fun _ -> Utils.nextSingle ( System.Random())),
232231 ( fun matrix -> Matrix.CSR matrix.ToCSR)
@@ -273,7 +272,7 @@ module WithTransfer =
273272 type Float32 () =
274273
275274 inherit Benchmark< ClMatrix.COO< float32>, float32>(
276- ( Matrix.map2 ArithmeticOperations.float32SumOption),
275+ ( Operations. Matrix.map2 ArithmeticOperations.float32SumOption),
277276 float32,
278277 ( fun _ -> Utils.nextSingle ( System.Random())),
279278 Matrix.COO,
0 commit comments