diff --git a/figures/cpu_matvec.pdf b/figures/cpu_matvec.pdf index 3471140..3208ab8 100644 Binary files a/figures/cpu_matvec.pdf and b/figures/cpu_matvec.pdf differ diff --git a/figures/cpu_matvec.png b/figures/cpu_matvec.png new file mode 100644 index 0000000..c9ef611 Binary files /dev/null and b/figures/cpu_matvec.png differ diff --git a/figures/kernels.pdf b/figures/kernels.pdf index d78f55d..1b2283f 100644 Binary files a/figures/kernels.pdf and b/figures/kernels.pdf differ diff --git a/figures/kernels.png b/figures/kernels.png new file mode 100644 index 0000000..3178b7b Binary files /dev/null and b/figures/kernels.png differ diff --git a/figures/mlfmm_bw.pdf b/figures/mlfmm_bw.pdf index 51592b7..b8676c6 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 new file mode 100644 index 0000000..9835d0f Binary files /dev/null and b/figures/mlfmm_bw.png differ diff --git a/figures/mlfmm_minsky.pdf b/figures/mlfmm_minsky.pdf index af7c036..f26ffc1 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 new file mode 100644 index 0000000..75b5833 Binary files /dev/null and b/figures/mlfmm_minsky.png differ diff --git a/figures/plots.py b/figures/plots.py index 1d884f4..580f23b 100644 --- a/figures/plots.py +++ b/figures/plots.py @@ -4,6 +4,9 @@ import numpy as np import matplotlib.pyplot as plt plt.rcdefaults() +DPI=600 + +path = 'figures/cpu_matvec' fig, ax = plt.subplots() systems = ('BW (32T)', "Minsky (160T)") mlfmm = (8.65e4, 4.71e4) @@ -15,9 +18,12 @@ ax.set_xticks(x_pos) ax.set_xticklabels(systems) ax.set_ylabel("Execution Time (ms)") # ax.set_title('How fast do you want to go today?') -plt.savefig('figures/cpu_matvec.pdf') -print 'figures/cpu_matvec.pdf' +plt.savefig(path+'.pdf') +plt.savefig(path+'.png', dpi=DPI) +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) @@ -29,9 +35,11 @@ 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('figures/mlfmm_bw.pdf') -print 'figures/mlfmm_bw.pdf' +plt.savefig(path+'.pdf') +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) @@ -43,8 +51,9 @@ 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('figures/mlfmm_minsky.pdf') -print 'figures/mlfmm_minsky.pdf' +plt.savefig(path+'.pdf') +plt.savefig(path+'.png', dpi=DPI) +print path fig, ax = plt.subplots() systems = ['BW 32T', "Minsky 160T", "BW 4 GPU" ,"Minsky 4 GPU"] @@ -62,6 +71,7 @@ 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)] +path = 'figures/kernels' x_pos = np.arange(len(systems)) ax.bar(x_pos, p2p_ratio, color='0', label='p2p') ax.bar(x_pos, l2p_ratio, color='0.15', label='l2p', bottom=p2p_ratio) @@ -76,5 +86,6 @@ handles, labels = ax.get_legend_handles_labels() ax.legend(handles, labels) # plt.ylim([1, 1e4]) # ax.set_title('How fast do you want to go today?') -plt.savefig('figures/kernels.pdf') -print 'figures/kernels.pdf' \ No newline at end of file +plt.savefig(path+'.pdf') +plt.savefig(path+'.png', dpi=DPI) +print path \ No newline at end of file