diff --git a/figures/cpu_matvec.pdf b/figures/cpu_matvec.pdf index 6d909ad..412f7f3 100644 Binary files a/figures/cpu_matvec.pdf and b/figures/cpu_matvec.pdf differ diff --git a/figures/kernels.pdf b/figures/kernels.pdf index 25c23f9..9c03328 100644 Binary files a/figures/kernels.pdf and b/figures/kernels.pdf differ diff --git a/figures/mlfmm_bw.pdf b/figures/mlfmm_bw.pdf index 8534d4d..e51482c 100644 Binary files a/figures/mlfmm_bw.pdf and b/figures/mlfmm_bw.pdf differ diff --git a/figures/mlfmm_bw.png b/figures/mlfmm_bw.png index 9835d0f..c14eaef 100644 Binary files a/figures/mlfmm_bw.png and b/figures/mlfmm_bw.png differ diff --git a/figures/mlfmm_minsky.pdf b/figures/mlfmm_minsky.pdf index b02fab7..a1ecb2e 100644 Binary files a/figures/mlfmm_minsky.pdf and b/figures/mlfmm_minsky.pdf differ diff --git a/figures/mlfmm_minsky.png b/figures/mlfmm_minsky.png index 399fa9c..1d3c2fe 100644 Binary files a/figures/mlfmm_minsky.png and b/figures/mlfmm_minsky.png differ diff --git a/figures/plots.py b/figures/plots.py index bfbc8e6..940f8a0 100644 --- a/figures/plots.py +++ b/figures/plots.py @@ -26,22 +26,39 @@ print path path='figures/mlfmm_bw' +# fig, ax = plt.subplots() +# systems = ('1T', "32T", "1 GPU" ,"4 GPU", "16 GPU") +# mlfmm = (1.50e6, 8.64e4, 2.78e4, 7.01e3, 1.89e3) +# num = (45,45,45,45,47) +# x_pos = np.arange(len(systems)) +# ax.bar(x_pos, [i/j for i,j in zip(mlfmm,num)], color='gray', log=True) +# ax.set_xticks(x_pos) +# ax.set_xticklabels(systems) +# ax.set_ylabel("Per-MLFMM Execution Time (ms)") +# plt.ylim([1, 1e5]) +# # ax.set_title('How fast do you want to go today?') +# plt.savefig(path+'.pdf') +# plt.savefig(path+'.png', dpi=DPI) +# print path +width=0.25 fig, ax = plt.subplots() systems = ('1T', "32T", "1 GPU" ,"4 GPU", "16 GPU") mlfmm = (1.50e6, 8.64e4, 2.78e4, 7.01e3, 1.89e3) num = (45,45,45,45,47) x_pos = np.arange(len(systems)) -ax.bar(x_pos, [i/j for i,j in zip(mlfmm,num)], color='gray', log=True) +ax.bar([p-width/2 for p in x_pos], [i/j for i,j in zip(mlfmm,num)], color='lightgray', log=True, width=0.25) +ax2=ax.twinx() +ax2.bar([p+width/2 for p in x_pos], [mlfmm[0] / i for i in mlfmm], color='darkgray', log=True, width=0.25) ax.set_xticks(x_pos) ax.set_xticklabels(systems) ax.set_ylabel("Per-MLFMM Execution Time (ms)") -plt.ylim([1, 1e5]) +ax2.set_ylabel("Speedup over 1T") # ax.set_title('How fast do you want to go today?') plt.savefig(path+'.pdf') plt.savefig(path+'.png', dpi=DPI) print path -# path="figures/mlfmm_minsky" +path="figures/mlfmm_minsky" # fig, ax = plt.subplots() # systems = ('1T', "160T", "1 GPU" ,"4 GPU") # mlfmm = (1.25e6, 4.71e4, 5.22e3, 1.29e3) @@ -57,7 +74,7 @@ print path # plt.savefig(path+'.png', dpi=DPI) # print path -path="figures/mlfmm_minsky" + # fig, ax = plt.subplots() # systems = ('1T', "160T", "1 GPU" ,"4 GPU") # mlfmm = [1.25e6, 4.71e4, 5.22e3, 1.29e3] @@ -84,7 +101,7 @@ ax2 = ax.twinx() sns.barplot(x_pos, [mlfmm[0] / i for i in mlfmm], color="LightGray", ax=ax2, log=True) -ax2.set_ylabel("Speedup") +ax2.set_ylabel("Speedup over 1T") new_width = 0.25