This commit is contained in:
Carl Pearson
2017-05-04 17:52:23 -05:00
parent 6a2f8514d9
commit a70a3996f8
5 changed files with 32 additions and 1 deletions

Binary file not shown.

BIN
figures/kernels.pdf Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -45,3 +45,34 @@ plt.ylim([1, 1e5])
# ax.set_title('How fast do you want to go today?')
plt.savefig('figures/mlfmm_minsky.pdf')
print 'figures/mlfmm_minsky.pdf'
fig, ax = plt.subplots()
systems = ('BW 32T', "Minsky 160T", "BW 4 GPU" ,"Minsky 4 GPU")
p2m = (127.10, 72.10749, 7.73, 1.604)
m2m = (156.2506, 102.61091, 9.613814, 1.746476)
m2l = (189.615, 82.67791, 18.177774, 2.671025)
l2l = (91.5957, 101.56461, 20.215436, 2.611185)
l2p = (196.2115, 68.38529, 6.994, 1.395)
p2p = (1117.368, 590.4818, 90.619, 18.265)
total = [sum(i) for i in zip(p2m,m2m,m2l,l2l,l2p,p2p)]
p2m_ratio = [i/j for i,j in zip(p2m, total)]
m2m_ratio = [i/j for i,j in zip(m2m, total)]
m2l_ratio = [i/j for i,j in zip(m2l, total)]
l2l_ratio = [i/j for i,j in zip(l2l, total)]
l2p_ratio = [i/j for i,j in zip(l2p, total)]
p2p_ratio = [i/j for i,j in zip(p2p, total)]
x_pos = np.arange(len(systems))
ax.bar(x_pos, p2p_ratio, color='black')
ax.bar(x_pos, l2p_ratio, color='red', bottom=p2p_ratio)
ax.bar(x_pos, l2l_ratio, color='blue', bottom=[sum(i) for i in zip(l2p_ratio,p2p_ratio)])
ax.bar(x_pos, m2l_ratio, color='green', bottom=[sum(i) for i in zip(l2l_ratio, l2p_ratio,p2p_ratio)])
ax.bar(x_pos, m2m_ratio, color='orange', bottom=[sum(i) for i in zip(m2l_ratio, l2l_ratio, l2p_ratio,p2p_ratio)])
ax.bar(x_pos, p2m_ratio, color='lightgray', bottom=[sum(i) for i in zip(m2m_ratio, m2l_ratio, l2l_ratio, l2p_ratio,p2p_ratio)])
ax.set_xticks(x_pos)
ax.set_xticklabels(systems)
ax.set_ylabel("Per-MLFMM Execution Time (ms)")
# plt.ylim([1, 1e4])
# ax.set_title('How fast do you want to go today?')
plt.savefig('figures/kernels.pdf')
print 'figures/kernels.pdf'