Browse Source

Add original throughput data

Matthias Vogelgesang 8 years ago
parent
commit
7cd6a3502e
5 changed files with 66 additions and 3 deletions
  1. 9 2
      Makefile
  2. 16 0
      data/throughput.cpu
  3. 23 0
      data/throughput.gpu
  4. 17 0
      data/throughput.py
  5. 1 1
      paper.tex

+ 9 - 2
Makefile

@@ -1,4 +1,8 @@
-FIGURES=figures/intra-copy.pdf figures/opencl-setup.pdf figures/transf.pdf figures/latency-michele.pdf
+FIGURES=figures/intra-copy.pdf \
+		figures/opencl-setup.pdf \
+		figures/transf.pdf \
+		figures/throughput.pdf \
+		figures/latency-michele.pdf
 
 .PHONY: clean figures
 
@@ -11,9 +15,12 @@ paper.pdf: paper.tex literature.bib $(FIGURES)
 figures/intra-copy.pdf:
 	@cd data && python intra-copy.py ../figures/intra-copy.pdf
 
-figures/latency-michele.pdf: data/latency-michele-in-us.txt
+figures/latency-michele.pdf: data/latency-michele-in-us.txt data/latency-hist.py
 	@cd data && python latency-hist.py && cp latency-michele.pdf ../figures
 
+figures/throughput.pdf: data/throughput.cpu data/throughput.gpu data/throughput.py
+	@cd data && python throughput.py && cp throughput.pdf ../figures
+
 figures/%.pdf: figures/%.svg
 	@inkscape --export-pdf=$@ $<
 

+ 16 - 0
data/throughput.cpu

@@ -0,0 +1,16 @@
+8388608000  6023
+4194304000  6028
+2097152000  6018
+1048576000  6028
+524288000   6006
+262144000   5998
+131072000   5995
+65536000    6004
+32768000    6002
+16384000    5817
+8192000     5604
+4096000     5148
+2048000     4507
+1024000     3414
+512000      2410
+256000      1840

+ 23 - 0
data/throughput.gpu

@@ -0,0 +1,23 @@
+16384             7.8333333333
+32768             14.6666666667
+65536             28.5
+131072            55.8333333333
+262144            99
+524288            184.3333333333
+1048576           323.1666666667
+2097152           616.1666666667
+4194304           989.5
+8388608           1515
+16777216          2115.5
+33554432          2636.5
+67108864          4411.3333333333
+134217728         5154
+268435456         5611.5
+536870912         5922.5
+1073741824        6234.1666666667
+2147483648        6386.3333333333
+4294967296        6408
+8589934592        6393.8333333333
+17179869184       6370.6666666667
+34359738368       6372.1666666667
+68719476736       6372.3333333333

+ 17 - 0
data/throughput.py

@@ -0,0 +1,17 @@
+import numpy as np
+import matplotlib.pyplot as plt
+
+gpu_data = np.loadtxt('throughput.gpu')
+cpu_data = np.loadtxt('throughput.cpu')
+
+plt.rc('font', **dict(family='serif'))
+
+plt.figure(figsize=(10, 4))
+
+plt.semilogx(gpu_data[:,0], gpu_data[:,1], '*-', label='GPU')
+plt.semilogx(cpu_data[:,0], cpu_data[:,1], 'o-', label='CPU')
+
+plt.xlabel(u'Data size in B')
+plt.ylabel('Throughput in MB/s')
+plt.legend(loc='lower right')
+plt.savefig('throughput.pdf', dpi=300, bbox_inches='tight')

+ 1 - 1
paper.tex

@@ -237,7 +237,7 @@ page sizes}
 
 \begin{figure}
   \centering
-  \includegraphics[width=0.6\textwidth]{figures/through_plot}
+  \includegraphics[width=1.0\textwidth]{figures/throughput}
   \caption{
     Throughput of regular CPU and our GPU DMA data transfer for up to 50 GB of
     data.