6 Replies Latest reply on Jul 8, 2011 1:15 PM by MicahVillmow

    global memory writing within IF statement in OpenCL Kernel


      I wrote a opencl kernel for testing:


      if   (A==B)   {   copy private memory data to global memory }


      I am sure that  A definitely not equal B for all work-item, but the If statement still decreases the performance seriously.

      Can anyone give me a hint?

      Thank you!