Chip temperature management method, device, storage medium and electronic device
By obtaining power consumption information on the chip and executing temperature control strategies based on working scenarios, the problem of chip temperature management is solved, achieving effective temperature control and user experience improvement in different scenarios.
Patent Information
- Application Number
- CN202410742661.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2044-06-11
AI Technical Summary
The high-power operation of semiconductor devices within the chip leads to serious heat dissipation problems. How to better manage and control chip temperature has become an important technical problem.
By deploying target devices on the chip, the chip power consumption information is obtained, the temperature control strategy is determined based on the working scenario of the current software running, and temperature management is performed to achieve effective temperature control.
This method can ensure temperature control under different usage scenarios, avoid interference to users, provide a better user experience, and ensure that the chip temperature is within a safe range by dynamically adjusting the power distribution weight and fan control.
Smart Images

Figure CN118313324B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of temperature control, and in particular to a chip temperature management method, device, storage medium and electronic equipment. Background Art
[0002] With the rapid development of semiconductor integrated circuit technology, more and more transistors can be integrated on a single chip, providing a broad space for chip design. As a result, the heat density will become higher and higher within a limited volume, causing the heat dissipation problem of high-power semiconductor devices to become more and more serious. How to better and more intelligently manage and control the temperature of the chip has become an important technical problem that needs to be solved urgently. Summary of the invention
[0003] The object of the present invention is to provide a chip temperature management method, device, storage medium and electronic device to at least partially improve the above-mentioned problem.
[0004] In order to achieve the above purpose, the technical solution adopted by the embodiment of the present invention is as follows:
[0005] In a first aspect, an embodiment of the present invention provides a chip temperature management method, wherein a chip is deployed with N target devices, and the method includes:
[0006] When the chip temperature is greater than or equal to the temperature critical value, the chip power consumption information is obtained;
[0007] Based on the software currently running on the chip, determine whether it is in a target working scene, wherein the target working scene is a first working scene or a second working scene, the first working scene indicates that the occupancy rate of at least one of the target devices is greater than a first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one of the target devices is greater than the first occupancy rate threshold, and the low noise requirement is not set;
[0008] A target temperature control strategy is executed based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scenario or the temperature control strategy corresponding to the second working scenario.
[0009] In a second aspect, an embodiment of the present invention provides a chip temperature management device, wherein a chip is deployed with N target devices, and the chip temperature management device comprises:
[0010] A first processing unit, configured to obtain chip power consumption information when the chip temperature is greater than or equal to a temperature critical value;
[0011] The first processing unit is further used to determine whether it is in a target working scene based on the software currently running on the chip, wherein the target working scene is a first working scene or a second working scene, the first working scene indicates that the occupancy rate of at least one of the target devices is greater than a first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one of the target devices is greater than the first occupancy rate threshold, and the low noise requirement is not set;
[0012] The second processing unit is used to execute a target temperature control strategy based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scenario or the temperature control strategy corresponding to the second working scenario.
[0013] In a third aspect, an embodiment of the present invention provides a storage medium having a computer program stored thereon, and the computer program implements the above method when executed by a processor.
[0014] In a fourth aspect, an embodiment of the present invention provides an electronic device, comprising: a processor and a memory, wherein the memory is used to store one or more programs; when the one or more programs are executed by the processor, the above method is implemented.
[0015] Compared with the prior art, the embodiment of the present invention provides a chip temperature management method, device, storage medium and electronic device, wherein the chip is deployed with N target devices, and the method includes: when the chip temperature is greater than or equal to the temperature critical value, obtaining the chip power consumption information; based on the software currently running on the chip, determining whether it is in the target working scene, wherein the target working scene is the first working scene or the second working scene, the first working scene indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold, and no low noise requirement is set; based on the chip power consumption information, executing the target temperature control strategy to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scene or the temperature control strategy corresponding to the second working scene. This ensures that the temperature control method meets the user's current use environment, avoids interference with the user's use, and ensures that the user gets a better user experience in different scenarios.
[0016] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0018] Figure 1 A schematic diagram of the structure of an electronic device provided by the present invention;
[0019] Figure 2 One of the flow charts of the chip temperature management method provided by the present invention;
[0020] Figure 3 The second flowchart of the chip temperature management method provided by the present invention;
[0021] Figure 4 The third flow chart of the chip temperature management method provided by the present invention;
[0022] Figure 5 A unit schematic diagram of a chip temperature management device provided by the present invention.
[0023] In the figure: 10 - processor; 11 - memory; 12 - bus; 13 - communication interface; 501 - first processing unit; 502 - second processing unit. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings here can be arranged and designed in various different configurations.
[0025] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the invention claimed for protection, but merely represents selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0027] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0028] In the description of the present invention, it should be noted that the terms "upper", "lower", "inside", "outside", etc. indicate directions or positional relationships based on the directions or positional relationships shown in the accompanying drawings, or are directions or positional relationships in which the product of the invention is usually placed when in use. They are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as a limitation on the present invention.
[0029] In the description of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "disposed" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be the internal communication of two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0030] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0031] The embodiment of the present invention provides an electronic device, which may be a mobile phone device, a computer device, a server device, a television device, etc. Figure 1 , a schematic diagram of the structure of an electronic device. The electronic device includes a processor 10, a memory 11, and a bus 12. The processor 10 and the memory 11 are connected via the bus 12, and the processor 10 is used to execute an executable module stored in the memory 11, such as a computer program.
[0032] The processor 10 may be an integrated circuit chip having the ability to process signals. In the implementation process, each step of the chip temperature management method may be completed by an integrated logic circuit of hardware in the processor 10 or by instructions in the form of software. The above-mentioned processor 10 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gates or transistor logic devices, or discrete hardware components.
[0033] The memory 11 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk memory.
[0034] The bus 12 may be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. Figure 1 Although only one bidirectional arrow is used in the figure, it does not mean that there is only one bus 12 or only one type of bus 12 .
[0035] The memory 11 is used to store programs, such as programs corresponding to the chip temperature management device. The chip temperature management device includes at least one software function module that can be stored in the memory 11 in the form of software or firmware or fixed in the operating system (OS) of the electronic device. After receiving the execution instruction, the processor 10 executes the program to implement the chip temperature management method.
[0036] Possibly, the electronic device provided by the embodiment of the present invention further includes a communication interface 13. The communication interface 13 is connected to the processor 10 via a bus.
[0037] It should be noted that the electronic device includes at least one chip, and the chip is deployed with N target devices. The target devices (also called IP) can be but are not limited to a central processing unit (CPU), a graphics processing unit (GPU) and a neural network processor (NPU). Among them, the CPU can also be divided into large cores and small cores, N≥2.
[0038] It should be understood that Figure 1 The structure shown is only a schematic diagram of a portion of the electronic device. The electronic device may also include Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown. Figure 1 Each component shown in the figure can be implemented by hardware, software or a combination thereof.
[0039] A chip temperature management method provided by an embodiment of the present invention can be applied to, but not limited to, Figure 1 For detailed procedures, please refer to the electronic equipment shown in Figure 2 , Chip temperature management methods: S100, S200 and S300, are described in detail as follows.
[0040] S100, when the chip temperature is greater than or equal to the temperature critical value, obtain chip power consumption information.
[0041] The chip temperature is calculated as:
[0042]
[0043] in, Indicates the chip temperature, represents the temperature impact weight of the Xth target device, Indicates the temperature of the Xth target device.
[0044] The chip is pre-deployed with a temperature acquisition module, which can collect the temperature information of each target device in the thermal zone of the chip, thereby obtaining Then, through temperature fitting, the chip temperature is obtained. .
[0045] When the chip temperature is greater than or equal to the temperature critical value, it means that the chip temperature is too high and needs to be adjusted. The chip power consumption information is used as reference data for chip temperature management in the present invention, and the chip power consumption information needs to be obtained when the chip temperature is greater than or equal to the temperature critical value.
[0046] The chip power consumption information includes the chip power consumption corresponding to the chip and the current power consumption value of each target device. The chip power consumption information is calculated as follows:
[0047]
[0048] in, Indicates the current power consumption value of the Xth target device. Indicates the chip power consumption corresponding to the chip, Indicates the power consumption allocation weight of the Xth target device before modification. Indicates the current dynamic power consumption value of the Xth target device. Indicates the current static power consumption value of the Xth target device.
[0049] It should be noted that the Xth target device can be any one of a central processing unit, a graphics processing unit, and a neural network processor.
[0050] S200, based on the software currently running on the chip, determine whether it is in the target working scene. If yes, execute S300, if not, execute other steps.
[0051] The target working scenario is the first working scenario or the second working scenario. The first working scenario indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold and a low noise requirement is set. The second working scenario indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold and no low noise requirement is set. The low noise requirement means that the fan noise corresponding to the working scenario is required to be less than (or as less as possible than) the second noise threshold. It can be understood that, under the premise that the cooling purpose can be achieved without using the fan, the fan should be used as little as possible. When the cooling purpose cannot be achieved without using the fan, this requirement can be broken and the fan can be used, and the fan noise can be greater than or equal to the second noise threshold.
[0052] When the target working scene is not in progress, the chip temperature can be adjusted to be below the temperature threshold by executing other management methods. When the target working scene is in progress, the corresponding target temperature control strategy needs to be executed to manage the temperature of the chip, that is, execute S300.
[0053] S300, executing a target temperature control strategy based on chip power consumption information to perform temperature management on the chip.
[0054] Among them, the target temperature control strategy is the temperature control strategy corresponding to the first working scene or the temperature control strategy corresponding to the second working scene.
[0055] When in the target working scenario, the target temperature control strategy is executed based on the chip power consumption information to manage the temperature of the chip. This ensures that the temperature control method meets the user's current usage environment, avoids interference with the user's use, and ensures that the user gets a better user experience in different scenarios.
[0056] For example, when a user is using software with a conference function, he or she is in the first working scene. At this time, by executing the temperature control strategy corresponding to the first working scene, the low noise requirements can be met as much as possible, thereby avoiding fan noise from affecting the clarity of the meeting, avoiding interference with the user's use, and ensuring that the user gets a better user experience in different scenarios.
[0057] In summary, an embodiment of the present invention provides a chip temperature management method, wherein the chip is deployed with N target devices, and the method includes: when the chip temperature is greater than or equal to the temperature critical value, obtaining the chip power consumption information; based on the software currently running on the chip, determining whether it is in the target working scene, wherein the target working scene is the first working scene or the second working scene, the first working scene indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one target device is greater than the first occupancy rate threshold, and no low noise requirement is set; executing the target temperature control strategy based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scene or the temperature control strategy corresponding to the second working scene. This ensures that the temperature control method meets the user's current use environment, avoids interference with the user's use, and ensures that the user gets a better user experience in different scenarios.
[0058] about Figure 2 The content of S300 in the present invention also provides an optional implementation method, please refer to Figure 3 When in the first working scenario (which may be high performance and low noise), S300, the steps of executing the target temperature control strategy based on the chip power consumption information include: S301, S302, S303, S304, S305, S306 and S307, which are specifically described as follows.
[0059] S301, modifying the power consumption allocation weight of the target device.
[0060] Specifically, the power consumption allocation weight of the first category of devices is increased, and the power consumption allocation weight of the second category of devices is reduced. The first category of devices are target devices with the highest occupancy rate, and the second category of devices are target devices other than the first category of devices. The sum of the power consumption allocation weights of all target devices is equal to 100%.
[0061] When the chip temperature is greater than or equal to the temperature critical value, the power consumption that can be allocated is the power consumption value corresponding to the temperature critical value, that is, the target power consumption value mentioned below. When the target power consumption value is constant, the power consumption allocation weight of the first type of device is increased so that the first type of device can maintain a high performance state. For example, the CPU has the highest load, that is, the target device with the highest occupancy rate is the CPU. By increasing the power consumption allocation weight of the CPU, the allocable power consumption of the CPU is increased (that is, the power consumption allocation value corresponding to the CPU mentioned below), so that the CPU can maintain a high performance state.
[0062] S302: Determine a power consumption allocation value corresponding to each target device based on the power consumption allocation weight, chip power consumption information, and target power consumption value.
[0063] Optionally, the chip power consumption information includes the chip power consumption corresponding to the chip and the current power consumption value of each target device. The power consumption allocation value corresponding to the target device is calculated as follows:
[0064]
[0065] in, Indicates the power consumption allocation value corresponding to the Xth target device. Indicates the power consumption allocation weight of the Xth target device after modification. Indicates the current power consumption value of the Xth target device. Indicates the chip power consumption corresponding to the chip, Indicates the target power consumption value.
[0066] By modifying the power consumption allocation weight of the target device, the purpose of dynamically adjusting the power consumption allocation value corresponding to the target device is achieved. When the target power consumption value is constant, the power consumption allocation weight of the first type of device is increased, and the power consumption allocation value corresponding to the first type of device is increased, so that the first type of device can maintain a high performance state.
[0067] S303, controlling the chip based on the power consumption allocation value corresponding to each target device.
[0068] It should be noted that when the chip is controlled based on the modified power consumption allocation values corresponding to the various target devices, the temperature of the chip may decrease, and the chip temperature needs to be continuously observed.
[0069] S304, obtaining the current chip temperature.
[0070] The current chip temperature can be obtained by using the chip temperature formula in the previous text, and the data in the formula can be substituted into the data at the current moment.
[0071] S305, determine whether the current chip temperature is less than the temperature critical value. If yes, then end; if no, then execute S306.
[0072] If the current chip temperature is less than the temperature critical value, it means that the chip temperature has been effectively controlled and the process can be ended. Otherwise, adjustment is required and S306 is executed.
[0073] S306, determine whether there is a third type of device. If yes, execute S307; if no, repeat S301.
[0074] Among them, the third category of devices are target devices whose power consumption allocation values are within the corresponding critical range.
[0075] Different target devices may have different corresponding critical ranges. When S301 is repeatedly executed to modify the power consumption allocation weight of the target device, the power consumption allocation value of the second type of device continues to decrease and eventually reaches the critical range, that is, the performance of the target device reaches the critical value.
[0076] When the power consumption allocation value of any target device is within the corresponding critical range, it indicates that its power consumption allocation weight cannot be further reduced and it is necessary to cool down the device in other ways, including executing S307 to control the cooling fan of the chip to work.
[0077] If there is no third-category device, the power consumption allocation weight of the target device is repeatedly modified until the current chip temperature is less than the temperature critical value, or there is a third-category device.
[0078] S307, the cooling fan of the control chip starts to work.
[0079] Optionally, S307, the step of controlling the chip cooling fan to operate, includes: S307A, S307B, S307C, S307D and S307E, which are specifically described as follows.
[0080] S307A, controlling the cooling fan of the chip to operate according to the target speed, wherein the initial target speed is a preset initial speed.
[0081] S307B, obtain the current chip temperature.
[0082] S307C, determine whether the current chip temperature is less than the temperature critical value. If yes, then end; if no, then execute S307D.
[0083] S307D, determine whether the target speed is less than the maximum speed set for the cooling fan. If not, issue an alarm to inform the user that the device is abnormal; if so, execute S307E.
[0084] S307E, increase the target speed.
[0085] Optionally, let the target speed=target speed+S, where S represents a preset speed increase.
[0086] After S307E, S307A is repeatedly executed to control the chip cooling fan to work according to the target speed until the current chip temperature is less than the temperature critical value, or the target speed is equal to the maximum speed.
[0087] In the second working scenario, the fan can be used for cooling first to ensure the performance of the device and meet the performance requirements of the user. Figure 2 The content of S300 in the present invention also provides an optional implementation method, please refer to Figure 4 , when in the second working scenario (which may be high performance and high noise), S300, the steps of executing the target temperature control strategy based on the chip power consumption information include: S311, S312, S313, S314, S315, S316, S317 and S318, which are specifically described as follows.
[0088] S311, controlling the cooling fan of the chip to operate according to the target speed.
[0089] The initial target speed is a preset initial speed.
[0090] S312, obtaining the current chip temperature.
[0091] S313, determine whether the current chip temperature is less than the temperature critical value. If yes, then end; if no, then execute S314.
[0092] S3114, determine whether the target speed is less than the maximum speed set for the cooling fan. If yes, execute S315, if no, execute S316.
[0093] S315, increasing the target speed.
[0094] The target speed can be increased by a preset amount based on the current speed.
[0095] After S315, S311 is repeatedly executed to repeatedly control the chip cooling fan to work according to the target speed until the current chip temperature is less than the temperature critical value, or the target speed is equal to the maximum speed.
[0096] It should be noted that the speed of the fan is increased to be equal to the maximum speed at most.
[0097] S316, modifying the power consumption allocation weight of the target device.
[0098] Specifically, the power consumption allocation weight of the first category of devices is increased, and the power consumption allocation weight of the second category of devices is decreased. The first category of devices are target devices with the highest occupancy rate, and the second category of devices are target devices other than the first category of devices.
[0099] S317, determining the power consumption allocation value corresponding to each target device based on the power consumption allocation weight, the chip power consumption information and the target power consumption value.
[0100] Optionally, the chip power consumption information includes the chip power consumption corresponding to the chip and the current power consumption value of each target device. The power consumption allocation value corresponding to the target device is calculated as follows:
[0101]
[0102] in, Indicates the power consumption allocation value corresponding to the Xth target device. Indicates the power consumption allocation weight of the Xth target device after modification. Indicates the current power consumption value of the Xth target device. Indicates the chip power consumption corresponding to the chip, Indicates the target power consumption value.
[0103] S318, controlling the chip based on the power consumption allocation value corresponding to each target device.
[0104] After S318, S319 can be executed to obtain the current chip temperature and determine whether the current chip temperature is less than the temperature critical value. If so, the process ends; if not, S316 is repeatedly executed until the current chip temperature is less than the temperature critical value, or there is a third type of device, and an alarm is issued to prompt the user that the device is abnormal.
[0105] exist Figure 2 On the basis of the content in S200, the embodiment of the present invention also provides an optional implementation method, please refer to the following, S200, based on the software currently running on the chip, determines whether it is in the target working scenario, including: S201 and S202, which are specifically described as follows.
[0106] S201, inputting the identification information of the software currently running on the chip into a pre-trained network model, and the network model outputs the current working scenario.
[0107] The network model may be any one of an AI model, a neural network model, and a deep learning model. The network model may be completed through online training and offline training.
[0108] For example, the current working scene determined by the identification information of the currently running software can be: a game scene, a video playback scene, a web browsing scene, a text editing scene, a chat scene, and a downloading scene, and can also be a meeting scene, a video communication scene, a video editing scene, and the like.
[0109] S202, determining whether the current working scene is a target working scene.
[0110] After identifying the current working scene, it can be determined whether the current working scene belongs to the first working scene or the second working scene by looking up a table. For example, the meeting scene, video communication scene, and video editing scene belong to the first working scene, which require high performance and low noise; the game scene, video playback scene, web browsing scene, text editing scene, chat scene, and downloading scene belong to the second working scene, which require high performance and high noise.
[0111] In an optional implementation, the current working scenario can be determined by directly querying the relationship table based on the identification information of the software currently running on the chip. The relationship table includes a mapping relationship between the identification information of the software and the working scenario.
[0112] See also Figure 5 , Figure 5 A chip temperature management device is provided in an embodiment of the present invention. Optionally, the chip temperature management device is applied to the electronic device described above.
[0113] The chip temperature management device includes: a first processing unit 501 and a second processing unit 502 .
[0114] The first processing unit 501 is used to obtain chip power consumption information when the chip temperature is greater than or equal to the temperature critical value;
[0115] The first processing unit 501 is further used to determine whether it is in a target working scene based on the software currently running on the chip, wherein the target working scene is a first working scene or a second working scene, the first working scene indicates that the occupancy rate of at least one of the target devices is greater than a first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one of the target devices is greater than the first occupancy rate threshold, and the low noise requirement is not set;
[0116] The second processing unit 502 is used to execute a target temperature control strategy based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scenario or the temperature control strategy corresponding to the second working scenario.
[0117] It should be noted that the chip temperature management device provided in this embodiment can execute the method flow shown in the above method flow embodiment to achieve the corresponding technical effect. For the sake of brief description, for parts not mentioned in this embodiment, please refer to the corresponding content in the above embodiment.
[0118] The embodiment of the present invention further provides a storage medium, which stores computer instructions and programs, which, when read and run, execute the chip temperature management method of the above embodiment. The storage medium may include a memory, a flash memory, a register, or a combination thereof.
[0119] An electronic device is provided below, which may be a mobile phone device, a computer device, a server device, a television device, etc. Figure 1 As shown, the above chip temperature management method can be implemented; specifically, the electronic device includes: a processor 10, a memory 11, and a bus 12. The processor 10 can be a CPU. The memory 11 is used to store one or more programs. When the one or more programs are executed by the processor 10, the chip temperature management method of the above embodiment is executed.
[0120] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
[0121] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the invention is defined by the appended claims rather than the foregoing description, and it is intended that all variations falling within the meaning and scope of the equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.
Claims
1. A chip temperature management method, characterized in that: The chip is deployed with N target devices, and the method includes: When the chip temperature is greater than or equal to the temperature critical value, the chip power consumption information is obtained; Based on the software currently running on the chip, determine whether it is in a target working scene, wherein the target working scene is a first working scene or a second working scene, the first working scene indicates that the occupancy rate of at least one of the target devices is greater than a first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one of the target devices is greater than the first occupancy rate threshold, and the low noise requirement is not set; Executing a target temperature control strategy based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scenario or the temperature control strategy corresponding to the second working scenario; When in the first working scenario, the step of executing the target temperature control strategy based on the chip power consumption information includes: modifying the power consumption allocation weight of the target device, increasing the power consumption allocation weight of the first type of device, and reducing the power consumption allocation weight of the second type of device, the first type of device is the target device with the highest occupancy rate, and the second type of device is the target device other than the first type of device; determining the power consumption allocation value corresponding to each of the target devices based on the power consumption allocation weight, the chip power consumption information and the target power consumption value; controlling the chip based on the power consumption allocation value corresponding to each of the target devices; obtaining the current chip temperature; determining whether the current chip temperature is less than the temperature critical value; if not, determining whether there is a third type of device, wherein the third type of device is a target device whose power consumption allocation value is within the corresponding critical range; if there is no third type of device, repeatedly modifying the power consumption allocation weight of the target device until the current chip temperature is less than the temperature critical value, or there is a third type of device; if there is a third type of device, controlling the cooling fan of the chip to work; When in the second working scenario, the step of executing the target temperature control strategy based on the chip power consumption information includes: controlling the cooling fan of the chip to work according to the target speed, and the initial target speed is a preset initial speed; obtaining the current chip temperature; determining whether the current chip temperature is less than the temperature critical value; if not, determining whether the target speed is less than the maximum speed set for the cooling fan; if less than the maximum speed, increasing the target speed, and repeatedly controlling the cooling fan of the chip to work according to the target speed until the current chip temperature is less than the temperature critical value, or the target speed is equal to the maximum speed; if equal, modifying the power consumption allocation weight of the target device, increasing the power consumption allocation weight of the first type of device, and reducing the power consumption allocation weight of the second type of device, the first type of device is the target device with the highest occupancy rate, and the second type of device is the target device other than the first type of device; determining the power consumption allocation value corresponding to each of the target devices based on the power consumption allocation weight, the chip power consumption information and the target power consumption value; and controlling the chip based on the power consumption allocation value corresponding to each of the target devices.
2. The chip temperature management method according to claim 1, characterized in that: The chip power consumption information includes the chip power consumption corresponding to the chip and the current power consumption value of each target device. The power consumption allocation value corresponding to the target device is calculated as follows: in, Indicates the power consumption allocation value corresponding to the Xth target device. Indicates the power consumption allocation weight of the Xth target device after modification. Indicates the current power consumption value of the Xth target device. Indicates the chip power consumption corresponding to the chip, Indicates the target power consumption value.
3. The chip temperature management method according to claim 1, characterized in that: The chip power consumption information includes the chip power consumption corresponding to the chip and the current power consumption value of each target device. The chip power consumption information is calculated as follows: in, Indicates the current power consumption value of the Xth target device. Indicates the chip power consumption corresponding to the chip, Indicates the power consumption allocation weight of the Xth target device before modification. Indicates the current dynamic power consumption value of the Xth target device. Indicates the current static power consumption value of the Xth target device.
4. The chip temperature management method according to claim 1, characterized in that: The chip temperature is calculated as: in, represents the chip temperature, represents the temperature impact weight of the Xth target device, Indicates the temperature of the Xth target device.
5. The chip temperature management method according to claim 1, characterized in that: The step of determining whether the chip is in a target working scenario based on the software currently running on the chip includes: Inputting identification information of the software currently running on the chip into a pre-trained network model, and the network model outputs the current working scenario; Determine whether the current working scene is the target working scene.
6. A chip temperature management device, characterized in that: The chip is deployed with N target devices, and the chip temperature management device includes: A first processing unit, configured to obtain chip power consumption information when the chip temperature is greater than or equal to a temperature critical value; The first processing unit is further used to determine whether it is in a target working scene based on the software currently running on the chip, wherein the target working scene is a first working scene or a second working scene, the first working scene indicates that the occupancy rate of at least one of the target devices is greater than a first occupancy rate threshold, and a low noise requirement is set, and the second working scene indicates that the occupancy rate of at least one of the target devices is greater than the first occupancy rate threshold, and the low noise requirement is not set; a second processing unit, configured to execute a target temperature control strategy based on the chip power consumption information to perform temperature management on the chip, wherein the target temperature control strategy is the temperature control strategy corresponding to the first working scenario or the temperature control strategy corresponding to the second working scenario; When in the first working scenario, the target temperature control strategy is executed based on the chip power consumption information, including: modifying the power consumption allocation weight of the target device, increasing the power consumption allocation weight of the first type of device, and reducing the power consumption allocation weight of the second type of device, the first type of device is the target device with the highest occupancy rate, and the second type of device is the target device other than the first type of device; determining the power consumption allocation value corresponding to each of the target devices based on the power consumption allocation weight, the chip power consumption information and the target power consumption value; controlling the chip based on the power consumption allocation value corresponding to each of the target devices; obtaining the current chip temperature; determining whether the current chip temperature is less than the temperature critical value; if not, determining whether there is a third type of device, wherein the third type of device is a target device whose power consumption allocation value is within the corresponding critical range; if there is no third type of device, repeatedly modifying the power consumption allocation weight of the target device until the current chip temperature is less than the temperature critical value, or there is a third type of device; if there is a third type of device, controlling the cooling fan of the chip to work; When in the second working scenario, the target temperature control strategy is executed based on the chip power consumption information, including: controlling the cooling fan of the chip to work according to the target speed, the initial target speed is a preset initial speed; obtaining the current chip temperature; determining whether the current chip temperature is less than the temperature critical value; if not, determining whether the target speed is less than the maximum speed set for the cooling fan; if less than the maximum speed, increasing the target speed, and repeatedly controlling the cooling fan of the chip to work according to the target speed until the current chip temperature is less than the temperature critical value, or the target speed is equal to the maximum speed; if equal, modifying the power consumption allocation weight of the target device, increasing the power consumption allocation weight of the first type of device, and reducing the power consumption allocation weight of the second type of device, the first type of device is the target device with the highest occupancy rate, and the second type of device is the target device other than the first type of device; determining the power consumption allocation value corresponding to each of the target devices based on the power consumption allocation weight, the chip power consumption information and the target power consumption value; controlling the chip based on the power consumption allocation value corresponding to each of the target devices.
7. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 5 is implemented.
8. An electronic device, characterized in that: include: A processor and a memory, the memory being used to store one or more programs; When the one or more programs are executed by the processor, the method according to any one of claims 1 to 5 is implemented.
