In one of my kernels there is a whileloop with conditional exit (break_logicalz), and after this there is a fence_lds. Is this a legal placement, and does it do what it is supposed to do? This kernel is unexpectedly performing identically with or without this instruction, and I'm trying to understand why.
thx