@@ -57,13 +57,13 @@ function AxB_allbycol(S, G, nthreads, sizerhs)
5757 show (stdout , MIME (" text/plain" ), A)
5858
5959 printstyled (" \n GBMatrix:\n " , bold= true )
60- # print burble for checking
61- gbset (:burble , true )
62- mul! (C, G, m2)
63- gbset (:burble , false )
6460 for n ∈ nthreads
6561 printstyled (" \n C = S * F with $n threads: \n " , bold= true , color= :green )
6662 gbset (:nthreads , n)
63+ # print burble for checking
64+ gbset (:burble , true )
65+ mul! (C, G, m2)
66+ gbset (:burble , false )
6767 B = @benchmark mul! ($ C, $ G, $ m2)
6868 show (stdout , MIME (" text/plain" ), B)
6969 tratio = ratio (median (A), median (B))
@@ -88,13 +88,13 @@ function AxB_allbyrow(S, G, nthreads, sizerhs)
8888 show (stdout , MIME (" text/plain" ), A)
8989
9090 printstyled (" \n GBMatrix:\n " , bold= true )
91- # print burble for checking
92- gbset (:burble , true )
93- mul (G, m2)
94- gbset (:burble , false )
9591 for n ∈ nthreads
9692 printstyled (" \n C' = S' * F' with $n threads: \n " , bold= true , color= :green )
9793 gbset (:nthreads , n)
94+ # print burble for checking
95+ gbset (:burble , true )
96+ mul (G, m2)
97+ gbset (:burble , false )
9898 B = @benchmark mul ($ G, $ m2)
9999 show (stdout , MIME (" text/plain" ), B)
100100 tratio = ratio (median (A), median (B))
@@ -118,13 +118,14 @@ function AxB_ColxRow(S, G, nthreads, sizerhs)
118118 show (stdout , MIME (" text/plain" ), A)
119119
120120 printstyled (" \n GBMatrix:\n " , bold= true )
121- # print burble for checking
122- gbset (:burble , true )
123- mul (G, m2)
124- gbset (:burble , false )
121+
125122 for n ∈ nthreads
126123 printstyled (" \n C' = S * F' with $n threads: \n " , bold= true , color= :green )
127124 gbset (:nthreads , n)
125+ # print burble for checking
126+ gbset (:burble , true )
127+ mul (G, m2)
128+ gbset (:burble , false )
128129 B = @benchmark mul ($ G, $ m2)
129130 show (stdout , MIME (" text/plain" ), B)
130131 tratio = ratio (median (A), median (B))
@@ -154,12 +155,13 @@ function CaccumAxB_allbycol(S, G, nthreads, sizerhs)
154155
155156 printstyled (" \n GBMatrix:\n " , bold= true )
156157 # print burble for checking
157- gbset (:burble , true )
158- mul! (C, G, m2; accum= + )
159- gbset (:burble , false )
158+
160159 for n ∈ nthreads
161160 printstyled (" \n F += S * F with $n threads: \n " , bold= true , color= :green )
162161 gbset (:nthreads , n)
162+ gbset (:burble , true )
163+ mul! (C, G, m2; accum= + )
164+ gbset (:burble , false )
163165 B = @benchmark mul! ($ C, $ G, $ m2; accum= + )
164166 show (stdout , MIME (" text/plain" ), B)
165167 tratio = ratio (median (A), median (B))
@@ -182,19 +184,20 @@ function CaccumAxB_allbyrow(S, G, nthreads, sizerhs)
182184 printstyled (" \n SparseMatrixCSC:\n " , bold= true )
183185 A = @benchmark $ S * $ m
184186 show (stdout , MIME (" text/plain" ), A)
185-
187+ gbset ( :burble , true )
186188 C = GBMatrix (size (G, 1 ), size (m2, 2 ), 0.0 )
187189 gbset (C, :sparsity_control , :full )
188190 gbset (C, :format , :byrow )
189191
190192 printstyled (" \n GBMatrix:\n " , bold= true )
191193 # print burble for checking
192- gbset (:burble , true )
193- mul! (C, G, m2; accum= + )
194194 gbset (:burble , false )
195195 for n ∈ nthreads
196196 printstyled (" \n F' += S' * F' with $n threads: \n " , bold= true , color= :green )
197197 gbset (:nthreads , n)
198+ gbset (:burble , true )
199+ mul! (C, G, m2; accum= + )
200+ gbset (:burble , false )
198201 B = @benchmark mul! ($ C, $ G, $ m2; accum= + )
199202 show (stdout , MIME (" text/plain" ), B)
200203 tratio = ratio (median (A), median (B))
0 commit comments