5 Replies Latest reply on Jul 12, 2013 4:16 AM by himanshu.gautam

    Register spilling problem

    cocular
      ========== Build: started ==========
      OpenCL Compile Error: Compiling for device: Turks
      
      Warning: expand kernel has register spilling. Lower performance is expected.
      --------
      
      ========== Build: 1 of 1 succeeded ==========
      
      
      
      

      This is AMD APP KernelAnalzer2 gives.  So do I have register spilled?

      But the statistics gives:

       

      Device    ScratchRegs    ThreadsPerWorkGroup    WavefrontSize    MaxLDSSize    LDSSize    MaxSGPRs    SGPRs    MaxVGPRs    VGPRs    ReqdWorkGroupX    ReqdWorkGroupY    ReqdWorkGroupZ
      Turks    0        0            64        32768        188    N/A        N/A    248        15    0        0        0
      
      
      

      Since I don't think my VGPRs is more than MaxVGPRs.  Why kernel has register spilling?