title: cuda performance constraints: conditional branching
body: <p>Guys I want to know something related cuda performance about conditional branching. I have the following code</p>
  
  <pre><code>if(i==5)
  i=10;
  else
  i=5;
  </code></pre>
  
  <p>Now instead of this if i use the following statement will it remove the n/2 performance bottleneck in cuda?</p>
  
  <pre><code>i=(i==5)?10:5;
  </code></pre>
  
  <p>Thank you for your help in advance.</p>