plotFLOPS plot some gpuBench data as floating-point operations per second gpubench.plotFLOPS(data,color,linewidth)
0001 function plotFLOPS( data, color, linewidth ) 0002 %plotFLOPS plot some gpuBench data as floating-point operations per second 0003 % 0004 % gpubench.plotFLOPS(data,color,linewidth) 0005 0006 % Copyright 2011 The MathWorks, Inc. 0007 0008 semilogx( data.Sizes, 1e-9 * data.NumOps ./ data.Times, ... 0009 'Color', color, ... 0010 'Marker', '.', ... 0011 'MarkerSize', 10+6*linewidth, ... 0012 'linewidth', linewidth ) 0013 xlabel( 'Number of elements' ) 0014 ylabel( sprintf('GFLOPS\n(higher is better)') ) 0015 grid( 'on' ) 0016 hold( 'on' )