@@ -2,119 +2,114 @@ open Expecto
22open GraphBLAS.FSharp .Tests .Backend
33open GraphBLAS.FSharp .Tests
44
5- // let matrixTests =
6- // testList
7- // "Matrix"
8- // [ Matrix.Convert.tests
9- // Matrix.Map2.allTests
10- // Matrix.Map.allTests
11- // Matrix.Merge.allTests
12- // Matrix.Transpose.tests
13- // Matrix.RowsLengths.tests
14- // Matrix.ByRows.tests
15- // Matrix.ExpandRows.tests
16- // Matrix.SubRows.tests
17- // Matrix.Kronecker.tests
18- //
19- // Matrix.SpGeMM.Expand.generalTests
20- // Matrix.SpGeMM.Masked.tests ]
21- // |> testSequenced
22- //
23- // let commonTests =
24- // let scanTests =
25- // testList
26- // "Scan"
27- // [ Common.Scan.ByKey.sequentialSegmentsTests
28- // Common.Scan.PrefixSum.tests ]
29- //
30- // let reduceTests =
31- // testList
32- // "Reduce"
33- // [ Common.Reduce.ByKey.allTests
34- // Common.Reduce.Reduce.tests
35- // Common.Reduce.Sum.tests ]
36- //
37- // let clArrayTests =
38- // testList
39- // "ClArray"
40- // [ Common.ClArray.RemoveDuplicates.tests
41- // Common.ClArray.Copy.tests
42- // Common.ClArray.Replicate.tests
43- // Common.ClArray.Exists.tests
44- // Common.ClArray.Map.tests
45- // Common.ClArray.Map2.addTests
46- // Common.ClArray.Map2.mulTests
47- // Common.ClArray.Choose.allTests
48- // Common.ClArray.ChunkBySize.allTests
49- // Common.ClArray.Blit.tests
50- // Common.ClArray.Concat.tests
51- // Common.ClArray.Fill.tests
52- // Common.ClArray.Pairwise.tests
53- // Common.ClArray.UpperBound.tests
54- // Common.ClArray.Set.tests
55- // Common.ClArray.Item.tests ]
56- //
57- // let sortTests =
58- // testList
59- // "Sort"
60- // [ Common.Sort.Bitonic.tests
61- // Common.Sort.Radix.allTests ]
62- //
63- // testList
64- // "Common"
65- // [ Common.Scatter.allTests
66- // Common.Gather.allTests
67- // Common.Merge.tests
68- // clArrayTests
69- // sortTests
70- // reduceTests
71- // scanTests ]
72- // |> testSequenced
73- //
74- // let vectorTests =
75- // testList
76- // "Vector"
77- // [ Vector.SpMV.tests
78- // Vector.ZeroCreate.tests
79- // Vector.OfList.tests
80- // Vector.Copy.tests
81- // Vector.Convert.tests
82- // Vector.Map2.allTests
83- // Vector.AssignByMask.tests
84- // Vector.AssignByMask.complementedTests
85- // Vector.Reduce.tests
86- // Vector.Merge.tests ]
87- // |> testSequenced
88- //
89- // let algorithmsTests =
90- // testList "Algorithms tests" [ Algorithms.BFS.tests ]
91- // |> testSequenced
92- //
93- // let deviceTests =
94- // testList
95- // "Device"
96- // [ matrixTests
97- // commonTests
98- // vectorTests
99- // algorithmsTests ]
100- // |> testSequenced
101- //
102- // let hostTests =
103- // testList
104- // "Host"
105- // [ Host.Matrix.FromArray2D.tests
106- // Host.Matrix.Convert.tests
107- // Host.IO.MtxReader.test ]
108- // |> testSequenced
109- //
110- // [<Tests>]
111- // let allTests =
112- // testList "All" [ deviceTests; hostTests ]
113- // |> testSequenced
5+ let matrixTests =
6+ testList
7+ " Matrix"
8+ [ Matrix.Convert.tests
9+ Matrix.Map2.allTests
10+ Matrix.Map.allTests
11+ Matrix.Merge.allTests
12+ Matrix.Transpose.tests
13+ Matrix.RowsLengths.tests
14+ Matrix.ByRows.tests
15+ Matrix.ExpandRows.tests
16+ Matrix.SubRows.tests
17+ Matrix.Kronecker.tests
18+
19+ Matrix.SpGeMM.Expand.generalTests
20+ Matrix.SpGeMM.Masked.tests ]
21+ |> testSequenced
22+
23+ let commonTests =
24+ let scanTests =
25+ testList
26+ " Scan"
27+ [ Common.Scan.ByKey.sequentialSegmentsTests
28+ Common.Scan.PrefixSum.tests ]
29+
30+ let reduceTests =
31+ testList
32+ " Reduce"
33+ [ Common.Reduce.ByKey.allTests
34+ Common.Reduce.Reduce.tests
35+ Common.Reduce.Sum.tests ]
36+
37+ let clArrayTests =
38+ testList
39+ " ClArray"
40+ [ Common.ClArray.RemoveDuplicates.tests
41+ Common.ClArray.Copy.tests
42+ Common.ClArray.Replicate.tests
43+ Common.ClArray.Exists.tests
44+ Common.ClArray.Map.tests
45+ Common.ClArray.Map2.addTests
46+ Common.ClArray.Map2.mulTests
47+ Common.ClArray.Choose.allTests
48+ Common.ClArray.ChunkBySize.allTests
49+ Common.ClArray.Blit.tests
50+ Common.ClArray.Concat.tests
51+ Common.ClArray.Fill.tests
52+ Common.ClArray.Pairwise.tests
53+ Common.ClArray.UpperBound.tests
54+ Common.ClArray.Set.tests
55+ Common.ClArray.Item.tests ]
56+
57+ let sortTests =
58+ testList
59+ " Sort"
60+ [ Common.Sort.Bitonic.tests
61+ Common.Sort.Radix.allTests ]
62+
63+ testList
64+ " Common"
65+ [ Common.Scatter.allTests
66+ Common.Gather.allTests
67+ Common.Merge.tests
68+ clArrayTests
69+ sortTests
70+ reduceTests
71+ scanTests ]
72+ |> testSequenced
73+
74+ let vectorTests =
75+ testList
76+ " Vector"
77+ [ Vector.SpMV.tests
78+ Vector.ZeroCreate.tests
79+ Vector.OfList.tests
80+ Vector.Copy.tests
81+ Vector.Convert.tests
82+ Vector.Map2.allTests
83+ Vector.AssignByMask.tests
84+ Vector.AssignByMask.complementedTests
85+ Vector.Reduce.tests
86+ Vector.Merge.tests ]
87+ |> testSequenced
88+
89+ let algorithmsTests =
90+ testList " Algorithms tests" [ Algorithms.BFS.tests ]
91+ |> testSequenced
92+
93+ let deviceTests =
94+ testList
95+ " Device"
96+ [ matrixTests
97+ commonTests
98+ vectorTests
99+ algorithmsTests ]
100+ |> testSequenced
101+
102+ let hostTests =
103+ testList
104+ " Host"
105+ [ Host.Matrix.FromArray2D.tests
106+ Host.Matrix.Convert.tests
107+ Host.IO.MtxReader.test ]
108+ |> testSequenced
114109
115110[<Tests>]
116111let allTests =
117- testList " All" [ Matrix.Kronecker.tests ]
112+ testList " All" [ deviceTests ; hostTests ]
118113 |> testSequenced
119114
120115[<EntryPoint>]
0 commit comments