@@ -121,10 +121,6 @@ function judge_results(m1, m2)
121
121
return results
122
122
end
123
123
124
- function generic_mul (size_a, size_b, a, b)
125
- return invoke (* , Tuple{StaticArrays. _unstatic_array (typeof (a)),StaticArrays. _unstatic_array (typeof (b))}, a, b)
126
- end
127
-
128
124
function full_benchmark (mul_wrappers, size_iter = 1 : 4 , T = Float64)
129
125
suite_full = BenchmarkGroup ()
130
126
for N in size_iter
@@ -139,7 +135,7 @@ function full_benchmark(mul_wrappers, size_iter = 1:4, T = Float64)
139
135
for (w_a, w_a_name) in wrappers_a
140
136
for (w_b, w_b_name) in wrappers_b
141
137
cur_str = @sprintf (" mat-mat %s %s generic (%2d, %2d) x (%2d, %2d)" , w_a_name, w_b_name, N, M, M, K)
142
- suite_full[cur_str] = @benchmarkable generic_mul ($ sa, $ sb, $ (Ref (w_a (a)))[], $ (Ref (w_b (b)))[])
138
+ suite_full[cur_str] = @benchmarkable StaticArrays . mul_generic ($ sa, $ sb, $ (Ref (w_a (a)))[], $ (Ref (w_b (b)))[])
143
139
cur_str = @sprintf (" mat-mat %s %s default (%2d, %2d) x (%2d, %2d)" , w_a_name, w_b_name, N, M, M, K)
144
140
suite_full[cur_str] = @benchmarkable StaticArrays. _mul ($ sa, $ sb, $ (Ref (w_a (a)))[], $ (Ref (w_b (b)))[])
145
141
cur_str = @sprintf (" mat-mat %s %s unrolled (%2d, %2d) x (%2d, %2d)" , w_a_name, w_b_name, N, M, M, K)
0 commit comments