title: CUDA Thrust performance
body: <p>I have a 640*480 vector which contains a set of numbers, I wish to find the min and max number of each row of the vector.</p>
  
  <pre><code>for(int i = 0; i &lt; R; i++)
      {
          Begin = m_valBuffer.begin()  + (i*C);
          End = Begin+C;
  
          rMinmax= minmax_element(Begin, End);
       }
  </code></pre>
  
  <p>However this is extremely slow, is there any way I could speed this up?</p>
  
  <ul>
  <li>The current load on the GPU when running this is only 34% so there must be a way to improve this?</li>
  </ul>