Patent ID: 8806243

Claim:
A method comprising: executing a workload on a graphics (GFX) core in a first mode the GFX core comprising a plurality of Subslices wherein each of the plurality of Subslices receives power; calculating a number of clock cycles, Tfirst mode, required for the GFX core to perform the workload in the first mode during a first decision window comprising a plurality of clock cycles; calculating a number of clock cycles, Tsecond mode, required for the GFX core to perform the workload in a second mode during the first decision window wherein the second mode comprises executing the workload with fewer of the plurality of Subslices receiving power than when executing the workload in the first mode; determining if the GFX core operated in a power down state during the first decision window; determining, based in part upon Tfirst mode and Tsecond mode, if an energy savings is possible by transitioning the GFX core to the second mode if it is determined that the GFX core operated in a power down state during the first decision window; and transitioning the GFX core to the second mode if it is determined that an energy savings is possible by transitioning the GFX core to the second mode, wherein determining if an energy savings is possible comprises: evaluating: Lkgsecond mode*Tfirst mode+(Lkgsecond mode+Lkgrest)*(Tfirst mode−Tsecond mode)+fvmin*Vmin*(Cfirst mode*Tfirst mode−Csecond mode*Tsecond mode) where Lkgsecond mode is a power leakage of the one or more Subslices receiving power in the second mode, Lkgrest is a power leakage of the GFX core exclusive of the power consumed by the plurality of Subslices, fvmin is the operating frequency of the GFX core, Vmin is the operating voltage of the GFX core, Cfirst mode is the switching capacitance of the GFX core executing in the first mode, and Csecond mode is the switching capacitance of the GFX core executing in the second mode; and determining that the energy savings is possible if a result of the evaluation is a positive quantity.