ctwang.thomas

global memory writing within IF statement in OpenCL Kernel

Discussion created by ctwang.thomas on Jul 8, 2011
Latest reply on Jul 8, 2011 by MicahVillmow

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!

 

Outcomes