3 Replies Latest reply on Jul 11, 2011 6:20 AM by maximmoroz

    How to reduce register using when global memory accessing

    ctwang.thomas

      __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