@@ -32,7 +32,7 @@ def main():
32
32
ax = fg .gca ()
33
33
ax .scatter (times .keys (), times .values ())
34
34
35
- ax .set_title (f"Matmul, N={ p .N } { platform .system ()} " )
35
+ ax .set_title (f"Matmul, N={ p .N } { platform .system () } { platform . machine ()} " )
36
36
ax .set_ylabel ("run time [sec.]" )
37
37
# ax.set_yscale('log')
38
38
ax .grid (True )
@@ -52,25 +52,25 @@ def benchmark_matmul(N: int, Nrun: int) -> T.Dict[str, float]:
52
52
t = pb .run ([matmul_exe , str (N ), str (Nrun )], cdir , "fortran" )
53
53
times ["Fortran\n " + compinf ["fc" ] + "\n " + compinf ["fcvers" ]] = t [0 ]
54
54
except EnvironmentError :
55
- pass
55
+ logging . error ( "Fortran compiler not found" )
56
56
57
57
try :
58
58
t = pb .run (["julia" , "matmul.jl" , str (N )], bdir )
59
59
times ["julia \n " + t [1 ]] = t [0 ]
60
60
except EnvironmentError :
61
- pass
61
+ logging . error ( "Julia not found" )
62
62
63
63
try :
64
64
t = pb .run (["gdl" , "-q" , "-e" , "matmul" , "-arg" , str (N )], bdir )
65
65
times ["gdl \n " + t [1 ]] = t [0 ]
66
66
except EnvironmentError :
67
- pass
67
+ logging . error ( "GDL not found" )
68
68
69
69
try :
70
70
t = pb .run (["idl" , "-quiet" , "-e" , "matmul" , "-arg" , str (N )], bdir )
71
71
times ["idl \n " + t [1 ]] = t [0 ]
72
72
except EnvironmentError :
73
- pass
73
+ logging . error ( "IDL not found" )
74
74
75
75
# octave-cli, not octave in general
76
76
try :
@@ -85,11 +85,8 @@ def benchmark_matmul(N: int, Nrun: int) -> T.Dict[str, float]:
85
85
except EnvironmentError :
86
86
logging .error ("Matlab not found" )
87
87
88
- try :
89
- t = pb .run (["python" , "matmul.py" , str (N ), str (Nrun )], bdir )
90
- times ["python \n " + t [1 ]] = t [0 ]
91
- except EnvironmentError :
92
- pass
88
+ t = pb .run (["python" , "matmul.py" , str (N ), str (Nrun )], bdir )
89
+ times ["python \n " + t [1 ]] = t [0 ]
93
90
94
91
return times
95
92
0 commit comments