From: Raphael Couturier Date: Mon, 28 Nov 2011 09:19:18 +0000 (+0100) Subject: new X-Git-Url: https://bilbo.iut-bm.univ-fcomte.fr/and/gitweb/prng_gpu.git/commitdiff_plain/e791f81e1ea7b40e218bc1fcf87cb87d55949183?ds=inline;hp=--cc new --- e791f81e1ea7b40e218bc1fcf87cb87d55949183 diff --git a/curve_time_bbs_gpu.pdf b/curve_time_bbs_gpu.pdf new file mode 100644 index 0000000..6d18bac Binary files /dev/null and b/curve_time_bbs_gpu.pdf differ diff --git a/curve_time_gpu.plot b/curve_time_bbs_gpu.plot similarity index 56% rename from curve_time_gpu.plot rename to curve_time_bbs_gpu.plot index f8d9d6a..a7aa320 100644 --- a/curve_time_gpu.plot +++ b/curve_time_bbs_gpu.plot @@ -16,7 +16,5 @@ set logscale y; #set yrange [0:300] #set offsets 0,0,2,2 set key left top -plot 'time_gpu.txt' using 1:3 t "optimized prng on C1060" with linespoints lt 1 lw 2 ps 0 pt 5, \ - 'time_gpu.txt' using 1:5 t "optimized prng on GTX285" with linespoints lt 3 lw 2 ps 0 pt 5, \ - 'time_gpu.txt' using 1:2 t "naive prng on C1060" with linespoints lt 4 lw 2 ps 0 pt 5, \ - 'time_gpu.txt' using 1:4 t "naive prng on GTX285" with linespoints lt 5 lw 2 ps 0 pt 5 \ No newline at end of file +plot 'time_bbs_gpu.txt' using 1:2 t "optimized bbs based prng on C1060" with linespoints lt 1 lw 2 ps 0 pt 5, \ + 'time_bbs_gpu.txt' using 1:3 t "optimized bbs based prng on GTX285" with linespoints lt 3 lw 2 ps 0 pt 5 \ No newline at end of file diff --git a/curve_time_gpu.pdf b/curve_time_xorlike_gpu.pdf similarity index 92% rename from curve_time_gpu.pdf rename to curve_time_xorlike_gpu.pdf index b7202e8..2437d2e 100644 Binary files a/curve_time_gpu.pdf and b/curve_time_xorlike_gpu.pdf differ diff --git a/curve_time_xorlike_gpu.plot b/curve_time_xorlike_gpu.plot new file mode 100644 index 0000000..b9586e8 --- /dev/null +++ b/curve_time_xorlike_gpu.plot @@ -0,0 +1,22 @@ +# Analysis description +set encoding iso_8859_1 +set terminal x11 +set size 1,0.5 +set term postscript enhanced portrait "Helvetica" 12 +#set title "Performance on homogeneous cluster" +set ylabel "Random numbers generated / second" +set xlabel "Number of threads used by the GPU" +#set nologscale; +set logscale x; +set logscale y; +#set label "Taille" at -0.002,2.1 right +#set label "file" at -0.003,2 right +#set key 1500,1600 +#set xrange [20:200] +#set yrange [0:300] +#set offsets 0,0,2,2 +set key left top +plot 'time_xorlike_gpu.txt' using 1:3 t "optimized prng on C1060" with linespoints lt 1 lw 2 ps 0 pt 5, \ + 'time_xorlike_gpu.txt' using 1:5 t "optimized prng on GTX285" with linespoints lt 3 lw 2 ps 0 pt 5, \ + 'time_xorlike_gpu.txt' using 1:2 t "naive prng on C1060" with linespoints lt 4 lw 2 ps 0 pt 5, \ + 'time_xorlike_gpu.txt' using 1:4 t "naive prng on GTX285" with linespoints lt 5 lw 2 ps 0 pt 5 \ No newline at end of file diff --git a/prng_gpu.tex b/prng_gpu.tex index 2dfa78e..88e246e 100644 --- a/prng_gpu.tex +++ b/prng_gpu.tex @@ -968,10 +968,10 @@ should be of better quality. \begin{figure}[htbp] \begin{center} - \includegraphics[scale=.7]{curve_time_gpu.pdf} + \includegraphics[scale=.7]{curve_time_xorlike_gpu.pdf} \end{center} -\caption{Number of random numbers generated per second} -\label{fig:time_gpu} +\caption{Number of random numbers generated per second with the xorlike based prng} +\label{fig:time_xorlike_gpu} \end{figure} @@ -981,6 +981,15 @@ In comparison, Listing~\ref{algo:seqCIprng} allows us to generate about +\begin{figure}[htbp] +\begin{center} + \includegraphics[scale=.7]{curve_time_bbs_gpu.pdf} +\end{center} +\caption{Number of random numbers generated per second with the bbs based prng} +\label{fig:time_bbs_gpu} +\end{figure} + + %% \section{Cryptanalysis of the Proposed PRNG} diff --git a/time_bbs_gpu.txt b/time_bbs_gpu.txt new file mode 100644 index 0000000..d32fb1b --- /dev/null +++ b/time_bbs_gpu.txt @@ -0,0 +1,13 @@ +#threads bbs (c1060) opti rand/s (gtx285) opti +10240 1627217759.55 1498102683.67 +20480 1749246235.44 1607349227.62 +30720 1833097798.03 1685516555.22 +51200 1798823386.81 1653380954.14 +76800 1802172135.34 1657005808.07 +102400 1810622021.15 1664347848.70 +153600 1831246356.28 1685425622.09 +512000 1826609454.30 1682096838.84 +768000 1825429813.30 1682980716.62 +1048576 1823084118.32 1679854343.07 +2097152 1818671555.41 1676695462.37 +5242880 1805432088.56 1667271144.46 diff --git a/time_gpu.txt b/time_xorlike_gpu.txt similarity index 100% rename from time_gpu.txt rename to time_xorlike_gpu.txt