@@ -26,34 +26,38 @@ blastests() = [
26
26
" OpenBLAS" , " MKL"
27
27
]
28
28
function benchmark_AmulB (sizes)
29
+ tests = blastests ()
29
30
start_workers ()
30
31
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
31
32
pmap (is -> A_mul_B_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
32
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
33
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
33
34
stop_workers ()
34
35
br
35
36
end
36
37
function benchmark_AmulBt (sizes)
38
+ tests = blastests ()
37
39
start_workers ()
38
40
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
39
41
pmap (is -> A_mul_Bt_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
40
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
42
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
41
43
stop_workers ()
42
44
br
43
45
end
44
46
function benchmark_AtmulB (sizes)
47
+ tests = blastests ()
45
48
start_workers ()
46
49
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
47
50
pmap (is -> At_mul_B_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
48
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
51
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
49
52
stop_workers ()
50
53
br
51
54
end
52
55
function benchmark_AtmulBt (sizes)
56
+ tests = blastests ()
53
57
start_workers ()
54
58
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
55
59
pmap (is -> At_mul_Bt_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
56
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
60
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
57
61
stop_workers ()
58
62
br
59
63
end
@@ -76,18 +80,20 @@ function benchmark_selfdot(sizes)
76
80
br
77
81
end
78
82
function benchmark_Amulvb (sizes)
83
+ tests = blastests ()
79
84
start_workers ()
80
85
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
81
86
pmap (is -> A_mul_vb_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
82
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
87
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
83
88
stop_workers ()
84
89
br
85
90
end
86
91
function benchmark_Atmulvb (sizes)
92
+ tests = blastests ()
87
93
start_workers ()
88
94
sm = SharedMatrix (Matrix {Float64} (undef, length (tests), length (sizes)))
89
95
pmap (is -> At_mul_vb_bench! (sm, is[2 ], is[1 ]), enumerate (sizes))
90
- br = BenchmarkResult (Matrix (sm), blastests () , sizes)
96
+ br = BenchmarkResult (Matrix (sm), tests , sizes)
91
97
stop_workers ()
92
98
br
93
99
end
0 commit comments