@@ -15,7 +15,8 @@ open GraphBLAS.FSharp.Backend.Objects.ClContext
1515let logger = Log.create " Convert.Tests"
1616
1717let config = Utils.defaultConfig
18- let wgSize = 32
18+
19+ let workGroupSize = Utils.defaultWorkGroupSize
1920
2021let makeTest context q formatFrom formatTo convertFun isZero ( array : 'a [,]) =
2122 let mtx =
@@ -51,15 +52,15 @@ let testFixtures formatTo =
5152
5253 match formatTo with
5354 | COO ->
54- [ let convertFun = Matrix.toCOO context wgSize
55+ [ let convertFun = Matrix.toCOO context workGroupSize
5556
5657 Utils.listOfUnionCases< MatrixFormat>
5758 |> List.map
5859 ( fun formatFrom ->
5960 makeTest context q formatFrom formatTo convertFun ((=) 0 )
6061 |> testPropertyWithConfig config ( getCorrectnessTestName " int" formatFrom))
6162
62- let convertFun = Matrix.toCOO context wgSize
63+ let convertFun = Matrix.toCOO context workGroupSize
6364
6465 Utils.listOfUnionCases< MatrixFormat>
6566 |> List.map
@@ -68,15 +69,15 @@ let testFixtures formatTo =
6869 |> testPropertyWithConfig config ( getCorrectnessTestName " bool" formatFrom)) ]
6970 |> List.concat
7071 | CSR ->
71- [ let convertFun = Matrix.toCSR context wgSize
72+ [ let convertFun = Matrix.toCSR context workGroupSize
7273
7374 Utils.listOfUnionCases< MatrixFormat>
7475 |> List.map
7576 ( fun formatFrom ->
7677 makeTest context q formatFrom formatTo convertFun ((=) 0 )
7778 |> testPropertyWithConfig config ( getCorrectnessTestName " int" formatFrom))
7879
79- let convertFun = Matrix.toCSR context wgSize
80+ let convertFun = Matrix.toCSR context workGroupSize
8081
8182 Utils.listOfUnionCases< MatrixFormat>
8283 |> List.map
@@ -85,15 +86,15 @@ let testFixtures formatTo =
8586 |> testPropertyWithConfig config ( getCorrectnessTestName " bool" formatFrom)) ]
8687 |> List.concat
8788 | CSC ->
88- [ let convertFun = Matrix.toCSC context wgSize
89+ [ let convertFun = Matrix.toCSC context workGroupSize
8990
9091 Utils.listOfUnionCases< MatrixFormat>
9192 |> List.map
9293 ( fun formatFrom ->
9394 makeTest context q formatFrom formatTo convertFun ((=) 0 )
9495 |> testPropertyWithConfig config ( getCorrectnessTestName " int" formatFrom))
9596
96- let convertFun = Matrix.toCSC context wgSize
97+ let convertFun = Matrix.toCSC context workGroupSize
9798
9899 Utils.listOfUnionCases< MatrixFormat>
99100 |> List.map
0 commit comments