CN109002356A - Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium - Google Patents
Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium Download PDFInfo
- Publication number
- CN109002356A CN109002356A CN201810576572.2A CN201810576572A CN109002356A CN 109002356 A CN109002356 A CN 109002356A CN 201810576572 A CN201810576572 A CN 201810576572A CN 109002356 A CN109002356 A CN 109002356A
- Authority
- CN
- China
- Prior art keywords
- kernel
- calculating
- value
- frequency
- working frequency
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 68
- 238000003860 storage Methods 0.000 title claims abstract description 12
- 238000004364 calculation method Methods 0.000 claims abstract description 47
- 238000004458 analytical method Methods 0.000 claims description 35
- 230000033228 biological regulation Effects 0.000 claims description 23
- 238000005457 optimization Methods 0.000 claims description 20
- 238000004590 computer program Methods 0.000 claims description 12
- 238000004422 calculation algorithm Methods 0.000 claims description 10
- 230000008844 regulatory mechanism Effects 0.000 description 19
- 230000003827 upregulation Effects 0.000 description 12
- 238000009826 distribution Methods 0.000 description 8
- 238000010586 diagram Methods 0.000 description 7
- 239000003550 marker Substances 0.000 description 6
- 230000009467 reduction Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000007246 mechanism Effects 0.000 description 4
- 230000002159 abnormal effect Effects 0.000 description 3
- 230000001276 controlling effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000008859 change Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000005611 electricity Effects 0.000 description 2
- 238000003780 insertion Methods 0.000 description 2
- 230000037431 insertion Effects 0.000 description 2
- 230000001737 promoting effect Effects 0.000 description 2
- 230000000630 rising effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 230000004069 differentiation Effects 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000005304 joining Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 230000003442 weekly effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5027—Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Transmitters (AREA)
- Feedback Control In General (AREA)
Abstract
The invention provides a chip frequency modulation method and device of computing equipment, a computing force board, the computing equipment and a storage medium. The method comprises the following steps: setting a plurality of working frequency points for an operation chip of the computing equipment, and respectively working a plurality of cores in the operation chip at each working frequency point; analyzing whether each calculation of the kernel at the current working frequency point is correct or not, and increasing the calculation correct weight value once when the kernel calculates at least once correctly; calculating at least once per error, and reducing the error weight value calculated once; if the current value of the kernel reaches the correct calculation threshold, the current working frequency point of the kernel is adjusted upwards; and if the current value of the kernel reaches the calculation error threshold value, the current working frequency point of the kernel is adjusted downwards. Therefore, the invention can automatically adjust the frequency corresponding to each kernel according to the actual computing performance of each kernel in the computing chip of the computing equipment, thereby exerting the computing performance of the kernels to the maximum extent and further improving the computing performance of the computing chip and the overall computing equipment.
Description
Technical field
The present invention relates to the chip frequency modulation technology field for calculating equipment more particularly to a kind of chip frequency modulation sides for calculating equipment
Method, calculates equipment and storage medium at dress setting and counting power plate.
Background technique
For a large amount of operation chips being generally integrated, due to operation chip manufacturing in the calculating equipment of mass data operation
The limitation of technique, working performance, calculation power, the frequency of nonidentity operation chip are not quite similar;Meanwhile single operation chip also usually by
Multiple mutually independent kernels (Core) form, and the differences such as different location process deviation, pressure drop are but also each in operation chip
The real work performance of kernel is not quite similar.For the working performance difference of nonidentity operation chip and its kernel, how dynamically to adjust
The actually required frequency of section operation chip and the adaptation scheme for setting each kernel are urgent problem to be solved.Existing calculating is set
It is that the frequency that every operation chip and its kernel provide is consistent in standby, the calculating advantage of performance preferably kernel, property can not be played
Can weaker kernel influence the operational performance of operation chip, and then influence the operational performance of overall calculation equipment.
In addition, Chinese patent application CN201611169618.6 discloses a kind of series-fed chip, system, virtual digit
Mine machine and server, including adjustment circuit are dug, is connect respectively with each series-fed chip, electricity is carried out to each series-fed chip
Pressure, temperature or frequency adjustment.When the adjustment unit is to each series-fed chip making frequency adjustment, supplied respectively for each series connection
Whether electrical chip, the working condition according to each unit to be powered in predetermined period detection series-fed chip are normal;If needing to be supplied
The working state abnormal of electric unit is increasing or decreasing working condition not just according to predeterminated frequency step-length within the preset frequency range
The working frequency of normal unit to be powered.Unit to be powered is judged according to the state that the status register of unit to be powered indicates
Whether working condition is normal, and the state of the status register instruction includes: voltage status, state of temperature, working frequency state;
Or the feedback data according to unit to be powered to the data for being sent to the unit to be powered, judge the work shape of unit to be powered
Whether state is normal.
In one embodiment disclosed in Chinese patent application CN201611169618.6, adjustment circuit is to each series-fed core
When piece making frequency adjustment, as frequency regulating circuit, specifically each series-fed core can be directed to by a detector respectively
Whether piece, the working condition according to each unit to be powered in predetermined period detection series-fed chip are normal;If there is list to be powered
The working state abnormal of member, can specifically be mentioned according to predeterminated frequency step-length within the preset frequency range by an adjuster
The working frequency of unit to be powered that is high or reducing working state abnormal.As it can be seen that CN201611169618.6 discloses adjusting
Device can to chip making frequency adjustment, but its be only according to unit to be powered whether normal sending and receiving data, voltage status,
The working conditions such as state of temperature, frequency state adjust the working frequency of chip, and frequency Regulation mechanism lacks accuracy, can not
Give full play to the operational performance of chip.
In summary, the existing technology has inconveniences and defects in actual use, so it is necessary to be improved.
Summary of the invention
For above-mentioned defect, the purpose of the present invention is to provide a kind of chip frequency modulation methods for calculating equipment, dress setting and counting
Power plate calculates equipment and storage medium, can according to the practical calculated performance of each kernel in the operation chip for calculating equipment,
Automatically adjust the corresponding frequency of each kernel, thus utmostly play kernel calculated performance, and then improve operation chip and
The operational performance of integral operation equipment.
The present invention provides a kind of chip frequency modulation method for calculating equipment, and the calculating equipment is provided with an at least operation core
Piece, the operation chip are provided with multiple kernels, including the following steps:
Multiple working frequency points are arranged for the operation chip for calculating equipment, by the operation in frequency point setting step
Multiple kernels in chip work in each working frequency points respectively;
Calculated performance analytical procedure, whether each calculating for analyzing the kernel in current working frequency is correct, described interior
Core is often computed correctly at least once, increases the primary scheduled correct weighted value of calculating, and the every erroneous calculations of the kernel are at least
Once, primary scheduled calculating error weight value is reduced;
Frequency set-up procedure, if the current value of the kernel reaches scheduled calculating proper threshold value, by the institute of the kernel
Current working frequency is stated to be raised;Alternatively, if the current value of the kernel reaches scheduled calculating error thresholds, by institute
The current working frequency for stating kernel is lowered.
Chip frequency modulation method according to the present invention, the frequency point setting step further comprises:
It is that multiple working frequency points, the working frequency points and institute is arranged in the operation chip by multiple phase-locked loop circuits
Stating phase-locked loop circuit is one-to-one relationship;
The frequency set-up procedure further comprises:
It is raised or is lowered by the current working frequency of the phase-locked loop circuit to the kernel.
Chip frequency modulation method according to the present invention, the phase-locked loop circuit be set to the operation chip inside or
It is external.
Chip frequency modulation method according to the present invention, the frequency difference between the adjacent working frequency points are 1~10%.
Chip frequency modulation method according to the present invention further includes that step has:
If the kernel for working at least one scheduled Optimization Work frequency point is more than scheduled first ratio, stopping pair
The kernel carries out frequency modulation;Or
If the number for working in the kernel on at least one Optimization Work frequency point is most, stop to the kernel into
Row frequency modulation.
Chip frequency modulation method according to the present invention, the frequency set-up procedure further comprises:
If the current value of the kernel reaches the calculating proper threshold value, by the work at present frequency of the kernel
A working frequency points are transferred on point;
If the current value of the kernel reaches the calculating error thresholds, by the work at present frequency of the kernel
Point is lowered to next working frequency points.
Chip frequency modulation method according to the present invention, the calculated performance analytical procedure further comprises:
Preset reference node point value, the correct weighted value of the calculating, the calculating error weight value, institute of the kernel
It states and calculates proper threshold value and the calculating error thresholds;
Whether each calculating for analyzing the kernel in the current working frequency is correct;
The kernel is often computed correctly at least once, increases the primary correct weight of calculating on the reference node point value
Value, and the every erroneous calculations of the kernel are at least once, and the primary calculating error weight is reduced on the reference node point value
Value;
Judge whether the current reference nodal value of the kernel reaches the calculating proper threshold value or the wrong threshold of the calculating
Value;
The frequency set-up procedure further comprises:
If the current reference nodal value of the kernel reaches the calculating proper threshold value, will work as described in the kernel
Preceding working frequency points are raised;
If the current reference nodal value of the kernel reaches the calculating error thresholds, will work as described in the kernel
Preceding working frequency points are lowered.
Chip frequency modulation method according to the present invention, the analysis kernel is in each of the current working frequency
Calculate whether correct step further include:
Whether correct analyze the random number that the kernel is submitted every time;
The kernel is often computed correctly at least once, increases the primary correct weight of calculating on the reference node point value
Value, and the every erroneous calculations of the kernel are at least once, and the primary calculating error weight is reduced on the reference node point value
The step of value further include:
The kernel is every to submit correct random number at least once, is increasing the primary calculating on the reference node point value just
True weighted value, the kernel is every to submit wrong random number at least once, and the primary calculating is reduced on the reference node point value
Error weight value.
Chip frequency modulation method according to the present invention, whether the random number that the analysis kernel is submitted every time
Correct step further include:
After the kernel submits the random number, the kernel calculates the random number by scheduled algorithm
First as a result, include fisrt feature in first result;
The random number is calculated second as a result, institute by the identical algorithm by the checking computations unit of the operation chip
Stating in the second result includes second feature;
If the fisrt feature is identical as the second feature, the checking computations unit determine the random number be correctly with
Otherwise machine number determines that the random number is wrong random number.
Chip frequency modulation method according to the present invention, the method also includes:
It is arranged and adjusts the reference node point value, the correct weighted value of the calculating, institute of the kernel according to actual needs
It states and calculates error weight value, the calculating proper threshold value and/or the calculating error thresholds, it is described to calculate correct weighted value and institute
It states and calculates that the identical perhaps not identical calculating proper threshold value of error weight value is identical with the calculating error thresholds or not phase
Together;
By controlling kernel expectation described in the Ratio control for calculating correct weighted value and the calculating error weight value
The resident error rate of tolerance;
By controlling the order of magnitude control adjustment week for calculating correct weighted value and the calculating error weight value
Phase;
The adjustment week is controlled by controlling the order of magnitude for calculating proper threshold value and the calculating error thresholds
Phase.
Chip frequency modulation method according to the present invention, the calculation formula of the resident error rate are as follows: resident error rate=
Calculate correct weighted value/(calculating correct weighted value+calculating error weight value).
Chip frequency modulation method according to the present invention, the calculated performance analytical procedure further include:
According to preset real-time adjustment instruction, whether the current reference node of kernel described in real-time judge reaches described
Calculate proper threshold value or the calculating error thresholds;
It is instructed according to preset timing adjustment, in the adjustment time section of timing adjustment instruction setting, described in judgement
Whether the current reference node of kernel reaches the calculating proper threshold value or the calculating error thresholds;Or
Whether instant adjustment instruction based on the received, the current reference node for analyzing the kernel reach the calculating
Proper threshold value or the calculating error thresholds;
The frequency set-up procedure further include:
According to preset real-time adjustment instruction, calculated correctly if the current reference nodal value of the kernel reaches described
Threshold value in real time raises the current working frequency of the kernel;If the current reference nodal value of the kernel
Reach the calculating error thresholds, in real time lowers the current working frequency of the kernel;
It is instructed according to preset timing adjustment, in the adjustment time section, if the current reference section of the kernel
Point value reaches the calculating proper threshold value, and the current working frequency of the kernel is raised;In the adjustment time
In section, if the current reference nodal value of the kernel reaches the calculating error thresholds, by the described current of the kernel
Working frequency points are lowered;Or
Instant adjustment instruction based on the received calculates correctly if the current reference nodal value of the kernel reaches described
Threshold value raises the current working frequency of the kernel;If the current reference nodal value of the kernel reaches
The calculating error thresholds lower the current working frequency of the kernel;Stop adjustment instruction based on the received,
Stop the adjustment to the current working frequency of the kernel.
The present invention also provides a kind of chip frequency modulation device for calculating equipment, at least one fortune is provided in the calculating equipment
Chip is calculated, is provided with multiple kernels in the operation chip, the chip frequency modulation device includes:
Frequency point setting module will be described for multiple working frequency points to be arranged for the operation chip for calculating equipment
Multiple kernels in operation chip work in each working frequency points respectively;
Calculated performance analysis module, for analyzing the kernel in whether correct, the institute of each calculating of current working frequency
It states kernel to be often computed correctly at least once, increases the primary scheduled correct weighted value of calculating, and the every erroneous calculations of the kernel
At least once, primary scheduled calculating error weight value is reduced;
Frequency regulation block, if the current value for the kernel reaches scheduled calculating proper threshold value, by the kernel
The current working frequency raised;Alternatively, if the current value of the kernel reaches scheduled calculating error thresholds,
The current working frequency of the kernel is lowered.
Chip frequency modulation device according to the present invention, the frequency point setting module for being by multiple phase-locked loop circuits
Multiple working frequency points are arranged in the operation chip, and the working frequency points and the phase-locked loop circuit are one-to-one relationship;
The frequency regulation block, for by the phase-locked loop circuit to the current working frequency of the kernel into
Row up-regulation is lowered.
The present invention also provides it is a kind of include chip frequency modulation device described in any one of the above calculation power plate.
The present invention also provides it is a kind of include chip frequency modulation device described in any one of the above calculating equipment.
The present invention also provides a kind of storage mediums, a kind of for calculating the core of equipment described in any one of the above for storing
The computer program of piece frequency modulation method.
The present invention carries out automatic frequency adjustment for the kernel for the operation chip for calculating equipment, and multiple suitable work frequencies are first arranged
Point works in multiple kernels in operation chip in different working frequency points respectively, and then kernel is often computed correctly at least one
It is secondary, increase the primary scheduled correct weighted value of calculating;The every erroneous calculations of kernel at least once, reduce primary scheduled calculating mistake
Weighted value;If reaching scheduled calculating proper threshold value, current working frequency is raised, i.e. the high kernel of up-regulation calculated performance
Frequency;If reaching scheduled calculating error thresholds, the current working frequency of kernel is lowered, i.e. downward calculated performance is low
Kernel frequency.Whereby, the present invention can be according to the practical calculated performance of each kernel in the operation chip for calculating equipment, certainly
It is dynamic to adjust the corresponding frequency of each kernel, to utmostly play the calculated performance of kernel, and then improve operation chip and whole
The operational performance of body arithmetic facility.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the chip frequency modulation device that the present invention calculates equipment;
Fig. 2 is the structural schematic diagram that the chip frequency modulation device of equipment is calculated in one embodiment of the invention;
Fig. 3 is the structural schematic diagram that the chip frequency modulation device of equipment is calculated in another embodiment of the present invention;
Fig. 4 is the flow chart for the chip frequency modulation method that the present invention calculates equipment;
Fig. 5 is the flow chart that the chip frequency modulation method of equipment is calculated in further embodiment of this invention;
Fig. 6 is the flow chart that the chip frequency modulation method of equipment is calculated in yet another embodiment of the invention;
Fig. 7 is the structural schematic diagram that the present invention calculates equipment.
Appended drawing reference:
The chip frequency modulation device of 100- calculating equipment
10- frequency point setting module
20- calculated performance analysis module
21- analyzes submodule
211- computing unit 212- checks unit
Submodule 23- counting submodule is arranged in 22-
24- judging submodule
30- frequency regulation block
31- frequency adjusting submodule 32- stop frequency adjusting submodule
40- phase-locked loop circuit 50- kernel
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
It should be noted that the reference of " one embodiment ", " embodiment ", " example embodiment " etc. is directed in this specification,
The embodiment for referring to description may include specific feature, structure or characteristic, and each embodiment of but not must include this
A little a particular feature, structure, or characteristics.In addition, such statement not refers to the same embodiment.Further, implementation is being combined
When example describes specific feature, structure or characteristic, regardless of either with or without specific description, it has been shown that by such feature, structure
Or it is in the knowledge of those skilled in the range that characteristic, which is integrated in other embodiments,.
In addition, some vocabulary has been used in specification and subsequent claim to censure specific components or component,
Person with usual knowledge in their respective areas is, it is to be appreciated that manufacturer can call the same component with different noun or term
Or component.This specification and subsequent claim not in such a way that the difference of title is as component or component is distinguished, and
It is the criterion with component or component difference functionally as differentiation.In specification in the whole text and following claims
Mentioned " comprising " and "comprising" is an open term, therefore should be construed to " including but not limited to ".In addition, " connection "
One word is comprising any direct and indirect means of electrical connection herein.Indirect means of electrical connection includes passing through other devices
It is attached.
Fig. 1 is the structural schematic diagram for the chip frequency modulation device that the present invention calculates equipment, and the calculating equipment is preferred for sea
Measure operation, such as the operation for excavating virtual digit currency.At least one operation chip, institute are provided in the calculating equipment
It states and is provided with multiple kernels (Core) 50 in operation chip.The equipment that calculates preferably includes control panel, connect with control panel
Power plate is calculated, at least one operation chip is provided on the calculation power plate, multiple kernels 50 is provided in operation chip.Certainly, institute
Stating and calculating equipment can also include radiator, connecting plate, power module etc..
It is noted that chip frequency modulation technology of the present invention is practical to be related to the frequency Regulation mechanism of two levels: operation chip
Frequency Regulation mechanism and kernel level frequency Regulation mechanism.The frequency Regulation mechanism of the operation chip refers to for each fortune
It calculates chip and several suitable working frequency points is set, and each kernel 50 of operation chip is allowed to work in each working frequency points, sufficiently
Play the working performance of each kernel 50.The frequency Regulation mechanism of the kernel level refers to computational according to the reality of kernel 50
Can, kernel 50 is adjusted to suitable working frequency points, it is low to lower calculated performance for the frequency of the high kernel 50 of up-regulation calculated performance
The frequency of kernel 50, to give full play to the calculated performance of each kernel 50.
The chip frequency modulation device 100, which includes at least, frequency point setting module 10, calculated performance analysis module 20 and frequency
Adjust module 30, in which:
The frequency point setting module 10, for the multiple working frequency points of operation chip setting to calculate equipment, each work
The frequency of frequency point is different, and multiple kernels 50 in operation chip are worked in each working frequency points respectively.
I.e. according to the frequency Regulation mechanism of operation chip, several different frequency points are set for each operation chip, and allow fortune
The each kernel 50 for calculating chip works in each working frequency points.Such as 6 working frequency points of setting:
500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz.The frequency points of working frequency points of the present invention, frequency
Gap can be arranged according to actual needs between rate, and the working frequency points the more more can give full play to the calculated performance of each kernel 50.?
(frequency modulation not yet is carried out to kernel 50) when starting frequency modulation switch, kernel 50 can be averaged distribution, inequality according to pre-defined rule
It is distributed or is randomly distributed in the working frequency points and work.Preferably, frequency point setting module 10 can be by as shown in Figure 2
Multiple phase-locked loop circuits (Phase Locked Loop, PPL) 40 are that multiple working frequency points are arranged in operation chip, and certain frequency point is set
Setting module 10 can also be that multiple working frequency points are arranged in operation chip by other hardware or software.
It has to be noted that the frequency difference in the present invention between working frequency points needs to control in zone of reasonableness.Because working as kernel
50 improve a working frequency points, and the working frequency of the kernel will improve a frequency difference value, can be because of the raising of calculating speed
And then promote certain calculated performance.Simultaneously, the working frequency for promoting kernel may be because the reduction for calculating accuracy
And then certain calculated performance is lost.So frequency point setting module 10 should rationally control the frequency between adjacent working frequency points
Difference, when so that kernel 50 being transferred to a upper working frequency points from current working frequency, being benefited for the calculated performance of kernel 50 should be big
In loss.Preferably, the frequency difference between adjacent working frequency points is 1~10%.
Just whether the calculated performance analysis module 20 calculate for analyzing kernel 50 in each of current working frequency
Really, kernel 50 is often computed correctly at least once, increases the primary scheduled correct weighted value of calculating;The every erroneous calculations of kernel 50 are at least
Once, primary scheduled calculating error weight value is reduced.If the current value of kernel 50 reaches scheduled calculating proper threshold value, table
Show that the calculation of performance indicators of kernel 50 is higher, the calculated performance of the kernel 50 may be there are also room for promotion.If kernel 50 is worked as
Preceding value reaches scheduled calculating error thresholds, then it represents that the calculation of performance indicators of kernel 50 is lower, the kernel 50 it is computational
It can may be not enough to operation at frequencies corresponding in current working frequency.
The frequency regulation block 30, if the current value for kernel 50 reaches scheduled calculating proper threshold value, by kernel
50 current working frequency is raised;If alternatively, reach scheduled calculating error thresholds for the current value of kernel 50, will in
The current working frequency of core 50 is lowered.It, will be according to the practical meter of kernel 50 i.e. according to the frequency Regulation mechanism of kernel level
Performance is calculated, kernel 50 is adjusted to suitable working frequency points, the frequency of the high kernel 50 of up-regulation calculated performance lowers calculated performance
The frequency of low kernel 50, to give full play to the calculated performance of each kernel 50.
Chip frequency modulation device 100 of the present invention may be disposed at the internal or external of operation chip.The present invention is according to operation chip
In each kernel 50 practical calculated performance evaluation kernel 50 working performance, adjust 50 respective frequencies of kernel, giving full play to property
Can more excellent kernel 50 calculating advantage, and the weaker kernel 50 of performance is avoided to influence the operational performance of operation chip, utmostly sent out
The calculated performance of each kernel 50 is waved, and then improves the calculating speed of operation chip and overall calculation equipment and calculates accuracy.
Also, the kernel 50 of operation chip of the present invention will not jump between different frequency, and working frequency is relatively stable.
Fig. 2 is the structural schematic diagram that the chip frequency modulation device of equipment is calculated in one embodiment of the invention, the calculating equipment
It is preferred for magnanimity operation, such as the operation for excavating virtual digit currency.The calculating equipment preferably include control panel, with
The calculation power plate of control panel connection, is provided at least one operation chip on the calculations power plate, is provided in operation chip multiple interior
Core (Core) 50.Certainly, the calculating equipment can also include radiator, connecting plate, power module etc..The chip frequency modulation dress
Setting 100 and including at least has frequency point setting module 10, calculated performance analysis module 20 and frequency regulation block 30, in which:
The frequency point setting module 10, for being that multiple work frequencies are arranged in operation chip by multiple phase-locked loop circuits 40
Multiple kernels 50 in operation chip are worked in each working frequency points by point respectively, and the frequency of each working frequency points is different and described
Working frequency points and phase-locked loop circuit 40 are one-to-one relationship.Preferably, phase-locked loop circuit 40 is set to the interior of operation chip
Portion or outside.
Just whether the calculated performance analysis module 20 calculate for analyzing kernel 50 in each of current working frequency
Really, kernel 50 is often computed correctly at least once, increases the primary scheduled correct weighted value of calculating;And the every erroneous calculations of kernel 50
At least once, primary scheduled calculating error weight value is reduced.
The frequency regulation block 30, for being raised by current working frequency of the phase-locked loop circuit 40 to kernel 50
Or it lowers.Specifically, if the current value of kernel 50 reaches scheduled calculating proper threshold value, by phase-locked loop circuit 40 by kernel
50 current working frequency is raised;Alternatively, passing through locking phase if the current value of kernel 50 reaches scheduled calculating error thresholds
Loop circuit 40 lowers the current working frequency of kernel 50.
Preferably, the frequency regulation block 30 further includes having frequency adjusting submodule 31 and stop frequency adjustment submodule
Block 32, in which:
The frequency adjusting submodule 31 is raised or is lowered for the current working frequency to kernel 50.Preferably
It is that frequency adjusting submodule 31 is raised or lowered by current working frequency of the phase-locked loop circuit 40 to kernel 50.Certainly,
Frequency adjusting submodule 31 can also by other hardware or software realization to the current working frequency of kernel 50 carry out up-regulation or
It lowers.
The stop frequency adjusting submodule 32, if the kernel for working at least one scheduled Optimization Work frequency point
50 be more than scheduled first ratio, stops carrying out frequency modulation to kernel 50;If for working in an at least Optimization Work frequency point
On kernel 50 number it is most, stop to kernel 50 carry out frequency modulation.
For example, default one or more Optimization Work frequency points can be selected in several working frequency points, if most of kernels 50
Working frequency have arrived at the Optimization Work frequency point, show in operation chip that the working frequency of kernel 50 has been in optimization
State can give full play to the calculated performance of each kernel 50, it is no longer necessary to further frequency modulation, therefore stop 50 working frequency of kernel
Adjustment.Such as 6 working frequency points of setting, 500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz, selection is wherein
Two Optimization Works frequency point 600Mhz and 650Mhz are Optimization Work frequency point, if being more than that 80% kernel 50 works in working frequency points
600Mhz and 650Mhz then stops carrying out frequency modulation to kernel 50.
Fig. 3 is the structural schematic diagram that the chip frequency modulation device of equipment is calculated in another embodiment of the present invention, and the calculating is set
It is standby to be preferred for magnanimity operation, such as the operation for excavating virtual digit currency.The calculating equipment preferably include control panel,
The calculation power plate connecting with control panel is provided at least one operation chip on the calculation power plate, is provided in operation chip multiple
Kernel (Core) 50.Certainly, the calculating equipment can also include radiator, connecting plate, power module etc..The chip frequency modulation
Device 100 includes frequency point setting module 10, calculated performance analysis module 20, frequency regulation block 30, in which:
The frequency point setting module 10, for the multiple working frequency points of operation chip setting to calculate equipment, each work
The frequency of frequency point is different, and multiple kernels 50 in operation chip are worked in each working frequency points respectively.I.e. according to operation chip
Frequency Regulation mechanism, several different frequency points are set for each operation chip, and each kernel 50 of operation chip is allowed to work
In each working frequency points.Such as 6 working frequency points of setting: 500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz.
Gap can be arranged according to actual needs between the frequency points of working frequency points of the present invention, frequency, and the working frequency points the more more can be abundant
Play the calculated performance of each kernel 50.When starting frequency modulation switch (not yet to kernel 50 carry out frequency modulation), kernel 50 can be by
It is averaged distribution, unequal distribution according to pre-defined rule or is randomly distributed in the working frequency points and work.Preferably, frequency point is set
Setting module 10 can be that multiple working frequency points are arranged in operation chip by multiple phase-locked loop circuits 40 as shown in Figure 2.
The calculated performance analysis module 20 further comprises having:
Submodule 22 is set, for presetting the reference node point value of kernel 50, calculating correct weighted value, calculating mistake power
Weight values calculate proper threshold value and calculate error thresholds.It is described calculate correct weighted value and calculate error weight value can it is identical or
It is not identical;The calculating proper threshold value and calculating error thresholds can be identical or not identical.The reference node point value calculates correctly
Weighted value, calculating error weight value, calculating proper threshold value and calculating error thresholds belong to adjustable parameter, can be adjusted according to frequency
The actual needs such as speed optimize setting.
Submodule 21 is analyzed, it is whether correct in each calculating of current working frequency for analyzing kernel 50.Kernel 50 can
To carry out a variety of different calculating, can analyze kernel 50 it is each certain or it is several calculate it is whether correct.Preferably analyze kernel
Whether 50 calculated Nonce are correct.
Counting submodule 23 is often computed correctly at least once for kernel 50, increases primary calculate on reference node point value
Correct weighted value, and the every erroneous calculations of kernel 50 are at least once, and primary calculating error weight value is reduced on reference node point value.
Preferably, kernel 50 is often computed correctly once, is increased on reference node point value and is once calculated correct weighted value.Of course, it is possible to
It is set as kernel 50 and is often computed correctly n times (N is the natural number greater than 1), increase the correct power of primary calculating on reference node point value
Weight values.The every erroneous calculations of kernel 50 are primary, and primary calculating error weight value is reduced on reference node point value.Of course, it is possible to be arranged
For the every erroneous calculations n times of kernel 50 (N is the natural number greater than 1), primary calculating error weight value is reduced on reference node point value.
Judging submodule 24 calculates proper threshold value or calculating for judging whether the current reference nodal value of kernel 50 reaches
Error thresholds.If current reference nodal value reaches calculating proper threshold value, then it represents that the calculated performance of the kernel 50 is higher and can
It can be there are also room for promotion;If current reference nodal value reaches calculating error thresholds, then it represents that the calculated performance of the kernel 50 compared with
It is weak, operation at frequencies corresponding in current working frequency may be not enough to.
The frequency regulation block 30 shows if the current reference nodal value for kernel 50 reaches calculating proper threshold value
Optimal computed performance has not yet been reached in the kernel 50, and the current working frequency of kernel 50 is raised;And if being used for kernel 50
Current reference nodal value reach calculating error thresholds, show that the calculated performance of the kernel 50 is not enough in current working frequency
Work, the current working frequency of kernel 50 is lowered.Preferably, the frequency regulation block 30 can pass through such as Fig. 2 institute
The phase-locked loop circuit 40 or software shown carries out frequency modulation to kernel 50.It will be appreciated by persons skilled in the art that frequency point adjusts mould
The adjustment mode of the adjustment setting working frequency points of block 50 is not limited to that.It, will i.e. according to the frequency Regulation mechanism of kernel level
According to the practical calculated performance of kernel 50, kernel 50 is adjusted to suitable working frequency points, the high kernel 50 of up-regulation calculated performance
Frequency, the frequency of the low kernel 50 of calculated performance is lowered, to give full play to the calculated performance of each kernel 50.
Preferably, if current value of the frequency regulation block 30 for kernel 50 reaches calculating proper threshold value, by kernel 50
Current working frequency on be transferred to a working frequency points;If the current value for kernel 50 reaches calculating error thresholds,
The current working frequency of kernel 50 is lowered to next working frequency points.It will be appreciated by persons skilled in the art that upper one
Working frequency points are not limited in upper operated adjacent frequency point, may also set up more than one upper operated adjacent frequency point as upper one
A working frequency points;Next working frequency points are not limited in next operated adjacent frequency point, may also set up more than one next phase
Adjacent working frequency points are as next working frequency points.As, a upper work will be transferred on the current working frequency 600MHz of kernel 50
Make frequency point 700MHz;The current working frequency 600MHz of kernel 50 is lowered to next working frequency points 500MHz.And so on,
Herein not to a upper working frequency points, the spacing of subsequent work frequency point is limited.Preferably, current working frequency and a upper work
Make that the frequency difference between frequency point is 1~10% and the frequency difference of current working frequency and next working frequency points is 1~10%, makes
Kernel 50 when being transferred to a upper working frequency points or next working frequency points from current working frequency, the calculated performance of kernel 50
Benefited should be greater than losing.
For example, setting 400000 is used as reference node point value, calculates correct weighted value and be set as 180, calculates error weight value and set
It is 9000, calculates proper threshold value and calculating error thresholds are set as 100000.
Kernel 50 is often computed correctly once, and 180 (calculating correct weighted value) are added on the reference node point value;The every mistake of kernel 50
Error count calculates primary, reduction 9000 (the calculating error weight values) on the reference node point value;On the basis of the reference node point value, often
Increase or decrease 100000 (calculate proper threshold value and calculate error thresholds), a upward frequency point is advanced or to next frequency point depression of order.
Present scheme is similar to mistake and correct tug-of-war mechanism, and correct and mistake can have different weights.If
Reference node point value is set, a correct result is often received, increase once calculates correct weighted value, often receives an error result, subtract
Few primary calculating error weight value carries out the up-regulation or downward of frequency if reward or punishment are more than respective side thresholding.It can be with
Understanding that adjustment system has a marker, reference node point value is the initial value of maker, if there is correctly submitting then maker+180,
Mistake submits then maker -9000 every time.Correct (N is the natural number more than or equal to 1) by n times, (M is big after M mistake
In or equal to 1 natural number), marker should be in the position of 400000+N*180-M*9000, if Marker be more than certain side
Thresholding then carries out corresponding frequencies adjustment (raise or lower).Then every secondary frequencies are adjusted on new frequency point that all initialization should
Current reference nodal value, i.e., is re-set as initial reference node point value by value.
Preferably, the setting submodule 22 is for being arranged according to actual needs and adjusting the reference mode of kernel 50
It is worth, calculates correct weighted value, calculate error weight value, calculate proper threshold value and/or calculate error thresholds, calculates correct weighted value
Calculating proper threshold value identical perhaps not identical with calculating error weight value and calculating error thresholds are identical or not identical.
Preferably, the setting submodule 22 is used to calculate correct weighted value by control and calculates error weight value
The resident error rate of the expectation tolerance of Ratio control kernel 50.The calculation formula of resident error rate are as follows: resident error rate=calculating is just
True weighted value/(calculating correct weighted value+calculating error weight value).
Preferably, the setting submodule 22 is used to calculate correct weighted value by control and calculates error weight value
The order of magnitude control adjustment period.
Preferably, the setting submodule 22 is used to calculate proper threshold value by control and calculates the absolute of error thresholds
It is worth the size control adjustment period.
Preferably, being computed correctly for the kernel 50 refers to that kernel 50 is computed correctly Nonce.
The analysis submodule 21, it is whether correct for analyzing the Nonce that kernel 50 is submitted every time.
The counting submodule 26, for increasing on reference node point value in the every submission correct Nonce at least once of kernel 50
Add and once calculates correct weighted value;And the every submission mistake Nonce at least once of kernel 50, it is reduced once on reference node point value
Calculate error weight value.Preferably, in the primary correct Nonce of every submission of kernel 50, increase primary meter on reference node point value
Calculate correct weighted value.It is of course also possible to be set as the every submission N of kernel 50 (N is greater than 1 natural number) secondary correct Nonce, joining
It examines to increase on nodal value and once calculates correct weighted value.Kernel 50 is every to submit primary mistake Nonce, reduces on reference node point value
It is primary to calculate error weight value.It is of course also possible to be set as the every submission N of kernel 50 (N is greater than 1 natural number) secondary mistake
Nonce reduces primary calculating error weight value on reference node point value.
It is preferred that analysis submodule 21 further comprises:
Computing unit 211, after submitting a Nonce for kernel 50, kernel 50 calculates Nonce by scheduled algorithm
First as a result, include fisrt feature in first result out.
Unit 212 is checked, for Nonce to be calculated second as a result, wrapping in second result by identical algorithm
Contain second feature.If fisrt feature is identical as second feature, determine that Nonce is correct Nonce, otherwise determines that Nonce is
Mistake Nonce.
For example, kernel 50 is submitted after calculating a Nonce, the first Kazakhstan is calculated in Nonce insertion block head
It wishes as a result, preceding 20 values of the first Hash result are 0 (fisrt feature).It checks unit 212 and the Nonce is also embedded in block head
The second Hash result is calculated, if first 20 of the second Hash result are also 0 (second feature), then it is assumed that the Nonce is
Primary correct submission.
It is noted that in order to improve single kernel 80 calculate can meet write-in block chain nonce value probability,
It can judge that Hash, each kernel 80 will be submitted using Target_Lite much easier than above-mentioned " target value Target "
Nonce can be more frequently submitted, the nonce that the first checking computations unit 212 submits kernel 80 is checked, if it is used
The calculated Hash of nonce that kernel 80 is submitted equally passes through the judgement of Target_Lite, that is, thinks correctly mentioning for kernel 80
It hands over, is otherwise that mistake is submitted.The invention is not limited to the nonce for using writable final block chain.First checking computations unit
The nonce of interaction is to meet more low threshold between 212 and kernel 80, submits density high, can be conducive to frequency and adjust.
In a concrete application embodiment of the invention: 6 phase-locked loop circuits 40 are used, 6 working frequency points are set:
500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz.Such as it is arranged 400000 and is used as reference node point value, calculates correct
Weighted value is set as 180, calculates error weight value and is set as 9000, calculates proper threshold value and calculating error thresholds are set as 100000.
It is as follows that the number of cores being distributed in each respective frequencies that power plate counts is calculated according to 4 pieces:
Calculate power plate 0:[294 26 96 224 1,023 1665]
Calculate power plate 1:[274 47 111 212 963 1721]
Calculate power plate 2:[350 25 153 369 1,381 1050]
Calculate power plate 3:[488 33 184 367 1,342 950]
Firstly, combined data further illustrates mechanism.Correct weighted value/(calculate correct is calculated according to resident error rate S=
Weighted value+calculating error weight value), and by given data can extrapolate the resident error rate S of kernel 50 (being interpreted as can
Some frequency point is resided in for a long time) it is 180/ (180+9000)=1.29%, the permanent work of kernel 50 at this time is on some frequency point
(because expectation step-length is 0 at this time), working frequency will not be raised or be lowered.It can be deduced that if the calculating error rate of kernel 50 is big
In 1.29% (resident error rate S), working frequency will be raised;If the calculating error rate of kernel 50 is (resident less than 1.29%
Error rate S), working frequency will be lowered.
According to the difficulty being arranged, (difficulty is related with benchmark is examined, and calculates accuracy to kernel 50 and has an impact, degree-of-difficulty factor
Bigger, accuracy is lower;It is on the contrary then accuracy is higher), it can calculate the approximate period for making mistake and adjusting when rising, it is assumed that mistake
Rate is e, then the expectation step-length of each Nonce are as follows:
(1-e) * 180-e*9000=180-9180e.By taking e=0.5% as an example, it is expected that step-length=134.1;It is with e=1%
Example, it is expected that step-length=88.2;By taking e=2% as an example, it is expected that step-length=- 3.6.
By taking 650MHz as an example, kernel 50 submits 1.3/second that are desired for of single Nonce (to submit 1.3 within i.e. 1 second
Nonce).It is explained with the scene that e is 0.5%, i.e., after 746 Nonce submission processes, so that it may it is expected that adjusting upward
Once;E is 1.0% needs, 1134 submissions, it is contemplated that adjusts upward once, if error probability is 2.0%, needs 27778
Secondary submission, it is contemplated that adjustment is primary downwards, other are analogized.
Preferably, the calculated performance analysis module 20 is used for according to preset real-time adjustment instruction, in real-time judge
Whether the current reference node of core 50, which reaches, calculates proper threshold value or calculates error thresholds, and the calculating proper threshold value or calculating are wrong
Accidentally threshold value is identical or not identical.
The frequency regulation block 30 is used for for frequency regulation block 30 according to preset real-time adjustment instruction, if kernel
50 current reference node reaches calculating proper threshold value, in real time raises the current working frequency of kernel 50.If kernel 50
Current reference node reach calculating error thresholds, the current working frequency of kernel 50 is lowered in real time, so that kernel 50
Working frequency obtain in real time dynamic adjust.
Preferably, the calculated performance analysis module 20 is used to be instructed according to preset timing adjustment, in timing adjustment
In the adjustment time section for instructing setting, judges whether the current reference node of kernel 50 reaches and calculate proper threshold value or calculating mistake
Threshold value, the calculating proper threshold value or calculating error thresholds are identical or not identical.
The frequency regulation block 30 is used to be instructed according to preset timing adjustment, in adjustment time section, if kernel 50
Current reference node reach calculating proper threshold value, the current working frequency of kernel 50 is raised.In adjustment time section,
If the current reference node of kernel 50 reaches calculating error thresholds, the current working frequency of kernel 50 is lowered, so that interior
The working frequency of core 50 obtains timing adjustment.Go out correctly as set statistics kernel 50 in 24 hours that Saturday is only arranged weekly
The number of Nonce, and according to calculating accuracy making frequency adjustment.
Preferably, the calculated performance analysis module 20 analyzes kernel 50 for instant adjustment instruction based on the received
Current reference node whether reach calculate proper threshold value or calculate error thresholds, the calculatings proper threshold value or calculate mistake threshold
It is worth identical or not identical.
The frequency regulation block 30 is for instant adjustment instruction based on the received, if the current reference node of kernel 50 reaches
To proper threshold value is calculated, the current working frequency of kernel 50 is raised.If the current reference node of kernel 50 reaches calculating
Error thresholds lower the current working frequency of kernel 50.Stop adjustment instruction based on the received, stops to kernel 50
The adjustment of current working frequency.And for stopping adjustment instruction based on the received, stop the current working frequency to kernel 50
Adjustment.
For example, user can send instant adjustment instruction, the every meter of user setting kernel 50 to calculating equipment at any time as needed
It is primary to calculate correct Nonce, increases weight A on reference mode, the every calculating mistake Nonce of kernel 50 is primary, in the reference mode
Upper reduction weight B.It is when current increase numerical value reaches calculating correct number threshold value C, the upward frequency point of kernel 50 is advanced.Currently subtract
When a small number of values reach calculating error number threshold value D, by kernel 50 to next frequency point depression of order.In addition, user can as needed at any time
Stop adjustment instruction to calculating equipment and sending, after calculating equipment receives the stopping adjustment instruction, stops the tune to kernel 50 immediately
Frequently.
The present invention also provides it is a kind of include calculation power plate just like the chip frequency modulation device 100.
The present invention also provides it is a kind of include the chip frequency modulation device 100 calculating equipment.
Fig. 4 is the flow chart for the chip frequency modulation method that the present invention calculates equipment, can pass through the chip for calculating equipment
Frequency modulation device 100 realizes that the calculating equipment includes at least one operation chip, and the operation chip is provided with multiple kernels.
The calculating equipment is preferred for magnanimity operation, such as the operation for excavating virtual digit currency.It is noted that of the invention
The practical frequency Regulation mechanism of two levels that is related to of chip frequency modulation technology: the frequency Regulation mechanism and inner nuclear layer of operation chip level
The frequency Regulation mechanism in face.The frequency Regulation mechanism of the operation chip level refer to for the setting of each operation chip it is several suitable
Working frequency points, and each kernel 50 of operation chip is allowed to work in each working frequency points, gives full play to the work of each kernel 50
Make performance.The frequency Regulation mechanism of the kernel level refers to the practical calculated performance according to kernel 50, and kernel 50 is adjusted to
Suitable working frequency points, the frequency of the high kernel 50 of up-regulation calculated performance, lower the frequency of the low kernel 50 of calculated performance, thus
Give full play to the calculated performance of each kernel 50.The method includes the steps have:
Multiple working frequency points are arranged to calculate the operation chip of equipment, by multiple kernels in operation chip in step S401
50 work in each working frequency points respectively.
Several different frequency points are arranged according to the frequency Regulation mechanism of operation chip for each operation chip in this step, and
Each kernel 50 of operation chip is allowed to work in each working frequency points.Such as 6 working frequency points of setting: 500MHz, 550MHz,
600MHz, 650MHz, 700MHz, 750MHz.Gap can be according to practical need between the frequency points of working frequency points of the present invention, frequency
It is arranged, the working frequency points the more more can give full play to the calculated performance of each kernel 50.(not yet internally when starting frequency modulation switch
Core 50 carries out frequency modulation), kernel 50 can be averaged distribution, unequal distribution according to pre-defined rule or be randomly distributed in the work
It works on frequency point.Preferably, this step can be that the setting of operation chip is more by multiple phase-locked loop circuits 40 as shown in Figure 2
A working frequency points, naturally it is also possible to which multiple working frequency points are arranged for operation chip by other hardware or software.
Step S402, whether analysis kernel 50 is correct in each calculating of current working frequency, and kernel 50 is often computed correctly
At least once, increase the primary scheduled correct weighted value of calculating, and the every erroneous calculations of kernel 50 are at least once, reduce primary pre-
Fixed calculating error weight value.
If the current value of kernel 50 reaches scheduled calculating proper threshold value, then it represents that the calculation of performance indicators of kernel 50 compared with
The calculated performance of height, the kernel 50 may be there are also room for promotion.If the current value of kernel 50 reaches the wrong threshold of scheduled calculating
Value, then it represents that the calculation of performance indicators of kernel 50 is lower, and the calculated performance of the kernel 50 may be not enough in work at present frequency
The corresponding operation at frequencies of point.
Step S403, if the current value of kernel 50 reaches scheduled calculating proper threshold value, by the work at present frequency of kernel 50
Point is raised;Alternatively, if the current value of kernel 50 reaches scheduled calculating error thresholds, by the current working frequency of kernel 50
It is lowered.
This step is according to the frequency Regulation mechanism of kernel level, by according to the practical calculated performance of kernel 50, by kernel
50 are adjusted to suitable working frequency points, and the frequency of the high kernel 50 of up-regulation calculated performance lowers the low kernel 50 of calculated performance
Frequency, to give full play to the calculated performance of each kernel 50.
The present invention evaluates the working performance of kernel 50 according to the practical calculated performance of kernel 50 each in operation chip, adjusts
50 respective frequencies of kernel, give full play to the calculating advantage of the more excellent kernel 50 of performance, and the weaker kernel 50 of performance is avoided to influence operation
The operational performance of chip utmostly plays the calculated performance of each kernel 50, and then raising operation chip and overall calculation are set
Standby calculating speed and calculating accuracy.Also, the kernel 50 of operation chip of the present invention will not change back and forth frequency, working frequency
It is relatively stable.
Preferably, the step S401 can be that multiple work frequencies are arranged in operation chip by multiple phase-locked loop circuits 40
Point, working frequency points and phase-locked loop circuit 40 are one-to-one relationship.Phase-locked loop circuit 40 as shown in Figure 2 may be disposed at operation core
Piece it is internal or external.Gap can be arranged according to actual needs between the frequency points of each working frequency points, frequency in the present invention, work
It is more more more the calculated performance of each kernel 50 can be given full play to make frequency point.Such as 6 working frequency points of setting, 500MHz, 550MHz,
600MHz, 650MHz, 700MHz, 750MHz.Therefore, it is more to be arranged that more phase-locked loop circuits 40 can be set in the present invention
Working frequency points, so that the calculated performance of each kernel 50 gives full play to.
It has to be noted that the frequency difference in the present invention between working frequency points needs to control in zone of reasonableness.Because working as kernel
50 improve a working frequency points, and the working frequency of the kernel will improve a frequency difference value, can be because of the raising of calculating speed
And then promote certain calculated performance.Simultaneously, the working frequency for promoting kernel may be because the reduction for calculating accuracy
And then certain calculated performance is lost.So frequency point setting module 10 should rationally control the frequency between adjacent working frequency points
Difference, when so that kernel 50 being transferred to a upper working frequency points from current working frequency, being benefited for the calculated performance of kernel 50 should be big
In loss.Preferably, the frequency difference between adjacent working frequency points is 1~10%.
Preferably, the step S403 can be raised by current working frequency of the phase-locked loop circuit 40 to kernel 50
Or it lowers.Specifically, if the current value of kernel 50 reaches scheduled calculating proper threshold value, by phase-locked loop circuit 40 by kernel
50 current working frequency is raised;Alternatively, passing through locking phase if the current value of kernel 50 reaches scheduled calculating error thresholds
Loop circuit 40 lowers the current working frequency of kernel 50.
The chip frequency modulation method that the present invention calculates equipment may also include that
If the kernel 50 for working at least one scheduled Optimization Work frequency point is more than scheduled first ratio, stop internal
Core 50 carries out frequency modulation.Or
If the number for working in the kernel 50 on an at least Optimization Work frequency point is most, stop carrying out frequency modulation to kernel 50.
For example, default one or more Optimization Work frequency points can be selected in several working frequency points, if most of kernels 50
Working frequency have arrived at the Optimization Work frequency point, show in operation chip that the working frequency of kernel 50 has been in optimization
State can give full play to the calculated performance of each kernel 50, it is no longer necessary to further frequency modulation, therefore stop 50 working frequency of kernel
Adjustment.Such as 6 working frequency points of setting, 500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz, selection is wherein
Two Optimization Works frequency point 600Mhz and 650Mhz are Optimization Work frequency point, if being more than that 80% kernel 50 works in working frequency points
600Mhz and 650Mhz then stops carrying out frequency modulation to kernel 50.
Fig. 5 is the flow chart that the chip frequency modulation method of equipment is calculated in yet another embodiment of the invention, can pass through the core
Piece frequency modulation device 100 realizes that the calculating equipment includes at least one operation chip, and the operation chip is provided in multiple
Core.The method includes the steps have:
Multiple working frequency points are arranged to calculate the operation chip of equipment, by multiple kernels in operation chip in step S501
50 work in each working frequency points respectively.
Several different frequencies are arranged according to the frequency Regulation mechanism of operation chip level for each operation chip in this step
Point, and each kernel 50 of operation chip is allowed to work in each working frequency points.Such as 6 working frequency points of setting: 500MHz,
550MHz, 600MHz, 650MHz, 700MHz, 750MHz.Gap can root between the frequency points of working frequency points of the present invention, frequency
It is arranged according to actual needs, the working frequency points the more more can give full play to the calculated performance of each kernel 50.When starting frequency modulation switch
(not yet carrying out frequency modulation to kernel 50), kernel 50 can be averaged distribution, unequal distribution or random distribution according to pre-defined rule
It works in the working frequency points.It preferably, can be that operation chip is set by multiple phase-locked loop circuits 40 as shown in Figure 2
Set multiple working frequency points, naturally it is also possible to which multiple working frequency points are arranged for operation chip by other hardware or software.Preferably
It is that the frequency difference between adjacent working frequency points is 1~10%.
Step S502 presets the reference node point value of kernel 50, calculates correct weighted value, calculates error weight value, meter
It calculates proper threshold value and calculates error thresholds.The correct weighted value of calculating and calculating error weight value can be identical or not identical;
The calculating proper threshold value and calculating error thresholds can be identical or not identical.The reference node point value, calculate correct weighted value,
Error weight value is calculated, proper threshold value is calculated and calculates error thresholds and belongs to adjustable parameter, speed etc. can be adjusted according to frequency
Actual needs optimizes setting.
Preferably, it is arranged and adjusts the reference node point value of kernel 50 according to actual needs, calculates correct weighted value, calculating
Error weight value, calculate proper threshold value and/or calculate error thresholds, calculate correct weighted value and calculating error weight value it is identical or
Person is not identical, calculates proper threshold value and calculating error thresholds are identical or not identical.
Correct weighted value is calculated by control and calculates the resident of the expectation tolerance of Ratio control kernel 50 of error weight value
Error rate.The calculation formula of the resident error rate are as follows: the resident correct weighted value of error rate=calculating/(calculate correct weighted value+
Calculate error weight value).
Correct weighted value is calculated by control and calculates the order of magnitude control adjustment period of error weight value.
Proper threshold value is calculated by control and calculates the order of magnitude control adjustment period of error thresholds.
Whether step S503, analysis kernel 50 are correct in each calculating of current working frequency.
Kernel 50 can carry out a variety of different calculating, can analyze kernel 50 it is each certain or it is several calculating whether just
Really.Whether the preferably analysis calculated Nonce of kernel 50 is correct.
Step S504, kernel 50 are often computed correctly at least once, increase on reference node point value and once calculate correct weight
Value, and the every erroneous calculations of kernel 50 are at least once, and primary calculating error weight value is reduced on reference node point value.Preferably
It is that kernel 50 is often computed correctly once, increases on reference node point value and once calculate correct weighted value.It is of course also possible to be arranged
It is often computed correctly n times (N is the natural number greater than 1) for kernel 50, increases on reference node point value and once calculates correct weighted value.
The every erroneous calculations of kernel 50 are primary, and primary calculating error weight value is reduced on reference node point value.Of course, it is possible to be set as kernel
50 every erroneous calculations n times (N is the natural number greater than 1), reduce primary calculating error weight value on reference node point value.
Step S505 judges whether the current reference nodal value of kernel 50 reaches and calculates proper threshold value or the wrong threshold of calculating
Value.If the current reference nodal value of kernel 50 reaches calculating proper threshold value, S506 is thened follow the steps, if the current reference of kernel 50
Nodal value reaches calculating error thresholds, thens follow the steps S507.
This step preferably includes:
(1) according to preset real-time adjustment instruction, whether the current reference node of real-time judge kernel 50 is reaching calculating just
True threshold value calculates error thresholds;Or
(2) it is instructed according to preset timing adjustment, in the adjustment time section of timing adjustment instruction setting, judges kernel 50
Current reference node whether reach calculate proper threshold value or calculate error thresholds;Or
(3) whether instant adjustment instruction, the current reference node of analysis kernel 50 reach the correct threshold of calculating based on the received
Value calculates error thresholds.
Step S506 shows that the kernel 50 not yet reaches if the current reference nodal value of kernel 50 reaches calculating proper threshold value
To optimal computed performance, the current working frequency of kernel 50 is raised.Preferably, if the current value of kernel 50 reaches meter
Proper threshold value is calculated, a upper working frequency points will be transferred in the current working frequency of kernel 50.
This step preferably includes:
(1) according to preset real-time adjustment instruction, if the current reference node of kernel 50 reaches calculating proper threshold value, in real time
The current working frequency of kernel 50 is raised;Or
(2) it is instructed according to preset timing adjustment, in adjustment time section, if the current reference node of kernel 50 reaches meter
Proper threshold value is calculated, the current working frequency of kernel 50 is raised;Or
(3) instant adjustment instruction will be interior if the current reference node of kernel 50 reaches calculating proper threshold value based on the received
The current working frequency of core 50 is raised.And stops adjustment instruction based on the received, stop the work at present to kernel 50
The adjustment of frequency point.
Step S507 shows the calculating of the kernel 50 if the current reference nodal value of kernel 50 reaches calculating error thresholds
Performance is not enough to work in current working frequency, and the current working frequency of kernel 50 is lowered.Preferably, if kernel
50 current value reaches calculating error thresholds, and the current working frequency of kernel 50 is lowered to next working frequency points.
This step preferably includes:
(1) according to preset real-time adjustment instruction, if the current reference node of kernel 50 reaches calculating error thresholds, in real time
The current working frequency of kernel 50 is lowered;Or
(2) it is instructed according to preset timing adjustment, in adjustment time section, if the current reference node of kernel 50 reaches meter
Error thresholds are calculated, the current working frequency of kernel 50 is lowered;Or
(3) instant adjustment instruction will be interior if the current reference node of kernel 50 reaches calculating error thresholds based on the received
The current working frequency of core 50 is lowered;Stop adjustment instruction based on the received, stops the current working frequency to kernel 50
Adjustment.
For example, user can send instant adjustment instruction, the every meter of user setting kernel 50 to calculating equipment at any time as needed
It is primary to calculate correct Nonce, increases weight A on reference mode, the every calculating mistake Nonce of kernel 50 is primary, in the reference mode
Upper reduction weight B.It is when current increase numerical value reaches calculating correct number threshold value C, the upward working frequency points of kernel 50 are advanced.When
Preceding reduction numerical value reaches when calculating error number threshold value D, by kernel 50 to next working frequency points depression of order.In addition, user can basis
It needs after calculating equipment receives the stopping adjustment instruction, to stop immediately internal to equipment transmission stopping adjustment instruction being calculated at any time
The frequency modulation of core 50.
It will be appreciated by persons skilled in the art that a upper working frequency points are not limited in upper operated adjacent frequency point,
More than one upper operated adjacent frequency point be may also set up as a upper working frequency points;Next working frequency points are not limited in
Next operated adjacent frequency point may also set up more than one next operated adjacent frequency point as next working frequency points.Preferably
It is that the frequency difference between current working frequency and a upper working frequency points is 1~10% and current working frequency and next work
The frequency difference for making frequency point is 1~10%, so that kernel 50 is transferred to a upper working frequency points or next work from current working frequency
When making frequency point, the benefited of the calculated performance of kernel 50 should be greater than losing.It as, will be on the current working frequency 600MHz of kernel 50
It is transferred to a working frequency points 700MHz;The current working frequency 600MHz of kernel 50 is lowered to next working frequency points
500MHz.And so on, herein not to a upper working frequency points, the spacing of subsequent work frequency point is limited.
This step preferably can carry out frequency modulation to kernel 50 by phase-locked loop circuit 40 or software as shown in Figure 2.That is basis
Kernel 50 is adjusted to the frequency that suitably works for according to the practical calculated performance of kernel 50 by the frequency Regulation mechanism of kernel level
Point, the frequency of the high kernel 50 of up-regulation calculated performance, lowers the frequency of the low kernel 50 of calculated performance, to give full play to each
The calculated performance of kernel 50.
For example, setting 400000 is used as reference node point value, calculates correct weighted value and be set as 180, calculates error weight value and set
It is 9000, calculates proper threshold value and calculating error thresholds are set as 100000.
Kernel 50 is often computed correctly at least once, and 180 (calculating correct weighted value) are added on the reference node point value;Kernel 50
Every erroneous calculations at least once, reduce by 9000 (calculating error weight value) on the reference node point value;With the reference node point value
On the basis of, often increase or decrease 100000 (calculate proper threshold value and calculate error thresholds), a upward frequency point is advanced or to next
Frequency point depression of order.
Present scheme is similar to mistake and correct tug-of-war mechanism, and correct and mistake can have different weights.If
Reference node point value is set, a correct result is often received, increase once calculates correct weighted value, often receives an error result, subtract
Few primary calculating error weight value carries out the up-regulation or downward of frequency if reward or punishment are more than respective side thresholding.It can be with
Understanding that adjustment system has a marker, reference node point value is the initial value of maker, if there is correctly submitting then maker+180,
Mistake submits then maker -9000 every time.Correct (N is the natural number more than or equal to 1) by n times, (M is big after M mistake
In or equal to 1 natural number), marker should be in the position of 400000+N*180-M*9000, if Marker be more than certain side
Thresholding then carries out corresponding frequencies adjustment (up-regulation or downward).Then every secondary frequencies are adjusted to all initialize the value on new frequency point,
Current reference nodal value is re-set as to initial reference node point value.
Fig. 6 is the flow chart that the preferred chip frequency modulation method of equipment is calculated in yet another embodiment of the invention, can pass through institute
The realization of chip frequency modulation device 100 is stated, the calculating equipment includes at least one operation chip, and the operation chip is provided with multiple
Kernel.The method includes the steps have:
Multiple working frequency points are arranged to calculate the operation chip of equipment, by multiple kernels in operation chip in step S601
50 work in each working frequency points respectively.
Step S602 presets the reference node point value of kernel 50, calculates correct weighted value, calculates error weight value, meter
It calculates proper threshold value and calculates error thresholds.
Whether step S603, the Nonce that analysis kernel 50 is submitted every time are correct.
Preferably, this step further comprises:
(1) after kernel 50 submits a Nonce, Nonce is calculated first as a result, by scheduled algorithm by kernel 50
It include fisrt feature in one result.
(2) Nonce is calculated second as a result, wrapping in the second result by identical algorithm by the checking computations unit of operation chip
Contain second feature.
(3) it if fisrt feature is identical as second feature, checks unit and determines that Nonce is correct Nonce, otherwise determine
Nonce is wrong Nonce.
For example, kernel 50 is submitted after calculating a Nonce, the first Kazakhstan is calculated in Nonce insertion block head
It wishes as a result, preceding 20 values of the first Hash result are 0 (fisrt feature).It checks unit 212 and the Nonce is also embedded in block head
The second Hash result is calculated, if first 20 of the second Hash result are also 0 (second feature), then it is assumed that the Nonce is
Primary correct submission.
Step S604, kernel 50 is every to submit correct Nonce at least once, increases primary calculate correctly on reference node point value
Weighted value, kernel 50 is every to submit mistake Nonce at least once, and primary calculating error weight value is reduced on reference node point value.It is excellent
Choosing increases on reference node point value in the primary correct Nonce of every submission of kernel 50 and once calculates correct weighted value.Certainly,
It may be set to be the every submission N of kernel 50 (N is greater than 1 natural number) secondary correct Nonce, increase on reference node point value primary
Calculate correct weighted value.Kernel 50 is every to submit primary mistake Nonce, and primary calculating error weight is reduced on reference node point value
Value.It is of course also possible to the every submission N of kernel 50 (N is greater than 1 natural number) secondary mistake Nonce is set as, on reference node point value
Reduce primary calculating error weight value.
Step S605 judges whether the current reference nodal value of kernel 50 reaches and calculates proper threshold value or the wrong threshold of calculating
Value.If the current reference nodal value of kernel 50 reaches calculating proper threshold value, S606 is thened follow the steps, if the current reference of kernel 50
Nodal value reaches calculating error thresholds, thens follow the steps S607.
Step S606, if the current reference nodal value of kernel 50 reaches calculating proper threshold value, by the work at present of kernel 50
A working frequency points are transferred on frequency point.
Step S607, if the current reference nodal value of kernel 50 reaches calculating error thresholds, by the work at present of kernel 50
Frequency point is lowered to next working frequency points.
In a concrete application embodiment of the invention: 6 phase-locked loop circuits 40 are used, 6 working frequency points are set:
500MHz, 550MHz, 600MHz, 650MHz, 700MHz, 750MHz.Such as and it is arranged 400000 as reference node point value, calculates just
True weighted value is set as 180, calculates error weight value and is set as 9000, calculates proper threshold value and calculating error thresholds are set as
100000。
It is as follows that the number of cores being distributed in each respective frequencies that power plate counts is calculated according to 4 pieces:
Calculate power plate 0:[294 26 96 224 1,023 1665]
Calculate power plate 1:[274 47 111 212 963 1721]
Calculate power plate 2:[350 25 153 369 1,381 1050]
Calculate power plate 3:[488 33 184 367 1,342 950]
Firstly, combined data further illustrates mechanism.Correct weighted value/(calculate correct is calculated according to resident error rate S=
Weighted value+calculating error weight value), and by given data can extrapolate the resident error rate S of kernel 50 (being interpreted as can
Some frequency point is resided in for a long time) it is 180/ (180+9000)=1.29%, the permanent work of kernel 50 at this time is on some frequency point
(because expectation step-length is 0 at this time), working frequency will not be raised or be lowered.It can be deduced that if the calculating error rate of kernel 50 is big
In 1.29% (resident error rate S), working frequency will be raised;If the calculating error rate of kernel 50 is (resident less than 1.29%
Error rate S), working frequency will be lowered.
According to the difficulty being arranged, (difficulty is related with benchmark is examined, and calculates accuracy to kernel 50 and has an impact, degree-of-difficulty factor
Bigger, accuracy is lower;It is on the contrary then accuracy is higher), it can calculate the approximate period for making mistake and adjusting when rising, it is assumed that mistake
Rate is e, then the expectation step-length of each Nonce are as follows:
(1-e) * 180-e*9000=180-9180e.By taking e=0.5% as an example, it is expected that step-length=134.1;It is with e=1%
Example, it is expected that step-length=88.2;By taking e=2% as an example, it is expected that step-length=- 3.6.
By taking 650MHz as an example, kernel 50 submits 1.3/second that are desired for of single Nonce (to submit 1.3 within i.e. 1 second
Nonce).It is explained with the scene that e is 0.5%, i.e., after 746 Nonce submission processes, so that it may it is expected that adjusting upward
Once;E is 1.0% needs, 1134 submissions, it is contemplated that adjusts upward once, if error probability is 2.0%, needs 27778
Secondary submission, it is contemplated that adjustment is primary downwards, other are analogized.
The present invention also provides a kind of storage mediums, for storing the chip of any one the calculating equipment as described in Fig. 4~Fig. 6
The computer program of frequency modulation method.Such as computer program instructions pass through the behaviour of the computer when it is executed by a computer
Make, can call or provide according to the present processes and/or technical solution.And the program instruction of the present processes is called,
It is possibly stored in fixed or moveable storage medium, and/or passes through the number in broadcast or other signal-bearing mediums
It is transmitted and/or is stored according to stream in the memory according to the calculating equipment of program instruction operation.Here, according to the application
One embodiment include a calculating equipment as shown in Figure 7, the calculating equipment preferably include control panel, with the control
At least the one of plate connection calculates power plate, and the control panel is provided with processor, it is described calculate be provided on power plate it is multiple for operation
Operation chip is provided with multiple kernels in the operation chip;The equipment includes the storage for storing computer program instructions
Medium and processor for executing program instructions, wherein when the computer program instructions are executed by the processor, triggering should
Equipment is calculated to execute based on the method and/or technology scheme in aforesaid plurality of embodiment.
It should be noted that the application can be carried out in the assembly of software and/or software and hardware, for example, can adopt
With specific integrated circuit (ASIC), general purpose computer or any other realized similar to hardware device.In one embodiment
In, the software program of the application can be executed by processor to realize above step or function.Similarly, the software of the application
Program (including relevant data structure) can be stored in computer readable recording medium, for example, RAM memory, magnetic or
CD-ROM driver or floppy disc and similar devices.In addition, hardware can be used to realize in some steps or function of the application, for example,
As the circuit cooperated with processor thereby executing each step or function.
It can be used as computer implemented method according to the method for the present invention to realize on computers or in specialized hardware
It realizes or is realized in a manner of the combination of the two.It can be deposited for executable code or part thereof according to the method for the present invention
Storage is on computer program product.The example of computer program product includes memory devices, optical storage apparatus, integrated electricity
Road, server, online software etc..Preferably, computer program product includes that may be stored on the computer-readable medium to work as
State the non-provisional program code means executed when program product executes on computers according to the method for the present invention.
In a preferred embodiment, computer program includes being suitable for executing root when computer program is run on computers
According to the computer program code means of all steps of method of the invention.Preferably, meter is embodied on a computer-readable medium
Calculation machine program.
In conclusion the present invention carries out automatic frequency adjustment for the kernel for the operation chip for calculating equipment, multiple conjunctions are first set
Suitable working frequency points work in multiple kernels in operation chip in different working frequency points respectively, and then kernel is per correct
It calculates at least once, increases the primary scheduled correct weighted value of calculating;The every erroneous calculations of kernel at least once, are reduced primary predetermined
Calculating error weight value;If reaching scheduled calculating proper threshold value, current working frequency is raised, that is, is raised computational
The frequency of kernel that can be high;If reaching scheduled calculating error thresholds, the current working frequency of kernel is lowered, that is, is lowered
The frequency of the low kernel of calculated performance.Whereby, the present invention can be according to the reality of each kernel in the operation chip for calculating equipment
Calculated performance automatically adjusts the corresponding frequency of each kernel, to utmostly play the calculated performance of kernel, and then improves fortune
Calculate the operational performance of chip and integral operation equipment.
Certainly, the present invention can also have other various embodiments, without deviating from the spirit and substance of the present invention, ripe
It knows those skilled in the art and makes various corresponding changes and modifications, but these corresponding changes and change in accordance with the present invention
Shape all should fall within the scope of protection of the appended claims of the present invention.
Claims (28)
1. a kind of chip frequency modulation method for calculating equipment, the calculating equipment are provided with an at least operation chip, the operation core
Piece is provided with multiple kernels, which is characterized in that including the following steps:
Multiple working frequency points are arranged for the operation chip for calculating equipment, by the operation chip in frequency point setting step
In multiple kernels work in each working frequency points respectively;
Calculated performance analytical procedure, whether each calculating for analyzing the kernel in current working frequency is correct, and the kernel is every
It is computed correctly at least once, increases the primary scheduled correct weighted value of calculating, and the every erroneous calculations of the kernel are at least once,
Reduce primary scheduled calculating error weight value;
Frequency set-up procedure will be worked as if the current value of the kernel reaches scheduled calculating proper threshold value described in the kernel
Preceding working frequency points are raised;Alternatively, if the current value of the kernel reaches scheduled calculating error thresholds, it will be described interior
The current working frequency of core is lowered.
2. chip frequency modulation method according to claim 1, which is characterized in that the frequency point setting step further comprises:
It is that multiple working frequency points, the working frequency points and the lock is arranged in the operation chip by multiple phase-locked loop circuits
Phase loop circuit is one-to-one relationship;
The frequency set-up procedure further comprises:
It is raised or is lowered by the current working frequency of the phase-locked loop circuit to the kernel.
3. chip frequency modulation method according to claim 2, which is characterized in that the phase-locked loop circuit is set to the operation
Chip it is internal or external.
4. chip frequency modulation method according to claim 1, which is characterized in that the frequency difference between the adjacent working frequency points
It is 1~10%.
5. chip frequency modulation method according to claim 1, which is characterized in that further include that step has:
If the kernel for working at least one scheduled Optimization Work frequency point is more than scheduled first ratio, stop to described
Kernel carries out frequency modulation;Or
If the number for working in the kernel on at least one Optimization Work frequency point is most, the kernel is adjusted in stopping
Frequently.
6. chip frequency modulation method according to claim 1, which is characterized in that the frequency set-up procedure further comprises:
It, will be in the current working frequency of the kernel if the current value of the kernel reaches the calculating proper threshold value
It is transferred to a working frequency points;
It, will be under the current working frequency of the kernel if the current value of the kernel reaches the calculating error thresholds
It is transferred to next working frequency points.
7. chip frequency modulation method according to claim 1, which is characterized in that the calculated performance analytical procedure is further wrapped
It includes:
Preset reference node point value, the correct weighted value of the calculating, the calculating error weight value, the meter of the kernel
Calculate proper threshold value and the calculating error thresholds;
Whether each calculating for analyzing the kernel in the current working frequency is correct;
The kernel is often computed correctly at least once, increases the primary correct weighted value of calculating on the reference node point value,
And the every erroneous calculations of kernel are at least once, and the primary calculating error weight value is reduced on the reference node point value;
Judge whether the current reference nodal value of the kernel reaches the calculating proper threshold value or the calculating error thresholds;
The frequency set-up procedure further comprises:
If the current reference nodal value of the kernel reaches the calculating proper threshold value, by the current work of the kernel
It is raised as frequency point;
If the current reference nodal value of the kernel reaches the calculating error thresholds, by the current work of the kernel
It is lowered as frequency point.
8. chip frequency modulation method according to claim 7, which is characterized in that the analysis kernel is in the current work
Make frequency point it is each calculating whether correct step further include:
Whether correct analyze the random number that the kernel is submitted every time;
The kernel is often computed correctly at least once, increases the primary correct weighted value of calculating on the reference node point value,
And the every erroneous calculations of kernel are at least once, and the primary calculating error weight value is reduced on the reference node point value
Step further include:
The kernel is every to submit correct random number at least once, increases the primary calculating on the reference node point value and correctly weighs
Weight values, the kernel is every to submit wrong random number at least once, and the primary calculating mistake is reduced on the reference node point value
Weighted value.
9. chip frequency modulation method according to claim 8, which is characterized in that the institute that the analysis kernel is submitted every time
State the whether correct step of random number further include:
After the kernel submits the random number, the random number is calculated first by scheduled algorithm by the kernel
As a result, including fisrt feature in first result;
The random number is calculated second as a result, described by the identical algorithm by the checking computations unit of the operation chip
It include second feature in two results;
If the fisrt feature is identical as the second feature, the checking computations unit determines that the random number is correct random
Number, otherwise determines that the random number is wrong random number.
10. chip frequency modulation method according to claim 7, which is characterized in that the method also includes:
It is arranged and adjusts the reference node point value, the correct weighted value of the calculating, the meter of the kernel according to actual needs
Calculate wrong weighted value, the calculating proper threshold value and/or the calculating error thresholds, the correct weighted value of the calculating and the meter
It calculates the wrong identical perhaps not identical calculating proper threshold value of weighted value and the calculating error thresholds is identical or not identical;
By controlling kernel expectation tolerance described in the Ratio control for calculating correct weighted value and the calculating error weight value
Resident error rate;
By controlling the order of magnitude control adjustment period for calculating correct weighted value and the calculating error weight value;
The adjustment period is controlled by controlling the order of magnitude for calculating proper threshold value and the calculating error thresholds.
11. chip frequency modulation method according to claim 10, which is characterized in that the calculation formula of the resident error rate
Are as follows: the resident correct weighted value of error rate=calculating/(calculating correct weighted value+calculating error weight value).
12. chip frequency modulation method according to claim 7, which is characterized in that the calculated performance analytical procedure further include:
According to preset real-time adjustment instruction, whether the current reference node of kernel described in real-time judge reaches the calculating
Proper threshold value or the calculating error thresholds;
It is instructed according to preset timing adjustment, in the adjustment time section of timing adjustment instruction setting, judges the kernel
The current reference node whether reach the calculating proper threshold value or the calculating error thresholds;Or
Instant adjustment instruction based on the received, whether the current reference node for analyzing the kernel, which reaches described, calculates correctly
Threshold value or the calculating error thresholds;
The frequency set-up procedure further include:
According to preset real-time adjustment instruction, if the current reference nodal value of the kernel, which reaches described, calculates correct threshold
Value, in real time raises the current working frequency of the kernel;If the current reference nodal value of the kernel reaches
To the calculating error thresholds, the current working frequency of the kernel is lowered in real time;
It is instructed according to preset timing adjustment, in the adjustment time section, if the current reference nodal value of the kernel
Reach the calculating proper threshold value, the current working frequency of the kernel is raised;In the adjustment time section,
If the current reference nodal value of the kernel reaches the calculating error thresholds, by the work at present frequency of the kernel
Point is lowered;Or
Instant adjustment instruction based on the received, if the current reference nodal value of the kernel, which reaches described, calculates correct threshold
Value, the current working frequency of the kernel is raised;If the current reference nodal value of the kernel reaches institute
Calculating error thresholds are stated, the current working frequency of the kernel is lowered;Stop adjustment instruction based on the received, stops
Only to the adjustment of the current working frequency of the kernel.
13. a kind of chip frequency modulation device for calculating equipment, is provided at least one operation chip, the fortune in the calculating equipment
It calculates in chip and is provided with multiple kernels, which is characterized in that the chip frequency modulation device includes:
Frequency point setting module, for multiple working frequency points to be arranged for the operation chip for calculating equipment, by the operation
Multiple kernels in chip work in each working frequency points respectively;
Calculated performance analysis module, it is whether correct in each calculating of current working frequency for analyzing the kernel, it is described interior
Core is often computed correctly at least once, increases the primary scheduled correct weighted value of calculating, and the every erroneous calculations of the kernel are at least
Once, primary scheduled calculating error weight value is reduced;
Frequency regulation block, if the current value for the kernel reaches scheduled calculating proper threshold value, by the institute of the kernel
Current working frequency is stated to be raised;Alternatively, if the current value of the kernel reaches scheduled calculating error thresholds, by institute
The current working frequency for stating kernel is lowered.
14. chip frequency modulation device according to claim 13, which is characterized in that the frequency point setting module is used for by more
A phase-locked loop circuit is that multiple working frequency points are arranged in the operation chip, and the working frequency points are with the phase-locked loop circuit
One-to-one relationship;
The frequency regulation block, for being carried out by the current working frequency of the phase-locked loop circuit to the kernel
It adjusts or lowers.
15. chip frequency modulation device according to claim 14, which is characterized in that the phase-locked loop circuit is set to the fortune
Calculate the internal or external of chip.
16. chip frequency modulation device according to claim 13, which is characterized in that the frequency between the adjacent working frequency points
Difference is 1~10%.
17. chip frequency modulation device according to claim 13, which is characterized in that the frequency regulation block further includes having:
Frequency adjusting submodule is raised or is lowered for the current working frequency to the kernel;
Stop frequency adjusting submodule, if the kernel for working at least one scheduled Optimization Work frequency point is more than pre-
The first fixed ratio stops carrying out frequency modulation to the kernel;If for working in at least one Optimization Work frequency point
The kernel number it is most, stop to the kernel carry out frequency modulation.
18. chip frequency modulation device according to claim 13, which is characterized in that if the frequency regulation block is for described
The current value of kernel reaches the calculating proper threshold value, and upper one will be transferred in the current working frequency of the kernel
Working frequency points;If the current value for the kernel reaches the calculating error thresholds, will be described in the kernel
Current working frequency is lowered to next working frequency points.
19. chip frequency modulation device according to claim 13, which is characterized in that the calculated performance analysis module is further
Include:
Submodule is set, and the reference node point value, the correct weighted value of the calculating, the calculating for presetting the kernel are wrong
Accidentally weighted value, the calculating proper threshold value and the calculating error thresholds;
Submodule is analyzed, it is whether correct in each calculating of the current working frequency for analyzing the kernel;
Counting submodule is often computed correctly at least once for the kernel, is increased on the reference node point value primary described
Correct weighted value is calculated, and the every erroneous calculations of the kernel are at least once, is reduced on the reference node point value primary described
Calculate error weight value;
Judging submodule, for judging whether the current reference nodal value of the kernel reaches the calculating proper threshold value or described
Calculate error thresholds;
It, will if the current reference nodal value of the frequency regulation block for the kernel reaches the calculating proper threshold value
The current working frequency of the kernel is raised;And if the current reference nodal value for the kernel reaches
The calculating error thresholds lower the current working frequency of the kernel.
20. chip frequency modulation device according to claim 19, which is characterized in that the analysis submodule is described for analyzing
Whether the random number that kernel is submitted every time is correct;
The counting submodule is used for the every submission of the kernel correct random number at least once, increases on the reference node point value
The primary correct weighted value of calculating, the kernel is every to submit wrong random number at least once, subtracts on the reference node point value
Few primary calculating error weight value.
21. chip frequency modulation device according to claim 20, which is characterized in that the analysis submodule further comprises:
Computing unit, after submitting the random number for the kernel, the kernel passes through the random number scheduled
Algorithm calculates first as a result, including fisrt feature in first result;
Unit is checked, for the random number to be calculated second as a result, in second result by the identical algorithm
It include second feature;If the fisrt feature is identical as the second feature, determine that the random number is correct random number,
Otherwise determine that the random number is wrong random number.
22. chip frequency modulation device according to claim 19, which is characterized in that the setting submodule is used for according to reality
Demand be arranged and adjust the kernel the reference node point value, it is described calculate correct weighted value, the calculating error weight value,
The calculating proper threshold value and/or the calculating error thresholds, the correct weighted value of the calculating and the calculating error weight value
The identical perhaps not identical calculating proper threshold value and the calculating error thresholds are identical or not identical;
The setting submodule is used for by controlling the correct weighted value of the calculating and the ratio control for calculating error weight value
Make the resident error rate of the kernel expectation tolerance;
The setting submodule is used for by controlling the correct weighted value of the calculating and the absolute value for calculating error weight value
The size control adjustment period;
The setting submodule is used for by controlling the calculating proper threshold value and the order of magnitude for calculating error thresholds
Control the adjustment period.
23. chip frequency modulation device according to claim 22, which is characterized in that the calculation formula of the resident error rate
Are as follows: the resident correct weighted value of error rate=calculating/(calculating correct weighted value+calculating error weight value).
24. chip frequency modulation device according to claim 19, which is characterized in that the calculated performance analysis module is used for root
According to preset real-time adjustment instruction, whether the current reference node of kernel described in real-time judge, which reaches described, calculates correct threshold
Value or the calculating error thresholds;
The calculated performance analysis module is used to be instructed according to preset timing adjustment, in the tune of timing adjustment instruction setting
In the whole period, judge whether the current reference node of the kernel reaches the calculating proper threshold value or the calculating is wrong
Accidentally threshold value;Or
The calculated performance analysis module analyzes the current reference of the kernel for instant adjustment instruction based on the received
Whether node reaches the calculating proper threshold value or the calculating error thresholds;
The frequency regulation block is used for according to preset real-time adjustment instruction, if the current reference nodal value of the kernel
Reach the calculating proper threshold value, in real time raises the current working frequency of the kernel;If the institute of the kernel
It states current reference nodal value and reaches the calculating error thresholds, in real time carry out down the current working frequency of the kernel
It adjusts;
The frequency regulation block is used to be instructed according to preset timing adjustment, in the adjustment time section, if the kernel
The current reference nodal value reach the calculating proper threshold value, the current working frequency of the kernel is carried out
It adjusts;In the adjustment time section, if the current reference nodal value of the kernel reaches the calculating error thresholds, by institute
The current working frequency for stating kernel is lowered;Or
The frequency regulation block is for instant adjustment instruction based on the received, if the current reference nodal value of the kernel
Reach the calculating proper threshold value, the current working frequency of the kernel is raised;If the described of the kernel is worked as
Preceding reference node point value reaches the calculating error thresholds, and the current working frequency of the kernel is lowered;According to connecing
The stopping adjustment instruction of receipts stops the adjustment to the current working frequency of the kernel.
25. chip frequency modulation device according to claim 13, which is characterized in that the chip frequency modulation device is set to described
Operation chip it is internal or external.
26. a kind of includes the calculation power plate of the chip frequency modulation device of any one in claim 13~25.
27. a kind of includes the calculating equipment of the chip frequency modulation device of any one in claim 13~25.
28. a kind of storage medium, a kind of the equipment that calculates of any one in 1~12 is required for perform claim for storing
The computer program of chip frequency modulation method.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810576572.2A CN109002356B (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
CN202210561233.3A CN114880124A (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810576572.2A CN109002356B (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210561233.3A Division CN114880124A (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109002356A true CN109002356A (en) | 2018-12-14 |
CN109002356B CN109002356B (en) | 2022-06-10 |
Family
ID=64600635
Family Applications (2)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810576572.2A Active CN109002356B (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
CN202210561233.3A Pending CN114880124A (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
Family Applications After (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210561233.3A Pending CN114880124A (en) | 2018-06-06 | 2018-06-06 | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (2) | CN109002356B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110502358A (en) * | 2019-08-16 | 2019-11-26 | 紫光展锐(重庆)科技有限公司 | Operation method and device |
CN111752361A (en) * | 2019-03-29 | 2020-10-09 | 北京比特大陆科技有限公司 | Computing power adaptive method and device, equipment and storage medium and program product |
CN111856245A (en) * | 2020-07-13 | 2020-10-30 | 上海聪链信息科技有限公司 | Dynamic frequency conversion method and system for block chain server chip |
CN111859829A (en) * | 2019-04-04 | 2020-10-30 | 北京比特大陆科技有限公司 | Method, apparatus and device for controlling force calculation board, medium and program product |
WO2021208846A1 (en) * | 2020-04-14 | 2021-10-21 | 深圳比特微电子科技有限公司 | Method for providing clock frequencies for computing cores, chip, and data processing device |
WO2022022403A1 (en) * | 2020-07-30 | 2022-02-03 | 深圳比特微电子科技有限公司 | Method and apparatus for fast frequency searching by data processing device, and data processing device |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115145761B (en) * | 2022-09-02 | 2022-11-18 | 深圳比特微电子科技有限公司 | Chip frequency control method and device, block chain server and storage medium |
CN115686139B (en) * | 2022-12-29 | 2023-04-07 | 中科声龙科技发展(北京)有限公司 | Calculation server, working frequency adjusting method and device thereof, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103426453A (en) * | 2012-05-25 | 2013-12-04 | 华为技术有限公司 | Dynamic voltage frequency scaling method and system |
CN104360822A (en) * | 2014-10-22 | 2015-02-18 | 深圳芯邦科技股份有限公司 | Chip and control method for working frequency of chip |
CN105898405A (en) * | 2015-12-18 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Intelligent television and dynamic system performance mode adjusting method thereof |
CN106855838A (en) * | 2016-12-29 | 2017-06-16 | 杭州嘉楠耘智信息科技有限公司 | Working frequency adjusting method, device and system |
-
2018
- 2018-06-06 CN CN201810576572.2A patent/CN109002356B/en active Active
- 2018-06-06 CN CN202210561233.3A patent/CN114880124A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103426453A (en) * | 2012-05-25 | 2013-12-04 | 华为技术有限公司 | Dynamic voltage frequency scaling method and system |
CN104360822A (en) * | 2014-10-22 | 2015-02-18 | 深圳芯邦科技股份有限公司 | Chip and control method for working frequency of chip |
CN105898405A (en) * | 2015-12-18 | 2016-08-24 | 乐视致新电子科技(天津)有限公司 | Intelligent television and dynamic system performance mode adjusting method thereof |
CN106855838A (en) * | 2016-12-29 | 2017-06-16 | 杭州嘉楠耘智信息科技有限公司 | Working frequency adjusting method, device and system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111752361A (en) * | 2019-03-29 | 2020-10-09 | 北京比特大陆科技有限公司 | Computing power adaptive method and device, equipment and storage medium and program product |
CN111859829A (en) * | 2019-04-04 | 2020-10-30 | 北京比特大陆科技有限公司 | Method, apparatus and device for controlling force calculation board, medium and program product |
CN111859829B (en) * | 2019-04-04 | 2024-04-16 | 北京比特大陆科技有限公司 | Method, apparatus and device for controlling a computing pad, and medium and program product |
CN110502358A (en) * | 2019-08-16 | 2019-11-26 | 紫光展锐(重庆)科技有限公司 | Operation method and device |
WO2021208846A1 (en) * | 2020-04-14 | 2021-10-21 | 深圳比特微电子科技有限公司 | Method for providing clock frequencies for computing cores, chip, and data processing device |
CN111856245A (en) * | 2020-07-13 | 2020-10-30 | 上海聪链信息科技有限公司 | Dynamic frequency conversion method and system for block chain server chip |
WO2022022403A1 (en) * | 2020-07-30 | 2022-02-03 | 深圳比特微电子科技有限公司 | Method and apparatus for fast frequency searching by data processing device, and data processing device |
US11493981B1 (en) | 2020-07-30 | 2022-11-08 | Shenzhen Microbt Electronics Technology Co., Ltd. | Rapid frequency searching method and apparatus for data processing device, and data processing device |
Also Published As
Publication number | Publication date |
---|---|
CN109002356B (en) | 2022-06-10 |
CN114880124A (en) | 2022-08-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002356A (en) | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium | |
CN109086130A (en) | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium | |
US9697692B2 (en) | Methods and apparatus for a distributed bonus scheme using simulated scatter reactions | |
CN108984469A (en) | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium | |
Fishpool et al. | Field error instabilities in JET | |
CN108994767A (en) | Bolt fastening device, control method and system, and data analysis method and system | |
CN108984360A (en) | Chip frequency modulation method and device of computing equipment, computing force board, computing equipment and storage medium | |
CN109176601B (en) | Door opening test method and device for robot | |
CN102790403B (en) | Multi-STATCOM damping controller design method | |
CN107039972B (en) | A kind of electric system PSS parameter setting method based on AFSA-BFO algorithm | |
CN115132302A (en) | Research and development formula verification method and system for PVC modified polymer | |
US7225039B2 (en) | Control system for semiconductor processing apparatus | |
CN108923128A (en) | A kind of electricity tune method and apparatus of antenna for base station | |
de Campos et al. | Probing neutrino mass with displaced vertices at the Fermilab Tevatron | |
CN106395943A (en) | Method and system for controlling sewage treatment chemical adding amount | |
US10402512B2 (en) | Systems and methods for mathematical regression with inexact feedback | |
CN105224432B (en) | A kind of performance test method for parameter configuration, device, forcing press and system | |
JPS5894004A (en) | Optimum parameter retrieving device for controller of plant control system | |
CN113680069A (en) | Skill system designed based on ecs | |
CN117494952B (en) | Low-carbon unit operation scheduling method for electric power system | |
CN109933848B (en) | Product design method and formulation system thereof | |
JP2964902B2 (en) | Learning method of neural network for elevator call assignment | |
CN105589332A (en) | Method for balancing ball-beam system based on SFLA fuzzy controller | |
US20230133652A1 (en) | Systems and methods for uncertainty prediction using machine learning | |
Walker et al. | Development of multivariable control techniques for use with the DIII-D plasma control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |