Skip to content

Commit 0ad08d3

Browse files
author
Daniel Ruprecht
committed
added centos as option for machine
1 parent f45d384 commit 0ad08d3

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

plot_parareal_scaling.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,16 @@
77

88
Nsamples = 5
99

10-
machine = "dora"
10+
machine = "centos"
1111

1212
if machine=="dora":
1313
Nprocs = numpy.array([2, 4, 6, 8, 10, 12, 24])
1414
if machine=="cub":
1515
Nprocs = numpy.array([2, 4, 6, 8])
16+
if machine=="mac":
17+
Nprocs = numpy.array([2, 4, 6, 8])
18+
if machine=="centos":
19+
Nprocs = numpy.array([2, 4, 6, 8])
1620
Niter = 4
1721
timers = numpy.zeros([3, Nprocs.size, Nsamples])
1822
timers_avg = numpy.zeros([3, Nprocs.size])
@@ -93,7 +97,7 @@
9397
plt.ylabel(r'Speedup $s(P)$', fontsize=fs, labelpad=2)
9498
if machine=="dora":
9599
plt.xticks([2,6,10,14,18,22], fontsize=fs)
96-
if machine=="cub":
100+
if machine=="cub" or machine=="centos":
97101
plt.xticks(Nprocs, fontsize=fs)
98102

99103
plt.yticks(fontsize=fs)
@@ -106,6 +110,8 @@
106110
call(["pdfcrop", filename, filename])
107111
#plt.show()
108112

113+
rcParams['figure.figsize'] = 2.5, 2.5
114+
109115
fig = plt.figure()
110116
plt.plot(Nprocs, timers_avg[0,:], linewidth=1.0, marker='^', markersize=fs, color='b', label='MPI')
111117
#plt.plot(Nprocs, timers_avg[1,:], linewidth=1.0, marker='<', markersize=fs, color='g', label='OpenMP')
@@ -127,15 +133,15 @@
127133
plt.gca().set_ylim([2.0, 50.0])
128134
if machine=="dora":
129135
plt.gca().set_xticks([2,6,10,14,18,22])
130-
if machine=="cub":
136+
if machine=="cub" or machine=="centos":
131137
plt.gca().set_xticks(Nprocs)
132138
plt.gca().set_yticks([5, 10, 20, 50])
133139
plt.gca().set_yticklabels(["5", "10", "20", "50"])
134140
plt.gca().get_yaxis().get_major_formatter().labelOnlyBase = False
135141
plt.grid(True)
136142
if machine=="dora":
137143
plt.legend(loc='upper right', prop={'size':fs})
138-
if machine=="cub":
144+
if machine=="cub" or machine=="centos":
139145
plt.legend(loc='lower left', prop={'size':fs})
140146

141147
# Saveing figure

0 commit comments

Comments
 (0)