CN114879832A - Power consumption control method, device, chip, device and medium for computing device - Google Patents
Power consumption control method, device, chip, device and medium for computing device Download PDFInfo
- Publication number
- CN114879832A CN114879832A CN202210555952.4A CN202210555952A CN114879832A CN 114879832 A CN114879832 A CN 114879832A CN 202210555952 A CN202210555952 A CN 202210555952A CN 114879832 A CN114879832 A CN 114879832A
- Authority
- CN
- China
- Prior art keywords
- power consumption
- value
- control signal
- numerical
- computing device
- 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 43
- 238000011156 evaluation Methods 0.000 claims abstract description 129
- 230000004044 response Effects 0.000 claims description 18
- 238000004590 computer program Methods 0.000 claims description 17
- 238000012512 characterization method Methods 0.000 claims description 15
- 230000000903 blocking effect Effects 0.000 claims description 11
- 230000002265 prevention Effects 0.000 claims description 3
- 238000004458 analytical method Methods 0.000 claims 4
- 238000005516 engineering process Methods 0.000 abstract description 9
- 238000013473 artificial intelligence Methods 0.000 abstract description 6
- 239000013598 vector Substances 0.000 description 25
- 239000011159 matrix material Substances 0.000 description 22
- 238000004364 calculation method Methods 0.000 description 17
- 238000010586 diagram Methods 0.000 description 12
- 238000013135 deep learning Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 9
- 238000004422 calculation algorithm Methods 0.000 description 8
- 238000012545 processing Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 238000013459 approach Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000017525 heat dissipation Effects 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012935 Averaging Methods 0.000 description 1
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000033228 biological regulation Effects 0.000 description 1
- 230000015556 catabolic process Effects 0.000 description 1
- 230000010267 cellular communication Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 238000006731 degradation reaction Methods 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 238000007726 management method Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000001953 sensory effect Effects 0.000 description 1
- 230000017105 transposition Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F1/00—Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
- G06F1/26—Power supply means, e.g. regulation thereof
- G06F1/32—Means for saving power
- G06F1/3203—Power management, i.e. event-based initiation of a power-saving mode
- G06F1/3234—Power saving characterised by the action undertaken
- G06F1/3287—Power saving characterised by the action undertaken by switching off individual functional units in the computer system
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/06—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons
- G06N3/063—Physical realisation, i.e. hardware implementation of neural networks, neurons or parts of neurons using electronic means
-
- 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)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computing Systems (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biomedical Technology (AREA)
- Biophysics (AREA)
- Data Mining & Analysis (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Evolutionary Computation (AREA)
- Computational Linguistics (AREA)
- Artificial Intelligence (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Neurology (AREA)
- Computer Hardware Design (AREA)
- Power Sources (AREA)
Abstract
本公开提供了一种用于运算装置的功耗控制方法、装置、芯片、设备及介质,涉及计算机技术领域,尤其涉及芯片技术领域、人工智能领域。实现方案为:获取功耗评估周期内的数据请求信号的第一数量,其中,功耗评估周期包括第一预设数量的连续的多个运算周期,数据请求信号用于请求运算装置的输入数据;基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值;基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果;以及基于功耗评估结果,调整运算装置的工作频率。
The present disclosure provides a power consumption control method, device, chip, device and medium for a computing device, and relates to the field of computer technology, in particular to the field of chip technology and artificial intelligence. The implementation scheme is: obtaining a first number of data request signals in a power consumption evaluation period, wherein the power consumption evaluation period includes a first preset number of consecutive multiple operation cycles, and the data request signal is used to request input data of the operation device ; based on the first number, obtain the average power consumption characteristic value of the computing device in the power consumption evaluation period; based on the average power consumption characteristic value and the preset power consumption threshold, obtain the power consumption evaluation result in the power consumption evaluation period; and based on the power consumption evaluation period Adjust the operating frequency of the computing device according to the power consumption evaluation result.
Description
技术领域technical field
本公开涉及计算机技术领域,尤其涉及芯片技术领域、人工智能领域,具体涉及一种用于运算装置的功耗控制方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure relates to the field of computer technology, in particular to the field of chip technology and artificial intelligence, and in particular to a power consumption control method, device, electronic device, computer-readable storage medium and computer program product for a computing device.
背景技术Background technique
随着人工智能技术的发展,越来越多的应用基于人工智能技术取得了远超过传统算法的效果;深度学习是目前人工智能技术的核心技术。深度学习是数据密集型算法和计算密集型算法,也是快速迭代发展的算法。With the development of artificial intelligence technology, more and more applications based on artificial intelligence technology have achieved results far exceeding traditional algorithms; deep learning is the core technology of artificial intelligence technology at present. Deep learning is a data-intensive algorithm and a computationally-intensive algorithm, and it is also an algorithm with rapid iterative development.
传统的CPU、GPU、DSP等通用处理设备针对通用计算任务设计,在处理深度学习应用时,存在计算性能低、效能低等弊端,无法有效支持深度学习算法在数据中心等场景的大规模部署。基于ASIC/FPGA的深度学习专用加速设备,针对深度学习的计算特点,深度定制硬件结构,相对于传统的CPU、GPU、DSP等设备,可以实现更高的计算性能和计算效能。Traditional general-purpose processing devices such as CPU, GPU, and DSP are designed for general-purpose computing tasks. When dealing with deep learning applications, there are disadvantages such as low computing performance and low efficiency, which cannot effectively support the large-scale deployment of deep learning algorithms in data centers and other scenarios. The ASIC/FPGA-based deep learning acceleration device can deeply customize the hardware structure according to the computing characteristics of deep learning. Compared with traditional CPU, GPU, DSP and other devices, it can achieve higher computing performance and computing efficiency.
在此部分中描述的方法不一定是之前已经设想到或采用的方法。除非另有指明,否则不应假定此部分中描述的任何方法仅因其包括在此部分中就被认为是现有技术。类似地,除非另有指明,否则此部分中提及的问题不应认为在任何现有技术中已被公认。The approaches described in this section are not necessarily approaches that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any of the approaches described in this section qualify as prior art merely by virtue of their inclusion in this section. Similarly, unless otherwise indicated, the issues raised in this section should not be considered to be recognized in any prior art.
发明内容SUMMARY OF THE INVENTION
本公开提供了一种用于运算装置的功耗控制方法、装置、电子设备、计算机可读存储介质和计算机程序产品。The present disclosure provides a power consumption control method, an apparatus, an electronic device, a computer-readable storage medium, and a computer program product for a computing device.
根据本公开的一方面,提供了一种用于运算装置的功耗控制方法,包括:获取功耗评估周期内的数据请求信号的第一数量,其中,功耗评估周期包括第一预设数量的连续的多个运算周期,数据请求信号用于请求运算装置的输入数据;基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值;基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果;以及基于功耗评估结果,调整运算装置的工作频率。According to an aspect of the present disclosure, there is provided a power consumption control method for a computing device, comprising: acquiring a first number of data request signals in a power consumption evaluation period, wherein the power consumption evaluation period includes a first preset number The data request signal is used to request the input data of the computing device; based on the first number, the average power consumption characteristic value of the computing device in the power consumption evaluation period is obtained; based on the average power consumption characteristic value and the preset value The power consumption threshold value is obtained, and the power consumption evaluation result in the power consumption evaluation period is obtained; and the operating frequency of the computing device is adjusted based on the power consumption evaluation result.
根据本公开的另一方面,提供了一种用于运算装置的功耗控制装置,包括:第一获取单元,被配置为获取功耗评估周期内的数据请求信号的第一数量,其中,功耗评估周期包括第一预设数量的连续的多个运算周期,数据请求信号用于请求运算装置的输入数据;第二获取单元,被配置为基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值;第三获取单元,被配置为基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果;以及调整单元,被配置为基于功耗评估结果,调整运算装置的工作频率。According to another aspect of the present disclosure, there is provided a power consumption control device for an arithmetic device, comprising: a first acquisition unit configured to acquire a first number of data request signals within a power consumption evaluation period, wherein the power consumption The power consumption evaluation cycle includes a first preset number of consecutive multiple operation cycles, and the data request signal is used to request input data of the computing device; the second obtaining unit is configured to obtain, based on the first number, the computing device during the power consumption evaluation cycle the average power consumption characteristic value in Adjust the operating frequency of the computing device according to the power consumption evaluation result.
根据本公开的另一方面,提供了一种芯片,包括上述用于运算装置的功耗控制装置。According to another aspect of the present disclosure, there is provided a chip including the above-mentioned power consumption control device for an arithmetic device.
根据本公开的另一方面,提供了一种电子设备,包括上述的芯片。According to another aspect of the present disclosure, there is provided an electronic device including the above-mentioned chip.
根据本公开的另一方面,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述用于运算装置的功耗控制方法。According to another aspect of the present disclosure, there is provided an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being executed by at least one processor One processor executes to enable at least one processor to execute the above-described power consumption control method for an arithmetic device.
根据本公开的另一方面,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,计算机指令用于使计算机执行上述用于运算装置的功耗控制方法。According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions, wherein the computer instructions are used to cause a computer to execute the above-described power consumption control method for an arithmetic device.
根据本公开的另一方面,提供了一种计算机程序产品,包括计算机程序,其中,计算机程序在被处理器执行时实现上述用于运算装置的功耗控制方法。According to another aspect of the present disclosure, there is provided a computer program product including a computer program, wherein the computer program, when executed by a processor, implements the above-described power consumption control method for an arithmetic device.
根据本公开的一个或多个实施例,通过获取一定周期内数据请求信号的数量以评估运算装置的功耗水平,并以调整运算装置的工作频率的方式调整装置功耗,能够通过简单的逻辑判断高效评估装置功耗,提高功耗调节的效率。According to one or more embodiments of the present disclosure, by obtaining the number of data request signals in a certain period to evaluate the power consumption level of the computing device, and adjusting the power consumption of the device by adjusting the operating frequency of the computing device, simple logic Determine and efficiently evaluate the power consumption of the device and improve the efficiency of power consumption adjustment.
应当理解,本部分所描述的内容并非旨在标识本公开的实施例的关键或重要特征,也不用于限制本公开的范围。本公开的其它特征将通过以下的说明书而变得容易理解。It should be understood that what is described in this section is not intended to identify key or critical features of embodiments of the disclosure, nor is it intended to limit the scope of the disclosure. Other features of the present disclosure will become readily understood from the following description.
附图说明Description of drawings
附图示例性地示出了实施例并且构成说明书的一部分,与说明书的文字描述一起用于讲解实施例的示例性实施方式。所示出的实施例仅出于例示的目的,并不限制权利要求的范围。在所有附图中,相同的附图标记指代类似但不一定相同的要素。The accompanying drawings illustrate the embodiments by way of example and constitute a part of the specification, and together with the written description of the specification serve to explain exemplary implementations of the embodiments. The shown embodiments are for illustrative purposes only and do not limit the scope of the claims. Throughout the drawings, the same reference numbers refer to similar but not necessarily identical elements.
图1示出了根据本公开的实施例的用于运算装置的功耗控制方法的流程图;FIG. 1 shows a flowchart of a power consumption control method for a computing device according to an embodiment of the present disclosure;
图2示出了根据本公开的实施例的设置功耗控制装置的芯片的结构示意图;FIG. 2 shows a schematic structural diagram of a chip for setting a power consumption control device according to an embodiment of the present disclosure;
图3示出了根据本公开的示例性实施例的向量计算装置的结构框图;FIG. 3 shows a structural block diagram of a vector computing apparatus according to an exemplary embodiment of the present disclosure;
图4示出了根据本公开的示例性实施例的矩阵乘法装置的结构框图;4 shows a structural block diagram of a matrix multiplication apparatus according to an exemplary embodiment of the present disclosure;
图5示出了根据本公开的实施例的功耗控制装置的结构框图;FIG. 5 shows a structural block diagram of a power consumption control apparatus according to an embodiment of the present disclosure;
图6示出了根据本公开的实施例的用于运算装置的功耗控制装置的结构框图;6 shows a structural block diagram of a power consumption control device for an arithmetic device according to an embodiment of the present disclosure;
图7示出了能够用于实现本公开的实施例的示例性电子设备的结构框图。7 illustrates a block diagram of an exemplary electronic device that can be used to implement embodiments of the present disclosure.
具体实施方式Detailed ways
以下结合附图对本公开的示范性实施例做出说明,其中包括本公开实施例的各种细节以助于理解,应当将它们认为仅仅是示范性的。因此,本领域普通技术人员应当认识到,可以对这里描述的实施例做出各种改变和修改,而不会背离本公开的范围。同样,为了清楚和简明,以下的描述中省略了对公知功能和结构的描述。Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding and should be considered as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope of the present disclosure. Also, descriptions of well-known functions and constructions are omitted from the following description for clarity and conciseness.
在本公开中,除非另有说明,否则使用术语“第一”、“第二”等来描述各种要素不意图限定这些要素的位置关系、时序关系或重要性关系,这种术语只是用于将一个要素与另一要素区分开。在一些示例中,第一要素和第二要素可以指向该要素的同一实例,而在某些情况下,基于上下文的描述,它们也可以指代不同实例。In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, timing relationship or importance relationship of these elements, and such terms are only used for Distinguish one element from another. In some examples, the first element and the second element may refer to the same instance of the element, while in some cases they may refer to different instances based on the context of the description.
在本公开中对各种所述示例的描述中所使用的术语只是为了描述特定示例的目的,而并非旨在进行限制。除非上下文另外明确地表明,如果不特意限定要素的数量,则该要素可以是一个也可以是多个。此外,本公开中所使用的术语“和/或”涵盖所列出的项目中的任何一个以及全部可能的组合方式。The terminology used in the description of the various described examples in this disclosure is for the purpose of describing particular examples only and is not intended to be limiting. Unless the context clearly dictates otherwise, if the number of an element is not expressly limited, the element may be one or more. Furthermore, as used in this disclosure, the term "and/or" covers any and all possible combinations of the listed items.
下面将结合附图详细描述本公开的实施例。Embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
深度学习算法中,主流的语言模型(如BERT、ERNIE等)都包含的大量的矩阵乘法和向量计算等运算,主流的机器视觉模型(如RESNET、MASK-RCNN、YOLO、SSD等网络)也均包含大量的卷积操作,而卷积操作通常转换为矩阵运算实现。因此,深度学习芯片通常提供专用的矩阵乘法装置和向量计算装置等运算装置,用于加速深度学习算法。In the deep learning algorithm, mainstream language models (such as BERT, ERNIE, etc.) include a large number of operations such as matrix multiplication and vector calculation, and mainstream machine vision models (such as RESNET, MASK-RCNN, YOLO, SSD and other networks) are also Contains a large number of convolution operations, and convolution operations are usually converted to matrix operations. Therefore, deep learning chips usually provide dedicated computing devices such as matrix multiplication devices and vector computing devices to accelerate deep learning algorithms.
在提供极高的矩阵乘法和向量计算的计算能力的同时,这些运算装置也占用了大量的功耗。在不同场景和芯片散热条件下,相关技术人员往往需要根据实际情况及计算需要,调整不同运算装置的功耗水平,从而避免运算装置功耗过高导致装置性能下降。While providing extremely high computing power for matrix multiplication and vector computing, these computing devices also consume a lot of power consumption. Under different scenarios and chip heat dissipation conditions, relevant technicians often need to adjust the power consumption levels of different computing devices according to actual conditions and computing needs, so as to avoid device performance degradation due to excessive power consumption of the computing devices.
相关技术中,对于芯片中运算装置的功耗监测和调节,通常是通过板卡的电源管理芯片,检测整片芯片的电流变化,并相应地调整整片芯片的频率。该方法通常需要主机主动控制芯片的频率切换,或者通过芯片内部的MCU进行频率切换,延迟较高;频率切换会影响到整个深度学习芯片的所有装置,在限制矩阵乘法转置等运算装置功耗的同时,也限制了其他诸如访存、控制等模块的性能。In the related art, for power consumption monitoring and adjustment of the computing device in the chip, the power management chip of the board card is usually used to detect the current change of the entire chip, and adjust the frequency of the entire chip accordingly. This method usually requires the host to actively control the frequency switching of the chip, or perform frequency switching through the MCU inside the chip, which has a high delay; frequency switching will affect all devices of the entire deep learning chip, limiting the power consumption of computing devices such as matrix multiplication and transposition. At the same time, it also limits the performance of other modules such as memory access and control.
本公开的实施例提供了一种用于运算装置的功耗控制方法,基于运算装置输入数据的数据请求信号与装置功耗存在的关系,通过获取一定周期内数据请求信号的数量以评估运算装置的功耗水平,并以调整运算装置的工作频率的方式调整装置功耗,能够通过简单的逻辑判断高效评估装置功耗,提高功耗调节的效率。Embodiments of the present disclosure provide a power consumption control method for a computing device. Based on the relationship between a data request signal of input data of the computing device and the power consumption of the device, the computing device is evaluated by acquiring the number of data request signals in a certain period. The power consumption level of the device can be adjusted by adjusting the operating frequency of the computing device, so that the power consumption of the device can be efficiently evaluated through simple logic judgment, and the efficiency of power consumption adjustment can be improved.
根据本公开的实施例,如图1所示,提供了一种用于运算装置的功耗控制方法,可以包括:步骤S101、获取功耗评估周期内的数据请求信号的第一数量,其中,功耗评估周期包括第一预设数量的连续的多个运算周期,数据请求信号用于请求运算装置的输入数据;步骤S102、基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值;步骤S103、基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果;以及步骤S104、基于功耗评估结果,调整运算装置的工作频率。According to an embodiment of the present disclosure, as shown in FIG. 1 , a power consumption control method for a computing device is provided, which may include: step S101 , acquiring a first number of data request signals in a power consumption evaluation period, wherein: The power consumption evaluation cycle includes a first preset number of consecutive multiple operation cycles, and the data request signal is used to request input data of the computing device; step S102, based on the first number, obtain the average power consumption of the computing device in the power consumption evaluation cycle. In step S103, based on the average power consumption characteristic value and the preset power consumption threshold, the power consumption evaluation result in the power consumption evaluation period is obtained; and in step S104, based on the power consumption evaluation result, the operating frequency of the computing device is adjusted.
由此,通过获取一定周期内数据请求信号的数量以评估运算装置的功耗水平,并以调整运算装置的工作频率的方式调整装置功耗,能够通过简单的逻辑判断高效评估装置功耗,提高功耗调节的效率。Therefore, by obtaining the number of data request signals in a certain period to evaluate the power consumption level of the computing device, and adjusting the power consumption of the device by adjusting the operating frequency of the computing device, it is possible to efficiently evaluate the power consumption of the device through simple logical judgment, and improve the Efficiency of power regulation.
图2示出了根据本公开的实施例的设置功耗控制装置的芯片的结构示意图。FIG. 2 shows a schematic structural diagram of a chip for setting a power consumption control device according to an embodiment of the present disclosure.
在一些实施例中,如图2所示,设置于芯片中的指令产生装置210将运算指令下发至指令解析装置220,指令解析装置220通过对运算指令进行解析,分别产生至少一个运算周期相应的计算使能信号以及用于请求每个运算周期计算需要的数据请求信号。在每个运算周期中,指令解析装置220将计算使能信号和数据请求信号分别发送给运算装置230和存储装置250,存储装置250基于数据请求信号将输入数据发送至运算装置230以完成计算,并将运算装置230输出的输出数据进行存储。In some embodiments, as shown in FIG. 2 , the instruction generation device 210 provided in the chip sends the operation instruction to the instruction parsing device 220 , and the instruction parsing device 220 parses the operation instruction to generate at least one operation cycle corresponding The calculation enable signal and the data request signal used to request the calculation of each operation cycle. In each operation cycle, the instruction parsing device 220 sends a calculation enable signal and a data request signal to the operation device 230 and the storage device 250 respectively, and the storage device 250 sends the input data to the operation device 230 based on the data request signal to complete the calculation, The output data output by the arithmetic device 230 is stored.
在一些实施例中,本公开的实施例的功耗控制装置240可以与指令解析装置220连接,从而实现对该指令解析装置220对应的运算装置230的功耗控制。具体的,在每个运算周期中,指令解析装置220会同时将数据请求信号发送给功耗控制装置240,功耗控制装置240基于对该信号的数量统计,从而获取运算装置230的功耗水平。In some embodiments, the power consumption control apparatus 240 of the embodiments of the present disclosure may be connected with the instruction parsing apparatus 220 to implement power consumption control of the computing apparatus 230 corresponding to the instruction parsing apparatus 220 . Specifically, in each computing cycle, the instruction parsing device 220 will simultaneously send a data request signal to the power consumption control device 240, and the power consumption control device 240 obtains the power consumption level of the computing device 230 based on the number of the signals. .
在一些实施例中,功耗控制装置240可以对第一预设数量的连续的多个运算周期(也即功耗评估周期)内的每个运算周期的数据请求信号进行统计。In some embodiments, the power consumption control apparatus 240 may perform statistics on the data request signals of each operation cycle in a first preset number of consecutive multiple operation cycles (ie, power consumption evaluation cycles).
功耗评估周期的长度可以通过设置第一预设数量进行调整,例如第一预设数量可以设置为8个运算周期。可理解的,相关技术人员可以根据计算的需求和硬件散热条件等实际需求和条件,自行设置第一预设数量,在此不作限制。The length of the power consumption evaluation cycle can be adjusted by setting a first preset number, for example, the first preset number can be set to 8 operation cycles. It is understandable that relevant technical personnel can set the first preset number by themselves according to actual requirements and conditions such as calculation requirements and hardware heat dissipation conditions, which is not limited here.
在一些实施例中,运算装置可以包括多个运算子模块,基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值可以包括:基于第一数量,获取功耗评估周期内处于工作状态的运算装置中的运算子模块的第二数量;以及基于第二数量,获取运算装置在功耗评估周期内的平均功耗表征值。In some embodiments, the computing device may include a plurality of computing sub-modules. Based on the first number, acquiring the average power consumption characteristic value of the computing device in the power consumption evaluation period may include: based on the first number, acquiring the power consumption evaluation period in the power consumption evaluation period. a second number of operation sub-modules in the operation device in a working state; and based on the second number, obtain an average power consumption characteristic value of the operation device in the power consumption evaluation period.
由此,基于数据请求信号的数量,能够获取该周期内运算装置中工作的计算子模块的数量,进而通过工作的计算子模块的数量表征该周期内的运算装置的功耗水平。从而能够通过简便的逻辑运算,即可高效获取运算装置的功耗水平,实时性更高,计算资源占用较少。Thus, based on the number of data request signals, the number of computing sub-modules operating in the computing device in the cycle can be obtained, and the power consumption level of the computing device in the cycle can be characterized by the number of operating computing sub-modules. Therefore, the power consumption level of the computing device can be efficiently obtained through simple logical operations, the real-time performance is higher, and the computing resources are less occupied.
一个运算装置通常包括多个运算子模块,并且在一个运算周期中,如果一个运算子模块进行计算,则必然需要获取到一条或多条输入数据,而每条输入数据均是通过不同的数据请求信号获得的(也即输入数据的数量与数据请求信号的数量相同)。因此,在一个功耗评估周期内,数据请求信号的第一数量和处于工作状态的运算子模块的第二数量存在一定的对应关系。而在功耗评估周期内处于工作状态的运算子模块的平均数量(也即平均功耗表征值),即可表征该运算装置在该功耗评估周期内的平均功耗水平。A computing device usually includes multiple computing sub-modules, and in one computing cycle, if one computing sub-module performs calculations, it must acquire one or more pieces of input data, and each input data is requested through different data. signal obtained (that is, the amount of incoming data is the same as the amount of the data request signal). Therefore, in one power consumption evaluation period, there is a certain corresponding relationship between the first number of data request signals and the second number of operation sub-modules in the working state. The average number of operating sub-modules (ie, the average power consumption characterization value) in the working state during the power consumption evaluation period can represent the average power consumption level of the computing device during the power consumption evaluation period.
图3示出了根据本公开的示例性实施例的向量计算装置的结构框图。FIG. 3 shows a structural block diagram of a vector computing apparatus according to an exemplary embodiment of the present disclosure.
在一个示例性实施例中,运算装置例如可以为如图3所示的向量计算装置300。向量计算装置通常用于处理向量之间的运算或向量与标量之间的运算。如图3所示,向量计算装置300包括K个向量计算子模块,并且在一个运算周期内,每个向量计算子模块分别处理一对向量或一个向量与标量之间的运算,也即当一个向量计算子模块工作时,需要同时向该子模块输入两条输入数据,而每条输入数据均对应一个数据请求信号。In an exemplary embodiment, the computing device may be, for example, the vector computing device 300 shown in FIG. 3 . Vector computing devices are typically used to handle operations between vectors or between vectors and scalars. As shown in FIG. 3 , the vector calculation apparatus 300 includes K vector calculation submodules, and in one operation cycle, each vector calculation submodule handles a pair of vectors or an operation between a vector and a scalar, that is, when a vector When the vector calculation sub-module is working, it is necessary to input two input data to the sub-module at the same time, and each input data corresponds to a data request signal.
由此能够看出,数据请求信号的数量和处于工作状态的向量计算子模块的数量之间存在对应关系,也即数据请求信号的数量是处于工作状态的向量计算子模块的数量的2倍。It can be seen that there is a corresponding relationship between the number of data request signals and the number of vector calculation submodules in working state, that is, the number of data request signals is twice the number of vector calculation submodules in working state.
因此,通过统计功耗评估周期内数据请求信号的第一数量,即可通过该对应关系获得该功耗评估周期内处于工作状态的向量计算子模块的第二数量。进而,通过获取平均每个运算周期处于工作状态的向量计算子模块的数量(也即平均功耗表征值),即可反映该功耗评估周期内该向量计算装置的功耗水平。Therefore, by counting the first number of data request signals in the power consumption evaluation period, the second number of the vector computing submodules in the working state in the power consumption evaluation period can be obtained through the corresponding relationship. Furthermore, the power consumption level of the vector computing device in the power consumption evaluation period can be reflected by obtaining the number of the vector computing sub-modules in the working state on average per computing cycle (ie, the average power consumption characteristic value).
图4示出了根据本公开的示例性实施例的矩阵乘法装置的结构框图。FIG. 4 shows a structural block diagram of a matrix multiplication apparatus according to an exemplary embodiment of the present disclosure.
在一个示例性实施例中,运算装置例如可以为如图4所示的矩阵乘法装置300。图4所示的矩阵乘法装置中包括M×N个矩阵乘法子模块,其在一个运算周期内,最大可以支持一个具有M个行向量的矩阵和一个具有N个列向量的矩阵进行矩阵内积运算,其中,M和N为大于1的正整数。In an exemplary embodiment, the operation device may be, for example, the matrix multiplication device 300 shown in FIG. 4 . The matrix multiplication device shown in FIG. 4 includes M×N matrix multiplication sub-modules, which can support a maximum of a matrix with M row vectors and a matrix with N column vectors to perform matrix inner product within one operation cycle. operation, where M and N are positive integers greater than 1.
当应用该矩阵乘法装置对一个具有m个行向量的矩阵A和一个具有n个列向量的矩阵B进行计算时(其中1≤m≤M,1≤n≤N),则需要m×n个矩阵乘法子模块同时进行运算。When applying the matrix multiplication device to calculate a matrix A with m row vectors and a matrix B with n column vectors (where 1≤m≤M, 1≤n≤N), m×n The matrix multiplication submodules perform operations simultaneously.
每个矩阵乘法子模块在进行运算时,均需分别获取输入数据A(i)和输入数据B(j)(i∈[0,m],j∈[0,n]),每个输入数据对应一条数据请求信号,则当需要m×n个矩阵乘法子模块同时进行运算时,数据请求信号的数量为(m+n)个。Each matrix multiplication sub-module needs to obtain input data A(i) and input data B(j) (i∈[0, m], j∈[0, n]) respectively when performing operations. Each input data Corresponding to a data request signal, when m×n matrix multiplication sub-modules are required to perform operations at the same time, the number of data request signals is (m+n).
由此能够看出,通过统计功耗评估周期内数据请求信号的第一数量(请求A(i)的数据请求信号数量和请求B(j)数据请求信号),并通过上述对应关系,即可获得该功耗评估周期内处于工作状态的矩阵乘法子模块的第二数量。进而,通过获取平均每个运算周期处于工作状态的矩阵乘法子模块的数量(也即平均功耗表征值),即可反映该功耗评估周期内该矩阵乘法装置的功耗水平。From this, it can be seen that by counting the first number of data request signals (the number of data request signals requesting A(i) and requesting B(j) data request signals) in the power consumption evaluation period, and through the above corresponding relationship, we can Obtain a second number of matrix multiplication submodules that are in a working state during the power consumption evaluation period. Furthermore, the power consumption level of the matrix multiplication device in the power consumption evaluation period can be reflected by obtaining the average number of matrix multiplication sub-modules in the working state per operation cycle (ie, the average power consumption characteristic value).
图5示出了根据本公开的实施例的功耗控制装置的结构框图。FIG. 5 shows a structural block diagram of a power consumption control apparatus according to an embodiment of the present disclosure.
在一些实施例中,功耗控制装置500可以首先通过统计模块510统计每个运算周期中的数据请求信号的数量,从而基于预定的对应关系获得该运算周期处于工作状态的运算子模块的数量(记为busy_cnt)并发送给寄存器进行存储。In some embodiments, the power consumption control apparatus 500 may first count the number of data request signals in each operation cycle through the statistics module 510, so as to obtain the number of operation sub-modules in the working state in the operation cycle based on a predetermined corresponding relationship ( Record it as busy_cnt) and send it to the register for storage.
在一些实施例中,可以将第一预设数量的周期内的每个busy_cnt存储在寄存器中,随后输入到加法器中求和,随后将其输入到除法器中获得相应的平均功耗表征值。In some embodiments, each busy_cnt for a first preset number of cycles may be stored in a register, then input into an adder for summation, and then input into a divider to obtain the corresponding average power consumption characterization value .
在一些实施例中,优选的,可以将第一预设数量设置为2n(n为正整数),由此即可通过如图5所示的移位寄存器520首先将每个busy_cnt进行算术右移n位(相当于除以第一预设数量),随后将每个经过移位后的busy_cnt传送到加法器530中计算总和,从而获得平均功耗表征值(记为busy_cnt_avg)。由此,通过移位寄存器即可方便的进行除法计算操作,提高了计算效率,节省了计算资源。In some embodiments, preferably, the first preset number can be set to 2 n (n is a positive integer), so that the shift register 520 shown in FIG. 5 can first perform an arithmetic right operation on each busy_cnt Shifting by n bits (equivalent to dividing by the first preset amount), and then transmitting each shifted busy_cnt to the adder 530 to calculate a sum, thereby obtaining an average power consumption characteristic value (denoted as busy_cnt_avg). Therefore, the division calculation operation can be conveniently performed through the shift register, the calculation efficiency is improved, and the calculation resources are saved.
在一些实施例中,基于功耗评估结果,调整运算装置的工作频率可以包括:基于功耗评估结果,调整二进制表示的功耗控制信号值,其中,功耗评估结果指示运算装置功耗是否超过预设功耗阈值,功耗控制信号值包括第二预设数量的多个数值位;以及基于调整后的功耗控制信号值中的多个数值位,控制在调整功耗控制信号值之后的下一个第二预设数量的多个运算周期中的运算装置的工作频率,其中,第二预设数量小于或等于第一预设数量,多个数值位包括数值为第一值的第一数值位,第一数值位的数量用于指示下一个第二预设数量的多个运算周期中的运算装置停止工作的运算周期的数量。In some embodiments, adjusting the operating frequency of the computing device based on the power consumption evaluation result may include: adjusting the binary-represented power consumption control signal value based on the power consumption evaluation result, wherein the power consumption evaluation result indicates whether the power consumption of the computing device exceeds The power consumption threshold is preset, and the power consumption control signal value includes a second preset number of multiple numerical bits; and based on the multiple numerical bits in the adjusted power consumption control signal value, controlling the power consumption control signal value after adjusting the power consumption control signal value. The operating frequency of the computing device in a plurality of computing cycles of the next second preset number, wherein the second preset number is less than or equal to the first preset number, and the plurality of numerical bits include a first numerical value whose value is the first value bit, the number of the first value bits is used to indicate the number of operation cycles in which the operation device stops working in the next second preset number of multiple operation cycles.
由此,通过功耗评估结果调整一个二进制的功耗控制信号值,并基于该信号值相应的调整运算装置的工作频率,上述操作通过现有的部件(如寄存器、比较器等)即可实现,结构简单,节省成本;同时,上述功耗控制逻辑简单,能够进一步提升功耗调整的效率和实时性。Therefore, a binary power consumption control signal value is adjusted according to the power consumption evaluation result, and the operating frequency of the computing device is adjusted correspondingly based on the signal value. The above operations can be realized by existing components (such as registers, comparators, etc.). , the structure is simple, and the cost is saved; at the same time, the above-mentioned power consumption control logic is simple, which can further improve the efficiency and real-time performance of power consumption adjustment.
在一些实施例中,如图5所示,预设功耗阈值可以存储于第一寄存器550中,并且支持相关技术人员基于实际情况对其进行维护,因此在此对其数值不做限制。In some embodiments, as shown in FIG. 5 , the preset power consumption threshold may be stored in the first register 550 and support the relevant technical personnel to maintain it based on the actual situation, so its value is not limited here.
功耗评估结果可以通过比较器540对从加法器550获取到的平均功耗表征值(busy_cnt_avg)以及从第一寄存器550获取到的预设功耗阈值进行比较获取。在获得功耗评估结果之后,比较器540将该功耗评估结果发送给第二寄存器560,第二寄存器560根据该功耗评估结果相应的调整保存在该第二寄存器560内的功耗控制信号值。The power consumption evaluation result can be obtained by comparing the average power consumption characteristic value (busy_cnt_avg) obtained from the adder 550 with the preset power consumption threshold value obtained from the first register 550 through the comparator 540 . After obtaining the power consumption evaluation result, the comparator 540 sends the power consumption evaluation result to the second register 560, and the second register 560 correspondingly adjusts the power consumption control signal stored in the second register 560 according to the power consumption evaluation result value.
在一些实施例中,多个数值位还包括数值为第二值的第二数值位,基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果可以包括:响应于平均功耗表征值大于或等于预设功耗阈值,确定功耗评估结果为运算装置功耗过高;并且其中,所诉基于功耗评估结果,确定二进制表示的功耗控制信号值可以包括:响应于确定功耗评估结果为运算装置功耗过高,将功耗控制信号值中的一个第二数值位调整为第一数值位。In some embodiments, the plurality of numerical bits further include a second numerical value whose value is a second value. Based on the average power consumption characteristic value and the preset power consumption threshold, obtaining the power consumption evaluation result in the power consumption evaluation period may include: In response to the average power consumption characteristic value being greater than or equal to the preset power consumption threshold, it is determined that the power consumption evaluation result is that the power consumption of the computing device is too high; The method includes: in response to determining that the power consumption evaluation result is that the power consumption of the computing device is too high, adjusting a second value bit in the power consumption control signal value to a first value bit.
在一些实施例中,如图5所示,功耗控制装置500中的第二寄存器560中可以存储有一个具有第二预设数量的位数的功耗控制信号值。该功耗控制信号值具有数值为第一值的第一数值位和数值为第二值的第二数值位。其中,第一数值位的个数指示了在调整该功耗控制信号值后的功耗调整周期(也即下一个第二预设数量的多个运算周期)内该运算装置停止工作的周期数。In some embodiments, as shown in FIG. 5 , a power consumption control signal value having a second preset number of bits may be stored in the second register 560 of the power consumption control apparatus 500 . The power consumption control signal value has a first value bit having a first value and a second value bit having a second value. The number of the first value bits indicates the number of cycles during which the computing device stops working within the power consumption adjustment cycle (ie, the next second preset number of multiple computing cycles) after the power consumption control signal value is adjusted. .
第二预设数量需要小于或等于第一预设数量,由此,能够避免在调整效果还没出现时就再次对功耗进行评估及调整。可理解的,第二预设数量可以由相关技术人员根据实际需求自行设置,在此不作限制。The second preset number needs to be less than or equal to the first preset number, so that it is possible to avoid evaluating and adjusting the power consumption again before the adjustment effect occurs. It is understandable that the second preset number can be set by the relevant technical personnel according to actual needs, which is not limited herein.
示例性的,第一值可以为“1”,第二值可以为“0”;或者,第一值可以为“0”,第二值可以为“1”Exemplarily, the first value may be "1" and the second value may be "0"; or, the first value may be "0" and the second value may be "1"
在一些实施例中,第二寄存器560中存储的功耗控制信号值可以为一个8位的二进制数据(记为stall_mask[7:0]),并且其初始值为“0000 0000”(也即每一位均为第二值),第二寄存器560可以为一个8位寄存器。In some embodiments, the power consumption control signal value stored in the second register 560 may be an 8-bit binary data (denoted as stall_mask[7:0]), and its initial value is “0000 0000” (that is, every One bit is the second value), the second register 560 may be an 8-bit register.
当比较器540通过比较,判断平均功耗表征值(busy_cnt_avg)大于或等于预设功耗阈值,则相应的将该结果传送给第二寄存器560。第二寄存器560基于该结果,将其维护的功耗控制信号值(stall_mask[7:0])中的原值为“0”的一位调整为“1”,例如,stall_mask[7:0]由初始值“0000 0000”调整为“0000 0001”,该功耗控制信号值可以表示,调整后的8个运算周期中有1个运算周期,该运算装置停止工作;又例如,stall_mask[7:0]由“00000011”调整为“0000 0111”,该功耗控制信号值可以表示,调整后的8个运算周期中有3个运算周期,该运算装置停止工作。When the comparator 540 determines that the average power consumption characteristic value (busy_cnt_avg) is greater than or equal to the preset power consumption threshold through comparison, the result is correspondingly transmitted to the second register 560 . Based on the result, the second register 560 adjusts a bit of the original value of "0" in the power consumption control signal value (stall_mask[7:0]) maintained by it to "1", for example, stall_mask[7:0] Adjusted from the initial value "0000 0000" to "0000 0001", the power consumption control signal value can indicate that in 1 operation cycle in the adjusted 8 operation cycles, the operation device stops working; another example, stall_mask[7: 0] is adjusted from "00000011" to "0000 0111", the power consumption control signal value can indicate that there are 3 operation cycles in the adjusted 8 operation cycles, and the operation device stops working.
在一些实施例中,多个数值位还包括数值为第二值的第二数值位,基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果可以包括:响应于平均功耗表征值小于预设功耗阈值,确定功耗评估结果为运算装置功耗正常;并且其中,所诉基于功耗评估结果,确定二进制表示的功耗控制信号值可以包括:响应于确定功耗评估结果为运算装置功耗正常并且功耗控制信号值中包括第一数值位,将功耗控制信号值中的一个第一数值位调整为第二数值位。In some embodiments, the plurality of numerical bits further include a second numerical value whose value is a second value. Based on the average power consumption characteristic value and the preset power consumption threshold, obtaining the power consumption evaluation result in the power consumption evaluation period may include: In response to the average power consumption characteristic value being less than the preset power consumption threshold, determining that the power consumption evaluation result is that the power consumption of the computing device is normal; and wherein, based on the power consumption evaluation result, determining the power consumption control signal value represented in binary may include: responding to After determining that the power consumption evaluation result is that the power consumption of the computing device is normal and the power consumption control signal value includes a first value bit, a first value bit in the power consumption control signal value is adjusted to a second value bit.
在一些实施例中,当比较器540通过比较,判断平均功耗表征值(busy_cnt_avg)小于预设功耗阈值,则相应的将该结果传送给第二寄存器560。第二寄存器560基于该结果,可以相应的调整将其维护的功耗控制信号值(stall_mask[7:0])。In some embodiments, when the comparator 540 determines that the average power consumption characteristic value (busy_cnt_avg) is smaller than the preset power consumption threshold through comparison, the result is correspondingly transmitted to the second register 560 . Based on the result, the second register 560 can adjust the power consumption control signal value (stall_mask[7:0]) to be maintained accordingly.
当stall_mask[7:0]中的原值中包含“1”时,则可以将stall_mask[7:0]中的原值为“1”的一位调整为“0”。例如,stall_mask[7:0]由初始值“0000 0111”调整为“00000011”,则该功耗控制信号值可以表示,调整后的8个运算周期中有2个运算周期,该运算装置停止工作(调整之前是每8个周期有3个周期停止工作)。When the original value in stall_mask[7:0] contains "1", one bit of the original value of "1" in stall_mask[7:0] can be adjusted to "0". For example, if stall_mask[7:0] is adjusted from the initial value "0000 0111" to "00000011", the power consumption control signal value can indicate that there are 2 operation cycles in the adjusted 8 operation cycles, and the operation device stops working (Before the adjustment was 3 cycles out of every 8 cycles).
在一些实施例中,基于功耗评估结果,确定二进制表示的功耗控制信号值还可以包括:响应于确定功耗评估结果为运算装置功耗正常并且功耗控制信号值中的每个数值位均为第二数值位,确定功耗控制信号值中的每个数值位仍为第二数值位。In some embodiments, determining the power consumption control signal value represented in binary based on the power consumption evaluation result may further include: in response to determining that the power consumption evaluation result is that the power consumption of the computing device is normal and each numerical bit in the power consumption control signal value are the second value bits, it is determined that each value bit in the power consumption control signal value is still the second value bit.
在一些实施例中,当从比较器540获得的功耗评估结果为平均功耗表征值(busy_cnt_avg)小于预设功耗阈值,并且功耗控制信号值stall_mask[7:0]的原值为初始值“00000000”时,则可以对该功耗控制信号值stall_mask[7:0]不做调整,仍然保持“0000 0000”(也即之后的8个运算周期中的每个周期该运算装置均正常工作)。In some embodiments, when the power consumption evaluation result obtained from the comparator 540 is that the average power consumption characteristic value (busy_cnt_avg) is less than the preset power consumption threshold, and the original value of the power consumption control signal value stall_mask[7:0] is the initial value When the value is "00000000", the value of the power consumption control signal stall_mask[7:0] can be left unchanged, and it still remains "0000 0000" (that is, the operation device is normal in each of the following 8 operation cycles). Work).
在一些实施例中,基于调整后的功耗控制信号值中的多个数值位,控制在调整功耗控制信号值之后的下一个第二预设数量的多个运算周期中的运算装置的工作频率可以包括:基于调整后的功耗控制信号值中的第二数值位的第三数量,生成指令下发阻止信号;以及将指令下发阻止信号发送给用于向运算装置发送运算指令的指令解析装置,以阻止指令解析装置在下一个第二预设数量的多个运算周期中的第三数量的运算周期中停止下发运算指令。In some embodiments, based on a plurality of numerical bits in the adjusted power consumption control signal value, the operation of the computing device in the next second preset number of multiple operation cycles after the adjusted power consumption control signal value is controlled. The frequency may include: generating an instruction issuance blocking signal based on a third number of second numerical bits in the adjusted power consumption control signal value; and sending the instruction issuance blocking signal to an instruction for sending an arithmetic instruction to the computing device The parsing device is configured to prevent the instruction parsing device from stopping issuing operation instructions in a third number of operation cycles in the next second preset number of multiple operation cycles.
由此,基于调整后的功耗控制信号值,生成一个指令下发阻止信号,从而将下一功耗调整周期中停止下发指令的周期数量,从而通过调整该运算装置的工作频率来控制该运算装置的功耗水平,能够在对该运算装置的功耗水平实现有效控制的同时,不影响芯片中的其他部件(如存储装置、控制装置等)的正常运行。Thus, based on the adjusted value of the power consumption control signal, an instruction issuance prevention signal is generated, so as to stop the number of cycles in which instructions are issued in the next power consumption adjustment period, so as to control the operation frequency of the computing device by adjusting the operating frequency. The power consumption level of the computing device can effectively control the power consumption level of the computing device without affecting the normal operation of other components in the chip (such as a storage device, a control device, etc.).
在一些实施例中,如图5所示,在对第二寄存器560中的功耗控制信号值进行调整之后,第二寄存器560会基于调整后的功耗控制信号值生成一个指令下发阻止信号,并将其发送给指令解析装置(图中未示出)。In some embodiments, as shown in FIG. 5 , after the power consumption control signal value in the second register 560 is adjusted, the second register 560 will generate an instruction issuance blocking signal based on the adjusted power consumption control signal value , and send it to the instruction parsing device (not shown in the figure).
在一些实施例中,指令解析装置接收到指令下发阻止信号后,即可获知下一个第二预设数量的多个运算周期内,需要停止下发指令(也即上述的计算使能信号及数据请求信号),从而在该周期内控制该运算装置停止工作。In some embodiments, after the instruction parsing device receives the instruction issuance blocking signal, it can know that the instruction issuance needs to be stopped within the next second preset number of multiple operation cycles (that is, the above-mentioned calculation enable signal and data request signal), thereby controlling the operation device to stop working within the period.
在一些实施例中,指令解析装置在获取到上述信息后,可以随机选择停止下发指令的周期(数量与功耗控制信号值中的第一值的数量相同)。In some embodiments, after acquiring the above-mentioned information, the instruction parsing apparatus may randomly select a period for stopping issuing instructions (the number is the same as the number of the first value in the power consumption control signal value).
在一些实施例中,如图5所示,第二寄存器560也可以基于其存储的功耗控制信号值501生成一个指令下发阻止信号502,例如,功耗控制信号值501为“0000 1111”,则相应生成的指令下发阻止信号502是一个相应的窗口信号。指令解析装置在接收到该指令下发阻止信号502后,即可基于该信号的窗口所指示的4个运算周期,停止指令的下发。In some embodiments, as shown in FIG. 5 , the second register 560 may also generate an instruction
在一些实施例中,本公开的实施例的用于运算装置的功耗控制方法还可以包括:功耗控制信号值被调整后,响应于经过第三预设数量的运算周期后,获取最近的功耗评估周期内的运算装置的平均功耗表征值,以确定最近的功耗评估周期内的运算装置的功耗评估结果,其中,第三预设数量大于或等于第一预设数量;以及基于最近的功耗评估周期内的运算装置的功耗评估结果,重新确定功耗控制信号值。In some embodiments, the power consumption control method for a computing device according to an embodiment of the present disclosure may further include: after the value of the power consumption control signal is adjusted, in response to the elapse of a third preset number of operation cycles, obtaining the most recent an average power consumption characteristic value of the computing device in the power consumption evaluation period to determine the power consumption evaluation result of the computing device in the most recent power consumption evaluation period, wherein the third preset number is greater than or equal to the first preset number; and Based on the power consumption evaluation result of the computing device in the most recent power consumption evaluation period, the power consumption control signal value is re-determined.
由此,通过设置间隔周期(也即第三预设数量的运算周期),从而在进行一次功耗调整后,经过该间隔周期后再进行功耗数据的对比及寄存器中功耗控制信号值的调整,从而能够基于该间隔周期控制功耗调整的频率,并且能够使运算装置的功耗调整更加平滑。Therefore, by setting the interval period (that is, the third preset number of operation cycles), after the power consumption adjustment is performed once, the power consumption data comparison and the power consumption control signal value in the register are performed after the interval period. Therefore, the frequency of power consumption adjustment can be controlled based on the interval period, and the power consumption adjustment of the computing device can be made smoother.
在一些实施例中,当设置了第三预设数量的运算周期(也即间隔周期)时,在进行过一次功耗控制信号值调整后的第三预设数量的运算周期内,不进行平均功耗表征值和预设功耗阈值的比较,以及功耗控制信号值的调整。在该间隔周期中,运算装置按照该次调整后的工作频率进行工作。In some embodiments, when a third preset number of operation cycles (ie, interval periods) is set, no averaging is performed within the third preset number of operation cycles after one power consumption control signal value adjustment has been performed. Comparison of power consumption characteristic value and preset power consumption threshold value, and adjustment of power consumption control signal value. In the interval period, the computing device operates according to the adjusted operating frequency.
在一些实施例中,第三预设周期可以大于或等于第一预设周期,由此能够避免在触发下一次比较时,所获取到的平均功耗表征值仍为上一次统计的结果,影响该次比较的功耗评估结果及功耗调整效果。可理解的,第三预设数量可以由相关技术人员根据实际需求自行设置,例如可以为第一预设周期的整数倍,在此不作限制。In some embodiments, the third preset period may be greater than or equal to the first preset period, which can avoid that when the next comparison is triggered, the acquired average power consumption characteristic value is still the result of the previous statistics, which affects The power consumption evaluation results and power consumption adjustment effects of this comparison. It is understandable that the third preset number can be set by the relevant technical personnel according to actual needs, for example, it can be an integer multiple of the first preset period, which is not limited herein.
在一些实施例中,如图6所示,还提供了一种用于运算装置的功耗控制装置600,可以包括:第一获取单元610,被配置为获取功耗评估周期内的数据请求信号的第一数量,其中,功耗评估周期包括第一预设数量的连续的多个运算周期,数据请求信号用于请求运算装置的输入数据;第二获取单元620,被配置为基于第一数量,获取运算装置在功耗评估周期内的平均功耗表征值;第三获取单元630,被配置为基于平均功耗表征值和预设功耗阈值,获取功耗评估周期内的功耗评估结果;以及调整单元640,被配置为基于功耗评估结果,调整运算装置的工作频率。In some embodiments, as shown in FIG. 6 , a power consumption control device 600 for a computing device is also provided, which may include: a first obtaining unit 610 configured to obtain a data request signal within a power consumption evaluation period The first number of , wherein the power consumption evaluation cycle includes a first preset number of consecutive multiple operation cycles, and the data request signal is used to request the input data of the computing device; the second acquisition unit 620 is configured to be based on the first number of , to obtain the average power consumption characteristic value of the computing device in the power consumption evaluation period; the third obtaining unit 630 is configured to obtain the power consumption evaluation result in the power consumption evaluation period based on the average power consumption characteristic value and the preset power consumption threshold ; and an adjustment unit 640, configured to adjust the operating frequency of the computing device based on the power consumption evaluation result.
其中,功耗控制装置600中的单元610-单元640的操作与上述用于运算装置的功耗控制方法中的步骤S101-步骤S104的操作类似,在此不做赘述。The operations of the unit 610 to the unit 640 in the power consumption control apparatus 600 are similar to the operations of the steps S101 to S104 in the above-mentioned power consumption control method for an arithmetic device, and are not repeated here.
在一些实施例中,运算装置可以包括多个运算子模块,第二获取单元可以包括:第一获取子单元,被配置为基于第一数量,获取功耗评估周期内处于工作状态的运算装置中的运算子模块的第二数量;以及第二获取子单元,被配置为基于第二数量,获取运算装置在功耗评估周期内的平均功耗表征值。In some embodiments, the computing device may include a plurality of computing sub-modules, and the second obtaining unit may include: a first obtaining sub-unit configured to obtain, based on the first number, the computing devices that are in the working state during the power consumption evaluation period and a second obtaining subunit configured to obtain the average power consumption characteristic value of the computing device in the power consumption evaluation period based on the second quantity.
在一些实施例中,调整单元可以包括:调整子单元,被配置为基于功耗评估结果,调整二进制表示的功耗控制信号值,其中,功耗评估结果指示运算装置功耗是否超过预设功耗阈值,功耗控制信号值包括第二预设数量的多个数值位;以及控制子单元,被配置为基于调整后的功耗控制信号值中的多个数值位,控制在调整功耗控制信号值之后的下一个第二预设数量的多个运算周期中的运算装置的工作频率,其中,第二预设数量小于或等于第一预设数量,多个数值位包括数值为第一值的第一数值位,第一数值位的数量用于指示下一个第二预设数量的多个运算周期中的运算装置停止工作的运算周期的数量。In some embodiments, the adjustment unit may include: an adjustment subunit configured to adjust the binary-represented power consumption control signal value based on a power consumption evaluation result, wherein the power consumption evaluation result indicates whether the power consumption of the computing device exceeds a preset power consumption a power consumption threshold, the power consumption control signal value includes a second preset number of multiple numerical bits; and a control subunit configured to control the power consumption control adjustment based on the multiple numerical bits in the adjusted power consumption control signal value The operating frequency of the computing device in the next second preset number of multiple operation cycles after the signal value, wherein the second preset number is less than or equal to the first preset number, and the number of numerical bits includes the first value. The number of the first value bits is used to indicate the number of operation cycles in which the operation device stops working in the next second preset number of multiple operation cycles.
在一些实施例中,多个数值位还包括数值为第二值的第二数值位,第三获取单元可以包括:第一确定子单元,被配置为响应于平均功耗表征值大于或等于预设功耗阈值,确定功耗评估结果为运算装置功耗过高;并且其中,调整子单元可以被配置为:响应于确定功耗评估结果为运算装置功耗过高,将功耗控制信号值中的一个第二数值位调整为第一数值位。In some embodiments, the plurality of numerical bits further include a second numerical value whose value is a second value, and the third obtaining unit may include: a first determining subunit, configured to respond to the average power consumption characteristic value being greater than or equal to a predetermined value Setting a power consumption threshold, it is determined that the power consumption evaluation result is that the power consumption of the computing device is too high; and wherein, the adjustment subunit may be configured to: in response to determining that the power consumption evaluation result is that the power consumption of the computing device is too high, the power consumption control signal value A second value bit in is adjusted to the first value bit.
在一些实施例中,多个数值位还包括数值为第二值的第二数值位,第三获取单元可以包括:第二确定子单元,被配置为响应于平均功耗表征值小于预设功耗阈值,确定功耗评估结果为运算装置功耗正常;并且其中,所诉调整子单元可以被配置为:响应于确定功耗评估结果为运算装置功耗正常并且功耗控制信号值中包括第一数值位,将功耗控制信号值中的一个第一数值位调整为第二数值位。In some embodiments, the plurality of numerical bits further include a second numerical value having a second value, and the third obtaining unit may include: a second determining subunit, configured to respond that the average power consumption characteristic value is less than the preset power consumption the power consumption threshold, and determine that the power consumption evaluation result is that the power consumption of the computing device is normal; and wherein, the adjustment subunit may be configured to: in response to determining that the power consumption evaluation result is that the power consumption of the computing device is normal and that the power consumption control signal value includes the first power consumption A value bit that adjusts a first value bit in the power consumption control signal value to a second value bit.
在一些实施例中,所诉调整子单元还可以被配置为:响应于确定功耗评估结果为运算装置功耗正常并且功耗控制信号值中的每个数值位均为第二数值位,确定功耗控制信号值中的每个数值位仍为第二数值位。In some embodiments, the adjusting subunit may be further configured to: in response to determining that the power consumption evaluation result is that the power consumption of the computing device is normal and that each value bit in the power consumption control signal value is a second value bit, determine Each value bit in the power consumption control signal value remains a second value bit.
在一些实施例中,控制子单元可以包括:生成模块,被配置为基于调整后的功耗控制信号值中的第二数值位的第三数量,生成指令下发阻止信号;以及发送模块,被配置为将指令下发阻止信号发送给用于向运算装置发送运算指令的指令解析装置,以阻止指令解析装置在下一个第二预设数量的多个运算周期中的第三数量的运算周期中停止下发运算指令。In some embodiments, the control sub-unit may include: a generating module configured to generate an instruction issuance blocking signal based on a third number of second numerical bits in the adjusted power consumption control signal value; and a sending module, configured by is configured to send an instruction issuing blocking signal to the instruction parsing device for sending an arithmetic instruction to the computing device, so as to prevent the instruction parsing device from stopping in a third number of operation cycles among the next second preset number of multiple operation cycles Issue operation instructions.
在一些实施例中,本公开的实施例的用于运算装置的功耗控制装置还可以包括:第四获取单元,被配置为功耗控制信号值被调整后,响应于经过第三预设数量的运算周期后,获取最近的功耗评估周期内的运算装置的平均功耗表征值,以确定最近的功耗评估周期内的运算装置的功耗评估结果,其中,第三预设数量大于或等于第一预设数量;以及确定单元,被配置为基于最近的功耗评估周期内的运算装置的功耗评估结果,重新确定功耗控制信号值。In some embodiments, the power consumption control apparatus for a computing device according to an embodiment of the present disclosure may further include: a fourth acquisition unit, configured to, after the value of the power consumption control signal is adjusted, respond to a third preset number of After the computing cycle, the average power consumption characteristic value of the computing device in the most recent power consumption evaluation cycle is obtained to determine the power consumption evaluation result of the computing device in the most recent power consumption evaluation cycle, wherein the third preset number is greater than or is equal to the first preset number; and the determining unit is configured to re-determine the power consumption control signal value based on the power consumption evaluation result of the computing device in the most recent power consumption evaluation period.
在一些实施例中,提供了一种芯片,包括上述用于运算装置的功耗控制装置。In some embodiments, a chip is provided, including the above-described power consumption control device for a computing device.
在一些实施例中,提供了一种电子设备,包括上述的芯片。In some embodiments, there is provided an electronic device including the above-mentioned chip.
在一些实施例中,提供了一种电子设备,包括:至少一个处理器;以及与至少一个处理器通信连接的存储器;其中存储器存储有可被至少一个处理器执行的指令,指令被至少一个处理器执行,以使至少一个处理器能够执行上述用于运算装置的功耗控制方法。In some embodiments, an electronic device is provided, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being processed by the at least one processor The processor executes, so that at least one processor can execute the above-mentioned power consumption control method for an arithmetic device.
在一些实施例中,提供了一种存储有计算机指令的非瞬时计算机可读存储介质,其中,计算机指令用于使计算机执行上述用于运算装置的功耗控制方法。In some embodiments, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause a computer to perform the above-described power consumption control method for a computing device.
在一些实施例中,提供了一种计算机程序产品,包括计算机程序,其中,计算机程序在被处理器执行时实现上述用于运算装置的功耗控制方法。In some embodiments, a computer program product is provided, comprising a computer program, wherein the computer program, when executed by a processor, implements the above-described power consumption control method for a computing device.
根据本公开的实施例,还提供了一种电子设备、一种可读存储介质和一种计算机程序产品。According to embodiments of the present disclosure, an electronic device, a readable storage medium, and a computer program product are also provided.
参考图7,现将描述可以作为本公开的服务器或客户端的电子设备700的结构框图,其是可以应用于本公开的各方面的硬件设备的示例。电子设备旨在表示各种形式的数字电子的计算机设备,诸如,膝上型计算机、台式计算机、工作台、个人数字助理、服务器、刀片式服务器、大型计算机、和其它适合的计算机。电子设备还可以表示各种形式的移动装置,诸如,个人数字处理、蜂窝电话、智能电话、可穿戴设备和其它类似的计算装置。本文所示的部件、它们的连接和关系、以及它们的功能仅仅作为示例,并且不意在限制本文中描述的和/或者要求的本公开的实现。Referring to FIG. 7 , a structural block diagram of an
如图7所示,电子设备700包括计算单元701,其可以根据存储在只读存储器(ROM)702中的计算机程序或者从存储单元708加载到随机访问存储器(RAM)703中的计算机程序,来执行各种适当的动作和处理。在RAM703中,还可存储电子设备700操作所需的各种程序和数据。计算单元701、ROM 702以及RAM 703通过总线704彼此相连。输入/输出(I/O)接口705也连接至总线704。As shown in FIG. 7 , the
电子设备700中的多个部件连接至I/O接口705,包括:输入单元706、输出单元707、存储单元708以及通信单元709。输入单元706可以是能向电子设备700输入信息的任何类型的设备,输入单元706可以接收输入的数字或字符信息,以及产生与电子设备的用户设置和/或功能控制有关的键信号输入,并且可以包括但不限于鼠标、键盘、触摸屏、轨迹板、轨迹球、操作杆、麦克风和/或遥控器。输出单元707可以是能呈现信息的任何类型的设备,并且可以包括但不限于显示器、扬声器、视频/音频输出终端、振动器和/或打印机。存储单元708可以包括但不限于磁盘、光盘。通信单元709允许电子设备700通过诸如因特网的计算机网络和/或各种电信网络与其他设备交换信息/数据,并且可以包括但不限于调制解调器、网卡、红外通信设备、无线通信收发机和/或芯片组,例如蓝牙TM设备、802.11设备、WiFi设备、WiMax设备、蜂窝通信设备和/或类似物。Various components in the
计算单元701可以是各种具有处理和计算能力的通用和/或专用处理组件。计算单元701的一些示例包括但不限于中央处理单元(CPU)、图形处理单元(GPU)、各种专用的人工智能(AI)计算芯片、各种运行机器学习模型算法的计算单元、数字信号处理器(DSP)、以及任何适当的处理器、控制器、微控制器等。计算单元701执行上文所描述的各个方法和处理,例如上述用于运算装置的功耗控制方法。例如,在一些实施例中,上述用于运算装置的功耗控制方法可被实现为计算机软件程序,其被有形地包含于机器可读介质,例如存储单元708。在一些实施例中,计算机程序的部分或者全部可以经由ROM 702和/或通信单元709而被载入和/或安装到电子设备700上。当计算机程序加载到RAM 703并由计算单元701执行时,可以执行上文描述的上述用于运算装置的功耗控制方法的一个或多个步骤。备选地,在其他实施例中,计算单元701可以通过其他任何适当的方式(例如,借助于固件)而被配置为执行上述用于运算装置的功耗控制方法。
本文中以上描述的系统和技术的各种实施方式可以在数字电子电路系统、集成电路系统、场可编程门阵列(FPGA)、专用集成电路(ASIC)、专用标准产品(ASSP)、芯片上系统的系统(SOC)、复杂可编程逻辑设备(CPLD)、计算机硬件、固件、软件、和/或它们的组合中实现。这些各种实施方式可以包括:实施在一个或者多个计算机程序中,该一个或者多个计算机程序可在包括至少一个可编程处理器的可编程系统上执行和/或解释,该可编程处理器可以是专用或者通用可编程处理器,可以从存储系统、至少一个输入装置、和至少一个输出装置接收数据和指令,并且将数据和指令传输至该存储系统、该至少一个输入装置、和该至少一个输出装置。Various implementations of the systems and techniques described herein above may be implemented in digital electronic circuitry, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips system (SOC), complex programmable logic device (CPLD), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include being implemented in one or more computer programs executable and/or interpretable on a programmable system including at least one programmable processor that The processor, which may be a special purpose or general-purpose programmable processor, may receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device an output device.
用于实施本公开的方法的程序代码可以采用一个或多个编程语言的任何组合来编写。这些程序代码可以提供给通用计算机、专用计算机或其他可编程数据处理装置的处理器或控制器,使得程序代码当由处理器或控制器执行时使流程图和/或框图中所规定的功能/操作被实施。程序代码可以完全在机器上执行、部分地在机器上执行,作为独立软件包部分地在机器上执行且部分地在远程机器上执行或完全在远程机器或服务器上执行。Program code for implementing the methods of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer or other programmable data processing apparatus, such that the program code, when executed by the processor or controller, performs the functions/functions specified in the flowcharts and/or block diagrams. Action is implemented. The program code may execute entirely on the machine, partly on the machine, partly on the machine and partly on a remote machine as a stand-alone software package or entirely on the remote machine or server.
在本公开的上下文中,机器可读介质可以是有形的介质,其可以包含或存储以供指令执行系统、装置或设备使用或与指令执行系统、装置或设备结合地使用的程序。机器可读介质可以是机器可读信号介质或机器可读储存介质。机器可读介质可以包括但不限于电子的、磁性的、光学的、电磁的、红外的、或半导体系统、装置或设备,或者上述内容的任何合适组合。机器可读存储介质的更具体示例会包括基于一个或多个线的电气连接、便携式计算机盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦除可编程只读存储器(EPROM或快闪存储器)、光纤、便捷式紧凑盘只读存储器(CD-ROM)、光学储存设备、磁储存设备、或上述内容的任何合适组合。In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in connection with the instruction execution system, apparatus or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. Machine-readable media may include, but are not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media would include one or more wire-based electrical connections, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable programmable read only memory (EPROM or flash memory), fiber optics, compact disk read only memory (CD-ROM), optical storage, magnetic storage, or any suitable combination of the foregoing.
为了提供与用户的交互,可以在计算机上实施此处描述的系统和技术,该计算机具有:用于向用户显示信息的显示装置(例如,CRT(阴极射线管)或者LCD(液晶显示器)监视器);以及键盘和指向装置(例如,鼠标或者轨迹球),用户可以通过该键盘和该指向装置来将输入提供给计算机。其它种类的装置还可以用于提供与用户的交互;例如,提供给用户的反馈可以是任何形式的传感反馈(例如,视觉反馈、听觉反馈、或者触觉反馈);并且可以用任何形式(包括声输入、语音输入或者、触觉输入)来接收来自用户的输入。To provide interaction with a user, the systems and techniques described herein may be implemented on a computer having a display device (eg, a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user ); and a keyboard and pointing device (eg, a mouse or trackball) through which a user can provide input to the computer. Other kinds of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (eg, visual feedback, auditory feedback, or tactile feedback); and can be in any form (including acoustic input, voice input, or tactile input) to receive input from the user.
可以将此处描述的系统和技术实施在包括后台部件的计算系统(例如,作为数据服务器)、或者包括中间件部件的计算系统(例如,应用服务器)、或者包括前端部件的计算系统(例如,具有图形用户界面或者网络浏览器的用户计算机,用户可以通过该图形用户界面或者该网络浏览器来与此处描述的系统和技术的实施方式交互)、或者包括这种后台部件、中间件部件、或者前端部件的任何组合的计算系统中。可以通过任何形式或者介质的数字数据通信(例如,通信网络)来将系统的部件相互连接。通信网络的示例包括:局域网(LAN)、广域网(WAN)和互联网。The systems and techniques described herein may be implemented on a computing system that includes back-end components (eg, as a data server), or a computing system that includes middleware components (eg, an application server), or a computing system that includes front-end components (eg, a user's computer having a graphical user interface or web browser through which a user may interact with implementations of the systems and techniques described herein), or including such backend components, middleware components, Or any combination of front-end components in a computing system. The components of the system may be interconnected by any form or medium of digital data communication (eg, a communication network). Examples of communication networks include: Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
计算机系统可以包括客户端和服务器。客户端和服务器一般远离彼此并且通常通过通信网络进行交互。通过在相应的计算机上运行并且彼此具有客户端-服务器关系的计算机程序来产生客户端和服务器的关系。服务器可以是云服务器,也可以为分布式系统的服务器,或者是结合了区块链的服务器。A computer system can include clients and servers. Clients and servers are generally remote from each other and usually interact through a communication network. The relationship of client and server arises by computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a distributed system server, or a server combined with blockchain.
应该理解,可以使用上面所示的各种形式的流程,重新排序、增加或删除步骤。例如,本公开中记载的各步骤可以并行地执行、也可以顺序地或以不同的次序执行,只要能够实现本公开公开的技术方案所期望的结果,本文在此不进行限制。It should be understood that steps may be reordered, added or deleted using the various forms of flow shown above. For example, the steps described in the present disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in the present disclosure can be achieved, which are not limited herein.
虽然已经参照附图描述了本公开的实施例或示例,但应理解,上述的方法、系统和设备仅仅是示例性的实施例或示例,本发明的范围并不由这些实施例或示例限制,而是仅由授权后的权利要求书及其等同范围来限定。实施例或示例中的各种要素可以被省略或者可由其等同要素替代。此外,可以通过不同于本公开中描述的次序来执行各步骤。进一步地,可以以各种方式组合实施例或示例中的各种要素。重要的是随着技术的演进,在此描述的很多要素可以由本公开之后出现的等同要素进行替换。Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-described methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but is limited only by the appended claims and their equivalents. Various elements of the embodiments or examples may be omitted or replaced by equivalents thereof. Furthermore, the steps may be performed in an order different from that described in this disclosure. Further, various elements of the embodiments or examples may be combined in various ways. Importantly, as technology evolves, many of the elements described herein may be replaced by equivalent elements that appear later in this disclosure.
Claims (21)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210555952.4A CN114879832B (en) | 2022-05-20 | 2022-05-20 | Power consumption control method, device, chip, equipment and medium for computing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210555952.4A CN114879832B (en) | 2022-05-20 | 2022-05-20 | Power consumption control method, device, chip, equipment and medium for computing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114879832A true CN114879832A (en) | 2022-08-09 |
CN114879832B CN114879832B (en) | 2024-12-06 |
Family
ID=82677724
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210555952.4A Active CN114879832B (en) | 2022-05-20 | 2022-05-20 | Power consumption control method, device, chip, equipment and medium for computing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114879832B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116881090A (en) * | 2023-09-06 | 2023-10-13 | 北京壁仞科技开发有限公司 | Computing device and method for controlling energy consumption of computing core in computing device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112243060A (en) * | 2020-10-30 | 2021-01-19 | Oppo广东移动通信有限公司 | Power consumption estimation method of processor, mobile terminal and computer storage medium |
CN112363609A (en) * | 2020-10-21 | 2021-02-12 | 海光信息技术股份有限公司 | Method and device for reducing power consumption of network on chip, CPU chip and server |
CN113901748A (en) * | 2021-12-10 | 2022-01-07 | 飞腾信息技术有限公司 | Power consumption evaluation method and device, storage medium and electronic equipment |
-
2022
- 2022-05-20 CN CN202210555952.4A patent/CN114879832B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112363609A (en) * | 2020-10-21 | 2021-02-12 | 海光信息技术股份有限公司 | Method and device for reducing power consumption of network on chip, CPU chip and server |
CN112243060A (en) * | 2020-10-30 | 2021-01-19 | Oppo广东移动通信有限公司 | Power consumption estimation method of processor, mobile terminal and computer storage medium |
CN113901748A (en) * | 2021-12-10 | 2022-01-07 | 飞腾信息技术有限公司 | Power consumption evaluation method and device, storage medium and electronic equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116881090A (en) * | 2023-09-06 | 2023-10-13 | 北京壁仞科技开发有限公司 | Computing device and method for controlling energy consumption of computing core in computing device |
CN116881090B (en) * | 2023-09-06 | 2024-01-26 | 北京壁仞科技开发有限公司 | Computing device and method for controlling energy consumption of computing core in computing device |
Also Published As
Publication number | Publication date |
---|---|
CN114879832B (en) | 2024-12-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TWI773100B (en) | Neural network structure search method and apparatus | |
CN111738419B (en) | Quantification method and device for neural network model | |
US11372594B2 (en) | Method and apparatus for scheduling memory access request, device and storage medium | |
CN114374440B (en) | Quantum channel classical capacity estimation method and device, electronic equipment and medium | |
CN112561079A (en) | Distributed model training apparatus, method and computer program product | |
CN112508768B (en) | Single-operator multi-model pipeline reasoning method, system, electronic equipment and medium | |
CN114879832A (en) | Power consumption control method, device, chip, device and medium for computing device | |
EP2829972B1 (en) | Method and apparatus for allocating stream processing unit | |
CN114742000B (en) | SoC chip verification system, verification method and device based on FPGA cluster | |
CN109412865B (en) | A kind of virtual network resource allocation method, system and electronic device | |
JP7489478B2 (en) | TASK ALLOCATION METHOD AND APPARATUS, ELECTRONIC DEVICE, AND COMPUTER-READABLE MEDIUM | |
CN113360266B (en) | Task processing method and device | |
CN114860341B (en) | Thread configuration method, device, apparatus and storage medium | |
CN117632431A (en) | Scheduling method, device, equipment and storage medium for cloud computing task | |
CN114139605A (en) | Distributed model training method, system, device and storage medium | |
WO2022062937A1 (en) | Task scheduling method and apparatus, and computer system | |
CN118642860B (en) | Multifunctional server based on task self-adaptive matching and application method thereof | |
CN117742974B (en) | Data processing method, device, storage medium, electronic device and system | |
CN114217872B (en) | Application program starting method and device, electronic equipment and storage medium | |
CN115037802B (en) | Request processing method and device, electronic equipment and storage medium | |
CN118170499B (en) | Virtual cloud disk segmentation method and device, electronic equipment and storage medium | |
CN115906982B (en) | Distributed training method, gradient communication device and electronic equipment | |
CN114862037A (en) | Solving method and solving method of power generation cost optimization function | |
CN117477543A (en) | Power distribution system stability evaluation system, method and electronic equipment | |
CN114398316A (en) | File information processing method and system based on multiple eigenvalues |
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 | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: CW District, 4th floor, building 1, No. 10, Shangdi 10th Street, Haidian District, Beijing 100101 Applicant after: Kunlun core (Beijing) Technology Co.,Ltd. Address before: Baidu building, No. 10, Shangdi 10th Street, Haidian District, Beijing 100086 Applicant before: Kunlun core (Beijing) Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |