CPC G06F 1/266 (2013.01) | 7 Claims |
1. A method for controlling a voltage of a power supply of a data processing device, comprising:
determining a computing power ratio of the data processing device based on an actual computing power and a theoretical computing power of the data processing device;
generating a power supply control instruction based on a result of comparison between the computing power ratio and a predetermined threshold; and
controlling an output voltage of the power supply of the data processing device based on the power supply control instruction,
wherein said determining a computing power ratio of the data processing device based on an actual computing power and a theoretical computing power of the data processing device comprises:
determining a theoretical computing power of each chip of the data processing device based on a number of cores and a chip frequency of the chip; determining a sum value of theoretical computing powers of chips as the theoretical computing power of the data processing device;
determining an actual computing power of each chip based on a total number of Nonce of the chip within a predetermined time, a Nonce difficulty of the chip, and the predetermined time;
determining a sum value of the actual computing powers of the chips as the actual computing power of the data processing device; and
determining a ratio of the actual computing power to the theoretical computing power as the computing power ratio.
|