|
7 | 7 |
|
8 | 8 | Nsamples = 5 |
9 | 9 |
|
10 | | -machine = "dora" |
| 10 | +machine = "centos" |
11 | 11 |
|
12 | 12 | if machine=="dora": |
13 | 13 | Nprocs = numpy.array([2, 4, 6, 8, 10, 12, 24]) |
14 | 14 | if machine=="cub": |
15 | 15 | 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]) |
16 | 20 | Niter = 4 |
17 | 21 | timers = numpy.zeros([3, Nprocs.size, Nsamples]) |
18 | 22 | timers_avg = numpy.zeros([3, Nprocs.size]) |
|
93 | 97 | plt.ylabel(r'Speedup $s(P)$', fontsize=fs, labelpad=2) |
94 | 98 | if machine=="dora": |
95 | 99 | plt.xticks([2,6,10,14,18,22], fontsize=fs) |
96 | | -if machine=="cub": |
| 100 | +if machine=="cub" or machine=="centos": |
97 | 101 | plt.xticks(Nprocs, fontsize=fs) |
98 | 102 |
|
99 | 103 | plt.yticks(fontsize=fs) |
|
106 | 110 | call(["pdfcrop", filename, filename]) |
107 | 111 | #plt.show() |
108 | 112 |
|
| 113 | +rcParams['figure.figsize'] = 2.5, 2.5 |
| 114 | + |
109 | 115 | fig = plt.figure() |
110 | 116 | plt.plot(Nprocs, timers_avg[0,:], linewidth=1.0, marker='^', markersize=fs, color='b', label='MPI') |
111 | 117 | #plt.plot(Nprocs, timers_avg[1,:], linewidth=1.0, marker='<', markersize=fs, color='g', label='OpenMP') |
|
127 | 133 | plt.gca().set_ylim([2.0, 50.0]) |
128 | 134 | if machine=="dora": |
129 | 135 | plt.gca().set_xticks([2,6,10,14,18,22]) |
130 | | -if machine=="cub": |
| 136 | +if machine=="cub" or machine=="centos": |
131 | 137 | plt.gca().set_xticks(Nprocs) |
132 | 138 | plt.gca().set_yticks([5, 10, 20, 50]) |
133 | 139 | plt.gca().set_yticklabels(["5", "10", "20", "50"]) |
134 | 140 | plt.gca().get_yaxis().get_major_formatter().labelOnlyBase = False |
135 | 141 | plt.grid(True) |
136 | 142 | if machine=="dora": |
137 | 143 | plt.legend(loc='upper right', prop={'size':fs}) |
138 | | -if machine=="cub": |
| 144 | +if machine=="cub" or machine=="centos": |
139 | 145 | plt.legend(loc='lower left', prop={'size':fs}) |
140 | 146 |
|
141 | 147 | # Saveing figure |
|
0 commit comments