Browse Source

Use pdf for intra-copy data transfers

Matthias Vogelgesang 8 years ago
parent
commit
c85992f8fd
3 changed files with 8 additions and 6 deletions
  1. 3 3
      Makefile
  2. 4 2
      data/latency-hist.py
  3. 1 1
      paper.tex

+ 3 - 3
Makefile

@@ -1,4 +1,4 @@
-FIGURES=figures/intra-copy.png figures/opencl-setup.pdf figures/transf.pdf figures/latency-michele.pdf
+FIGURES=figures/intra-copy.pdf figures/opencl-setup.pdf figures/transf.pdf figures/latency-michele.pdf
 
 .PHONY: clean figures
 
@@ -8,8 +8,8 @@ paper.pdf: paper.tex literature.bib $(FIGURES)
 	@pdflatex $<
 	@bibtex paper.aux
 
-figures/intra-copy.png:
-	@cd data && python intra-copy.py ../figures/intra-copy.png
+figures/intra-copy.pdf:
+	@cd data && python intra-copy.py ../figures/intra-copy.pdf
 
 figures/latency-michele.pdf: data/latency-michele-in-us.txt
 	@cd data && python latency-hist.py && cp latency-michele.pdf ../figures

+ 4 - 2
data/latency-hist.py

@@ -3,14 +3,16 @@ import numpy as np
 import matplotlib.pyplot as plt
 
 data = np.loadtxt('latency-michele-in-us.txt')
+
+# check that this is a good/valid idea
 data = data[data < 180]
-data = data[data > 160]
+data = data[data > 164]
 
 plt.rc('font', **dict(family='serif'))
 
 plt.figure(figsize=(10, 4))
 
-plt.hist(data, bins=200)#, linewidth=0.5, label='128 MB')
+plt.hist(data, bins=200)
 
 plt.xlabel(u'Latency in \u00b5s')
 plt.ylabel('Number')

+ 1 - 1
paper.tex

@@ -185,7 +185,7 @@ surpasses the maximum possible PCIe bandwidth, thus making a double buffering
 strategy a viable solution for very large data transfers.
 
 \begin{figure}
-  \includegraphics[width=\textwidth]{figures/intra-copy.png}
+  \includegraphics[width=\textwidth]{figures/intra-copy}
   \caption{%
     Throughput in MB/s for an intra-GPU data transfer of smaller block sizes
     (4KB -- 24 MB) into a larger destination buffer (32 MB -- 128 MB). The lower