timing-arb.jgr
来自「用于GPU通用计算的编程语言BrookGPU 0.4」· JGR 代码 · 共 135 行
JGR
135 行
(* Timing.jgr -- * * Master Jgraph file for plotting the results from the Brook timing * tests. *)newgraph (* RunKernel MFLOPS for 2D streams *)yaxis label : MFLOPSxaxis label : Number of Floatsbordertitle : 2D Stream MFLOPS (streamRead + 1000 runs + streamWrite)newcurve marktype circle linetype solid pts 0 0 pts shell : awk '/RunK2D [0-9]+ R1000/ { print $7*$7*4, $2 }' graphs/graph-arb.ptsnewpagenewgraph (* RunKernel Knee 2D Total *)yaxis min 0 label : Time (msecs)xaxis label : Number of ops per iterationbordertitle : 2D Kernel overhead (stream length vs. elapsed time)newcurve label : 1000 Iterations (43 madr kernel) marktype triangle linetype solid pts shell : awk '/RunK2D [4-9] R1000/ { print 4*$7*$7*$9, ($1-$10-$11)/1000 }' graphs/graph-arb.pts pts shell : awk '/RunK2D [0-7][0-9] R1000/ { print 4*$7*$7*$9, ($1-$10-$11)/1000 }' graphs/graph-arb.pts (* newcurve label : streamRead() + 1000 Iterations (BonusKernel) + streamWrite() marktype circle linetype solid pts shell : awk '/RunK2DBonus [4-9] R1000/ { print 4*$7*$7*$9, ($1-$10-$11)/1000 }' graphs/graph-arb.pts pts shell : awk '/RunK2DBonus [0-4][0-9] R1000/ { print 4*$7*$7*$9, ($1-$10-$11)/1000 }' graphs/graph-arb.pts *)legend bottomnewpagenewgraph (* RunKernel R/k/W breakdown *)yaxis label : Time (usecs)xaxis label : Number of Floatsbordertitle : 2D Kernel streamRead() / k() / streamWrite() breakdownnewcurve label : streamRead() marktype circle linetype solid pts 0 0 pts shell : awk '/RunK2D [0-9]+ R1 / { print 4*$7*$7, $10 }' graphs/graph-arb.pts newcurve label : streamRead() + 1 iteration marktype box linetype solid (* pts 0 0 *) pts 0 0 pts shell : awk '/RunK2D [0-9]+ R1 / { print 4*$7*$7, $1 - $11 }' graphs/graph-arb.pts newcurve label : streamRead() + 1 iteration + streamWrite() marktype triangle linetype solid pts 0 0 pts shell : awk '/RunK2D [0-9]+ R1 / { print 4*$7*$7, $1 }' graphs/graph-arb.pts legend bottomnewpagenewgraph (* RunKernel R/W Bandwidth *)yaxis label : MB/sxaxis label : Number of Floats Transferredbordertitle : 2D Kernel streamRead() and streamWrite() Bandwidthnewcurve label : MAX(streamRead(), 1000) marktype circle linetype solid pts shell : awk '/RunK2D [0-9]+ R1 / { \ if (16*$7*$7/$10 > 1000) { \ print 4*$7*$7, 1000 } \ else { print 4*$7*$7, 16*$7*$7/$10 } \ }' graphs/graph-arb.pts newcurve label : streamWrite() marktype triangle linetype solid pts shell : awk '/RunK2D [0-9]+ R1 / { print 4*$7*$7, 16*$7*$7/$11 }' graphs/graph-arb.pts legend bottomnewpagenewgraph (* RunKernel Computed k vs. average k *)yaxis label : Time (usecs)xaxis label : Number of Floatsbordertitle : 2D Kernel Computed k vs. Averaged knewcurve label : MAX(( R + k + W ) - R - W, 0) marktype circle linetype solid pts shell : awk '/RunK2D [0-9]+ R1 / { \ if ($10 > $1) { print 4*$7*$7, 0 } else { print 4*$7*$7, ($1-$10-$11) } \ }' graphs/graph-arb.pts newcurve label : (R + 1000*k + W) / 1000 marktype box linetype solid pts shell : awk '/RunK2D [0-9]+ R1000 / { \ print 4*$7*$7, $1/1000 \ }' graphs/graph-arb.pts legend bottom
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?