ctwang.thomas

How to reduce register using when global memory accessing

Discussion created by ctwang.thomas on Jul 11, 2011
Latest reply on Jul 11, 2011 by maximmoroz

__kernel  code().................

{..................

for (i=0;i<1000000;i++)

{........................

    //generating B

    if   (some condition) then    {__global A=_private B}

....................}

....................}

----------------------------------------------------------------

the GPR in kernelanalyzer is 25.

mark the if statement, the GPR in kernelanalyzer is 11.

How to reduce the register using? THX

Outcomes