title: Roofline model - how to calculate flop/byte ratio?
body: <p>I would like to create roofline model and i have problem with algorithm flop per byte ratio. Can You explain me how to calculate it? The algorithm do computation using 5-point stencil. </p>
  
  <p>Here's algorithm</p>
  
  <pre><code>for(int i=1; i&lt;m-1; ++i) {
     for(int j=1; j&lt;n-1; ++j) {
         outMax[i][j] = max( inMax[i][j], inMax[i][j-1], inMax[i][j+1],
                             inMax[i-1][j], inMax[i+1][j] );
     }
  }
  swap(inMax, outMax)
  
  for(int i=1; i&lt;m-1; ++i) {
     for(int j=1; j&lt;n-1; ++j) {
        outMin[i][j] = min( inMin[i][j], inMin[i][j-1], inMin[i][j+1],
                            inMin[i-1][j], inMin[i+1][j] );
     }
  }
  swap(inMax, outMax)
  </code></pre>