Power consumption evaluation method and device
The GPU simulation data is processed through the trained power consumption evaluation model, and the power consumption difference parameters are used to fit the target power consumption curve, which solves the problem of balancing the speed and accuracy of GPU chip power consumption evaluation and achieves fast and accurate power consumption evaluation.
Patent Information
- Application Number
- CN202410835759.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-25
- Publication Date
- 2024-09-20
AI Technical Summary
The power consumption evaluation of GPU chips has problems such as large design, difficulty in balancing evaluation speed and accuracy, long scene time window and large power consumption fluctuations. Manual collection and summary of evaluation results are cumbersome and time-consuming.
The trained power consumption evaluation model is used to process the simulation data based on the power consumption module. The target power consumption curve is obtained through power consumption difference parameters and simulation curve fitting, which quickly improves the evaluation speed and accuracy.
It achieves fast and accurate GPU power consumption assessment, simplifies the manual collection and aggregation process, and improves assessment efficiency and accuracy.
Smart Images

Figure CN118672836A
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a power consumption evaluation method and device. Background Art
[0002] By evaluating the power consumption of each power consumption module of an electronic device, we can understand the energy efficiency level of the electronic device or the power consumption module, which is particularly important for optimizing the design of the electronic device or the power consumption module of the electronic device and improving the energy efficiency. For example, the graphics processing unit (GPU) has outstanding performance in processing image and graphics-related computing tasks. The power consumption evaluation of the GPU can provide a reference for the energy efficiency optimization of the GPU. Usually, the power consumption evaluation tool PowerReplay or PrimePower is used to evaluate the power consumption of the GPU. However, the calculation time of using PowerReplay to evaluate the GPU is relatively long, and the accuracy of using PrimePower to evaluate the power consumption of the GPU is relatively low. Summary of the invention
[0003] The technical solution of this application is implemented as follows:
[0004] The present invention provides a method for evaluating power consumption, the method comprising:
[0005] Obtain power consumption simulation data of a power consumption module whose power consumption is to be evaluated;
[0006] Using the trained power consumption evaluation model, the power consumption simulation data is processed to obtain the target power consumption curve;
[0007] Among them, the processing at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve fitted by power consumption simulation data; the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value.
[0008] The present application provides a power consumption evaluation device, including:
[0009] A first acquisition module, used for acquiring power consumption simulation data of a power consumption module whose power consumption is to be evaluated;
[0010] A first processing module, configured to process the power consumption simulation data using a trained power consumption evaluation model to obtain a target power consumption curve;
[0011] Among them, the processing at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve fitted by the power consumption simulation data; the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value.
[0012] The present application provides a power consumption evaluation device, including:
[0013] A memory for storing executable power consumption evaluation instructions;
[0014] The processor is used to implement the power consumption evaluation method provided in the embodiment of the present application when executing the executable power consumption evaluation instruction stored in the memory.
[0015] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. The computer-executable instructions are configured to execute the steps of the above-mentioned power consumption evaluation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 A schematic diagram of a flow chart of a power consumption evaluation method provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of the structure of a GPU power consumption evaluation system provided in an embodiment of the present application;
[0018] Figure 3 A flowchart of a GPU power consumption evaluation method provided in an embodiment of the present application;
[0019] Figure 4 A schematic diagram of GPU data sampling and model training provided in an embodiment of the present application;
[0020] Figure 5 A schematic diagram of the structure of a power consumption evaluation device provided in an embodiment of the present application;
[0021] Figure 6 A schematic diagram of the composition structure of a power consumption evaluation device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0022] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0023] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0024] In the following description, reference is made to “some embodiments\other embodiments”, which describe a subset of all possible embodiments, but it can be understood that “some embodiments\other embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0025] In the following description, the terms "first\second\" involved are merely used to distinguish similar objects and do not represent a specific ordering of the objects. It can be understood that "first\second" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described herein can be implemented in an order other than that illustrated or described herein.
[0026] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0027] At present, the power consumption evaluation of GPU chips mainly faces the following problems: the GPU chip design is huge, and the GPU needs to be split into multiple parts for evaluation separately, while taking into account the evaluation speed and accuracy; GPU application scenarios are numerous, the time window for the scenarios to be evaluated is long, and the power consumption fluctuations in each scenario are different; the completeness of GPU power consumption evaluation requires the involvement of multiple power, temperature and voltage; the power consumption evaluation has many parts and results, and manually collecting and summarizing the evaluation results of each part is often cumbersome and time-consuming.
[0028] Based on the problems existing in the related art, the embodiment of the present application provides a power consumption evaluation method, such as Figure 1 FIG. 1 is a flow chart of a power consumption evaluation method provided in an embodiment of the present application, and the method comprises the following steps:
[0029] S101: Obtain power consumption simulation data of a power consumption module whose power consumption is to be evaluated.
[0030] It should be noted that the power consumption module to be evaluated can be any module that needs to be evaluated for power consumption, for example, it can be a processor, memory, sensor, etc. of an electronic device, wherein the processor can be a central processing unit (CPU), a neural network processor (NPU), a GPU, etc., the memory includes a read-only memory, a random access memory, etc., and the sensor includes a displacement sensor, a gravity sensor, etc.
[0031] In some embodiments, the power consumption simulation data is power consumption data determined by a hardware simulation method. The hardware simulation method may be to simulate the working state of the power consumption module based on the task scenario, working parameters, hardware design circuit of the power consumption module and other information of the power consumption module during the design of the power consumption module using a software tool (such as a first power consumption determination model), and calculate the simulated power consumption data based on the analog signal generated by the power consumption module in the working state. The first power consumption determination model may be a power consumption calculation tool such as PrimePower. In the process of calculating the power consumption, the first power consumption determination model may not consider the delay time of the analog signal change generated by the power consumption module, so the rate of power consumption evaluation is faster.
[0032] In some embodiments, the power consumption simulation data may include power consumption simulation values (power consumption) corresponding to different working parameters of the power consumption module in the task scenario (or different task scenarios) determined by the first power consumption model. The task scenario may include the type of task to be processed or completed. The task type may be divided according to the number of tasks or whether the task is onerous or not. The working parameters may include ambient temperature, working voltage, and power consumption mode. The power consumption mode may include low power consumption mode, high power consumption mode, etc. Among them, the task scenario, working parameters, etc. may be simulated in a hardware simulation environment.
[0033] In some embodiments, a task scenario, an ambient temperature, an operating voltage, and a power consumption mode correspond to a power consumption simulation value under the task scenario; the same task scenario may include multiple power consumption simulation values corresponding to multiple ambient temperatures, multiple operating voltages, and multiple power consumption modes, and the multiple power consumption simulation values constitute all the power consumption simulation data under the task scenario.
[0034] Exemplarily, if the power consumption module is a GPU, the corresponding power consumption simulation data may be the power consumption of the GPU at different operating voltages and different ambient temperatures when processing a certain type of graphics task. The graphics task may be different game types, for example, generating a complete scene screen of game A, or different tasks in the same game, for example, rendering the background of the screen during the running of game B. The operating voltage may be a plurality of optional operating voltages of the GPU, and the ambient temperature may be the temperature of the environment in which the GPU is located during the running process.
[0035] In some embodiments, the power consumption simulation data may be determined based on data for evaluating the power consumption of the power consumption module, and the data for evaluating the power consumption of the power consumption module may include a simulation signal generated by the power consumption module obtained by simulating the working state of the power consumption module through a first power consumption determination model.
[0036] In other embodiments, when the power consumption module of the current functional version and the power consumption module of the previous version (or previous versions) corresponding to the power consumption module of the current version have structures that are close or similar, the simulated power consumption data of the power consumption module of the current version may also include the power consumption simulation data of the power consumption module of the previous version (or previous versions), and the power consumption simulation data of the power consumption module of the previous version (or previous versions) may be the power consumption data calculated according to the analog signal generated by the power consumption module of the previous version (or previous versions) during the process of hardware simulation of the power consumption module of the previous version (or previous versions).
[0037] S102: Using the trained power consumption evaluation model, the power consumption simulation data is processed to obtain a target power consumption curve.
[0038] In some embodiments, processing the power consumption simulation data at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve obtained by fitting the power consumption simulation data.
[0039] It should be noted that the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value. The target power consumption evaluation value can be the power consumption evaluation target of the power consumption module. The closer the power consumption evaluation value is to the target power consumption evaluation value, the more accurate the power consumption evaluation is. Generally, the target power consumption evaluation value can be determined according to the actual power consumption value obtained in the actual test process of the structure of the power consumption module corresponding to the product of the previous version (or previous versions). The actual power consumption value can be calculated by the second power consumption determination model. The structure of the power consumption module of the previous version (or previous versions) and the power consumption module of the current version is close or similar. Therefore, the target power consumption evaluation value is close to the actual power consumption value of the power consumption module of the current version. The second power consumption determination model can be a power consumption calculation model such as PowerReply. The second power consumption determination model and the first power consumption determination model calculate power consumption in different ways. In the process of power consumption calculation, the second power consumption model takes into account the delay time of the test signal change generated by the power consumption module of the previous version (or previous versions) during the actual test process. Therefore, the power consumption evaluation value obtained by taking the target power consumption evaluation value as the target is more accurate. The power consumption difference parameter can be the absolute value of the difference between the target power consumption evaluation value and the power consumption simulation value.
[0040] In some embodiments, the power consumption simulation data includes multiple data, and the power consumption simulation curve can be a curve fitted by analyzing the relationship between each power consumption simulation data and the corresponding ambient temperature and operating voltage by a trained power consumption evaluation model.
[0041] In some embodiments, the power consumption value of the power consumption module under different operating parameters can be obtained through the target power consumption curve. The power consumption value can be the real or close to the real power consumption value corresponding to the power consumption module finally determined. The power consumption value can be regarded as determined after correction, transformation and other processing based on the power consumption simulation data.
[0042] In some embodiments, the power consumption difference parameter may be determined during the training of the power consumption evaluation model. During the training of the power consumption evaluation model, the power consumption difference parameters determined for different task scenarios are different. After obtaining the power consumption simulation curve fitted by the power consumption simulation data, the corresponding power consumption difference parameter may be obtained according to the power consumption simulation curve or the task scenario corresponding to the power consumption simulation data. Then, according to the power consumption difference parameter, each power consumption value on the power consumption simulation curve may be adjusted to determine the corresponding target power consumption curve.
[0043] In an embodiment of the present application, power consumption simulation data of a power consumption module to be evaluated is obtained; and the power consumption simulation data is processed using a trained power consumption evaluation model to obtain a target power consumption curve. In this way, since the power consumption difference parameter represents the difference between the target power consumption evaluation value and the power consumption simulation value, the target power consumption evaluation value is close to the actual power consumption value of the power consumption module. Therefore, based directly on the power consumption difference parameter corresponding to the power consumption module and the power consumption simulation curve obtained by fitting the power consumption simulation data, a target power consumption curve close to the actual power consumption value can be quickly determined, thereby improving the speed and accuracy of power consumption evaluation.
[0044] In some embodiments of the present application, the power consumption difference parameter includes a set of power consumption differences corresponding to different operating parameters, that is, the power consumption difference parameter may include multiple power consumption differences. Based on this, "obtaining a target power consumption curve based on the power consumption difference parameter corresponding to the power consumption module and the power consumption simulation curve fitted by the power consumption simulation data" can be achieved through the following step S201.
[0045] S201 . Based on power consumption differences corresponding to different operating parameters, adjust power consumption simulation values under corresponding operating parameters on a power consumption simulation curve to obtain a target power consumption curve.
[0046] In some embodiments, each working parameter corresponds to a power consumption difference, and each power consumption difference may be different or partially the same. Based on the power consumption differences corresponding to different working parameters, the power consumption simulation value under the corresponding working parameter on the power consumption simulation curve can be adjusted to obtain an adjusted power consumption value, and based on the adjusted power consumption value and the corresponding working parameter, a target power consumption curve is obtained.
[0047] Exemplarily, if the working parameters include 100 groups, the corresponding power consumption difference values include 100. In the process of adjusting the power consumption simulation values on the power consumption simulation curve, the power consumption difference values corresponding to the 100 working parameters can be determined first. Then, the power consumption simulation values corresponding to the first group of working parameters on the power consumption simulation curve are increased (or decreased) by the power consumption difference values corresponding to the first group of working parameters, and the power consumption simulation values corresponding to the second group of working parameters on the power consumption simulation curve are increased (or decreased) by the power consumption difference values corresponding to the second group of working parameters, and ..., the power consumption simulation values corresponding to the 100th group of working parameters on the power consumption simulation curve are increased (or decreased) by the power consumption difference values corresponding to the 100th group of working parameters, thereby obtaining 100 adjusted power consumption simulation values.
[0048] It can be understood that by adjusting the power consumption simulation values under the corresponding working parameters on the power consumption simulation curve through the power consumption differences corresponding to different working parameters, the target power consumption values under different working parameters can be quickly obtained, and the corresponding target power consumption curve can be obtained based on each target power consumption value and the corresponding working parameters.
[0049] In other embodiments of the present application, the power consumption difference parameter may be one, and the power consumption difference parameter may be the arithmetic mean, weighted mean, etc. of the power consumption differences corresponding to different working parameters. The same task scenario may correspond to one power consumption difference parameter, and the power consumption simulation value under each working parameter on the power consumption simulation curve may be adjusted based on the power consumption difference parameter to obtain an adjusted power consumption value (target power consumption value), and a target power consumption curve may be obtained based on the adjusted power consumption value and the corresponding working parameters. In this case, the target power consumption curve may be obtained by shifting the power consumption difference parameter upward or downward on the basis of the power consumption simulation curve.
[0050] In some embodiments of the present application, in the power consumption evaluation method, the trained power consumption evaluation model includes sub-models that match different scenario information, and the model parameters of different sub-models may be different. The scenario information may be the name, identification, and other information of the task scenario of the power consumption module, and different scenario information corresponds to different task scenarios. Different sub-models correspond to different power consumption difference parameters, that is, one scenario information corresponds to one sub-model and one power consumption difference parameter, wherein each sub-model is trained by training data corresponding to different scenario information.
[0051] It can be understood that since different scenario information corresponds to the same sub-model and different sub-models correspond to different power consumption difference parameters, in the process of power consumption evaluation of the power consumption model, the target power consumption curve corresponding to the different scenario information can be determined according to the power consumption difference parameters of the sub-model corresponding to the different scenario information, so as to realize the power consumption evaluation of the power consumption module in the scenarios corresponding to different scenario information.
[0052] In some embodiments of the present application, when different sub-models correspond to different power consumption difference parameters, the power consumption evaluation method may further include the following steps S301 to S302, and each step is described below.
[0053] S301. Determine target scenario information corresponding to power consumption simulation data.
[0054] In some embodiments, since the power consumption simulation data is determined by the first power consumption determination model based on the data used to evaluate the power consumption of the power consumption module, the target scenario information corresponding to the power consumption simulation data can be determined according to the task scenario corresponding to the data used to evaluate the power consumption of the power consumption module. For example, if the data used to evaluate the power consumption of the power consumption module comes from the task scenario of running game A, the corresponding target scenario information can be the name, logo and other information of game A.
[0055] S302 : Obtain a target power consumption curve of a scene corresponding to the target scene information according to the power consumption difference parameter of the sub-model corresponding to the target scene information and the power consumption simulation curve.
[0056] In some embodiments, after determining the target scenario information corresponding to the power consumption simulation data, the power consumption difference parameters of the sub-model corresponding to the target scenario information can be determined, and further a target power consumption curve corresponding to the target scenario information can be obtained based on the power consumption difference parameters and the power consumption simulation curve fitted based on the power consumption simulation data.
[0057] It can be understood that in the process of performing power consumption evaluation on the power consumption module, by determining the target scenario information corresponding to the power consumption simulation data of the power consumption module, and then directly based on the power consumption difference parameters and power consumption simulation curve of the sub-model corresponding to the target scenario information, the target power consumption curve of the power consumption module in the scenario corresponding to the target scenario information can be quickly determined, thereby improving the efficiency of power consumption evaluation.
[0058] In some embodiments of the present application, the training method of the power consumption evaluation model can be implemented through the following steps S401 to S402, and each step is described below.
[0059] S401: Obtain training data.
[0060] In some embodiments, the training data includes first power consumption simulation data and first power consumption test data corresponding to a reference power consumption module. The reference power consumption module may be a power consumption module of a previous version or previous versions corresponding to the power consumption module of the current version, and the power consumption module of the current version and the power consumption module of the corresponding previous version or previous versions have a structure that is close or similar. The first power consumption simulation data may be obtained by hardware simulation of a design circuit of a reference power consumption model through a first power consumption determination model, and the simulated power consumption data may be calculated based on an analog signal generated by the simulated reference power consumption model. The second power consumption test data may be obtained by calculating the data used to evaluate the power consumption of the reference power consumption module through a second power consumption determination model, and the data used to evaluate the power consumption of the reference power consumption module may be a test signal generated during an actual test of the structure of a product corresponding to the reference power consumption module.
[0061] S402 : Train an initial power consumption evaluation model using first power consumption simulation data and first power consumption test data to obtain a trained power consumption evaluation model.
[0062] It should be noted that the initial power consumption evaluation model may be an untrained power consumption evaluation model, and the initial power consumption evaluation model may be used to fit the first power consumption simulation data to obtain a first power consumption simulation curve, and to fit the first power consumption test data to obtain a first power consumption test curve.
[0063] In some embodiments, the initial power consumption evaluation model can analyze the correlation between the first power consumption simulation data and the corresponding operating parameters, thereby fitting a first power consumption simulation curve. The first power consumption simulation data may fall entirely on the first power consumption curve, or partially on the first power consumption curve. Similarly, the initial power consumption evaluation model can analyze the correlation between the second power consumption simulation data and the corresponding operating parameters, thereby fitting a first power consumption test curve. The operating parameters corresponding to the first power consumption simulation data are the same as the operating parameters corresponding to the second power consumption simulation data.
[0064] In some embodiments, during the training of the initial power consumption assessment model, the first power consumption simulation curve can be adjusted until the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve meets the difference condition to obtain the first target power consumption simulation curve.
[0065] In some embodiments, since the first power consumption simulation curve is obtained by fitting the first power consumption simulation data, the first power consumption simulation data is obtained by calculating the analog signal generated by the reference module of the hardware simulation using the first power consumption determination model, and the first power consumption determination model does not consider the delay time of the change of the analog signal generated by the reference module in the process of calculating the power consumption, therefore the first power consumption test data determined by the first power consumption determination model may differ greatly from the actual test power consumption data of the reference power consumption module; and the first power consumption test curve is obtained by fitting the first power consumption test data, and the first power consumption test data is obtained by calculating the test signal generated by the second power consumption determination model in the process of actually testing the structure of the product corresponding to the reference module, and the second power consumption determination model considers the delay time of the change of the test signal generated by the reference model in the process of calculating the power consumption, and calculates based on the actual test signal, therefore the first power consumption test data determined by the second power consumption determination model is close to the actual power consumption data of the reference power consumption module. Therefore, in the process of training the initial power consumption evaluation module, the first power consumption simulation curve is continuously adjusted while the first power consumption test curve is kept unchanged until the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve meets the difference condition (that is, the difference between the first power consumption simulation curve and the first power consumption test curve is small), so that the first target power consumption curve close to the actual power consumption curve of the reference module can be obtained.
[0066] It can be understood that since the first power consumption test curve is similar to the actual power consumption curve of the reference power consumption module, in the process of training the power consumption model, the first power consumption simulation curve is adjusted so that the first power consumption simulation curve gradually approaches the first power consumption test curve, and when the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve satisfies the difference condition, a first target power consumption difference curve close to the actual power consumption curve is obtained. Furthermore, since the structures of the reference power consumption module and the power consumption module to be evaluated are similar, the power consumption difference parameters are determined based on the first target power consumption difference curve and the first power consumption test curve, which can facilitate the subsequent determination of the target power consumption curve of the power consumption module based on the power consumption parameters in the process of power consumption evaluation of the power consumption module.
[0067] In some embodiments, the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve satisfies the difference condition, which can be that the absolute value of the difference between the power consumption value on the first power consumption simulation curve and the power consumption value on the first power consumption test curve is less than or equal to the power consumption difference threshold. The power consumption difference threshold can be determined based on the difference between the power consumption simulation value and the power consumption test value of the power consumption module of the previous version (or previous versions). For example, if the absolute value of the difference between the power consumption simulation value and the power consumption test value of the power consumption module of the previous version (or previous versions) accounts for 2% of the power consumption test value, then the power consumption difference threshold can be set to 2% of the average value of each first power consumption test value.
[0068] In some embodiments, since both the first power consumption simulation curve and the first power consumption test curve include power consumption values corresponding to multiple different operating parameters, the absolute values of the differences between the power consumption values on the first power consumption simulation curve and the power consumption values on the first power consumption test curve under the same operating parameters can be determined respectively, and then it is determined whether the absolute values of each difference are less than or equal to the power consumption difference threshold, and in the event that there is a value greater than the power consumption difference threshold, the power consumption value on the first power consumption simulation curve is adjusted.
[0069] In other embodiments, after determining the absolute values of the differences corresponding to different operating parameters, the average value of the absolute values of the differences can also be determined to determine whether the average value is less than or equal to the power consumption difference threshold, and when the average value is greater than the power consumption difference threshold, the power consumption value on the first power consumption simulation curve is adjusted.
[0070] In some embodiments, after adjusting the first power consumption simulation curve to obtain the first target power consumption simulation curve, the power consumption difference between the corresponding power consumption values on the first power consumption test curve and the first target power consumption simulation curve may be used as a power consumption difference parameter.
[0071] In some embodiments, the absolute value of the difference between the power consumption value on the first target power consumption simulation curve and the power consumption value on the first power consumption test curve corresponding to the same working parameters can be determined respectively, and each absolute value of the difference can be used as a power consumption difference parameter, or the average value of each absolute value of the difference can be used as a power consumption difference parameter.
[0072] It can be understood that since the training data includes the first power consumption simulation data and the first power consumption test data corresponding to the reference power consumption model, the first power consumption simulation data and the first power consumption test data can be directly obtained, eliminating the process of calculating the power consumption through the power consumption determination model. Therefore, training the initial power consumption evaluation model based on the first power consumption simulation data and the first power consumption test data can improve the training speed of the power consumption evaluation model.
[0073] In some embodiments of the present application, the training data includes sampled power consumption simulation data and sampled power consumption test data; based on this, obtaining the training data, that is, the above-mentioned step S401 can be implemented by the following steps S4011 to S4013, and each step is described separately below.
[0074] S4011 , obtaining first waveform data of a power consumption module and second waveform data of a reference module.
[0075] In some embodiments, the first waveform data may be an analog signal generated by a power consumption module obtained during hardware simulation of the power consumption module. The analog signal may be a voltage signal, a current signal, etc. that changes with time. For example, it may be high and low level change data, current change data, power change data, etc. in a full-time window obtained during the process of simulating the power consumption module processing a certain graphics task.
[0076] In some embodiments, the first waveform data may include multiple waveform data, and the first waveform data may include analog signals generated by multiple working parameters of the power consumption module under the same task scenario (or different task scenarios) in a hardware simulation environment, that is, one task scenario and one working parameter correspond to one waveform data. For example, data on voltage changes over time can be obtained under one task scenario, one ambient temperature and one working voltage.
[0077] In some embodiments, when the structural differences between the power consumption module of the current version and the power consumption module of the previous version or previous versions are small, the first waveform data may also include waveform data obtained during hardware simulation of the power consumption module of the previous version or previous versions, and the waveform data may be an analog signal generated by the power consumption module of the previous version (or previous versions).
[0078] In some embodiments, the second waveform data may be a test signal generated during the actual testing process of the structure of a product corresponding to the power consumption module of the previous version (or previous versions) corresponding to the power consumption module of the current version. The test signal may be a voltage signal, current signal, etc. that actually is generated by the power consumption module of the previous version (or previous versions) and that varies with time.
[0079] In some embodiments, the first waveform data and the second waveform data can be obtained under the same task scenario and the same working parameters, the only difference being that the task scenario and working parameters corresponding to the first waveform data are simulated through a hardware simulation environment, and the task scenario corresponding to the second waveform data is the actual test task scenario of the power consumption module of the previous version (or previous versions), and the working parameters corresponding to the second waveform data are the actual test working parameters of the power consumption module of the previous version (or previous versions).
[0080] S4012, sampling the first waveform data to obtain first sampled waveform data; and sampling the second waveform data to obtain second sampled waveform data.
[0081] In some embodiments, the first waveform data may be sampled at equal intervals. For example, the voltage signal, current signal, etc. at several time points in the first waveform data may be sampled, or the voltage signal, current signal, etc. within several time periods in the first waveform data may be sampled. The sampled voltage signal, current signal, etc. are the first sampled waveform data. For example, if the first waveform data includes a voltage signal that changes within 1000s, the voltage signal may be sampled once every 10s to obtain 10 discrete voltage signals; the voltage signal within 5s may be sampled every 100s to obtain 9 discrete voltage signals within 5s time periods. The type and sampling method of the first waveform data are merely exemplary and are not limited in this application.
[0082] In some embodiments, the sampling and processing method for the second waveform data can be the same as the sampling and processing method for the first waveform data. For example, the second waveform data can also be sampled and processed at equal intervals to obtain second sampled waveform data after sampling. The second sampled waveform data can also be a voltage signal or a current signal. The sampling and processing method for the second waveform data will not be repeated here.
[0083] In some embodiments, the same sampling processing method can be used for the first waveform data and the second waveform data of the same time length obtained under the same task scenario and the same working parameters, such as the sampling interval of the first waveform data and the sampling interval of the second waveform data are the same, and the time length of the collected signals of the two is also the same.
[0084] S4013 , input the first sampling waveform data into a first power consumption determination model to obtain sampling power consumption simulation data; and input the second sampling waveform data into a second power consumption determination model to obtain sampling power consumption test data.
[0085] In some embodiments, the first power consumption determination model can analyze the first sampled waveform data input thereto, determine the relationship between the first sampled waveform data and the power consumption of the power consumption module, thereby obtaining sampled power consumption simulation data; the second power consumption determination model can analyze the second sampled waveform data input thereto, determine the relationship between the second sampled waveform data and the power consumption of the reference power consumption module, thereby obtaining sampled power consumption test data. The sampled power consumption simulation data is different from the first power consumption simulation data and the simulated power consumption data, and the sampled power consumption test data is different from the first power consumption test data.
[0086] Exemplarily, the first power consumption determination model can be based on the number of changes in the voltage signal between each first sampling waveform data obtained after sampling, or first determine the average value of the corresponding voltage signal in multiple first sampling waveform data segments, and then determine the sampled power consumption simulation data based on the number of changes between multiple average values. Similarly, the second power consumption determination model can be based on the number of changes in the voltage signal between each second sampling waveform data obtained after sampling, or first determine the average value of the corresponding voltage signal in multiple second sampling waveform data segments, and then determine the sampled power consumption test data based on the number of changes between multiple average values.
[0087] It can be understood that by sampling and processing the first waveform data of the power consumption module and sampling and processing the second waveform data of the reference power consumption module, the data volume of the two waveform data can be reduced, the processing speed of the power consumption determination model can be accelerated, thereby increasing the speed of obtaining training data and further improving the training speed of the power consumption evaluation module.
[0088] In some embodiments, after obtaining the sampled power consumption simulation data and the sampled power consumption test data, the sampled power consumption simulation data and the sampled power consumption test data can be used to train an initial power consumption evaluation model. During the training process, the power consumption curve corresponding to the sampled power consumption simulation data is adjusted until the power consumption values corresponding to the power consumption curve corresponding to the sampled power consumption simulation data and the power consumption curve corresponding to the sampled power consumption test data meet the difference condition to obtain a first target sampled power consumption simulation curve. The power consumption values corresponding to the first target sampled power consumption simulation curve and the power consumption curve corresponding to the sampled power consumption test data are used as power consumption difference parameters to facilitate subsequent power consumption evaluation of the power consumption module under the same scene information based on the power consumption difference parameters.
[0089] In some embodiments of the present application, in the training method of the power consumption evaluation model, the first power consumption simulation curve is adjusted until the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve meets the difference condition, so as to obtain the target first power consumption simulation curve. This can be achieved by the following step S501, which is described below.
[0090] S501. Based on the first power consumption test curve, adjust the parameters of the functional relationship corresponding to the first power consumption simulation curve until the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve meets the power consumption difference condition, thereby obtaining the target first simulation power consumption curve power consumption simulation curve.
[0091] In some embodiments, the first power consumption simulation curve can be represented by a functional relationship, which can be a polynomial function, a power function, an exponential function, etc., or a combination of various functions. The relationship between the power consumption value on the first power consumption simulation curve and the corresponding working parameters can be represented by the functional relationship.
[0092] In some embodiments, the parameters of the functional relationship corresponding to the first power consumption simulation curve may include various parameters in the functional relationship, such as coefficients, exponents, bases, etc. of independent variables, the independent variables may be operating parameters (ambient temperature, operating voltage, etc.), and the dependent variables may be power consumption values. For example, if the functional relationship corresponding to the first power consumption simulation curve is a polynomial function z(x, y) = ax 3 +by 2 +cx+dy+e, where x and y represent the ambient temperature and the operating voltage respectively, and z(x,y) represents the corresponding power consumption value under the conditions of x and y. The parameters corresponding to the polynomial function may include a, b, c, d, and e.
[0093] In some embodiments, a corresponding functional relationship can be obtained after fitting the first power consumption simulation data. The functional relationship corresponds to the first power consumption simulation curve. If the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve does not meet the power consumption difference condition, it is necessary to adjust the parameters of the functional relationship until the power consumption difference condition is met. Then, the adjustment of the parameters of the functional relationship can be stopped to obtain the target functional relationship, and the target first power consumption simulation curve is obtained through the target functional relationship.
[0094] In some embodiments, fitting the first power consumption test data can obtain a corresponding functional relationship, which corresponds to the first power consumption test curve. Therefore, the difference between the power consumption values corresponding to the first power consumption simulation curve and the first power consumption test curve satisfies the power consumption difference condition. The similarity between the functional relationship corresponding to the first power consumption simulation curve and the functional relationship corresponding to the first power consumption test curve reaches a preset threshold. When the similarity between the two functional relationships reaches the preset threshold, the parameter adjustment of the functional relationship corresponding to the first power consumption simulation curve can be stopped to obtain the target functional relationship.
[0095] In some embodiments, if the parameters of the function relationship corresponding to the first power consumption simulation curve include one, the parameters of the function relationship and the parameters of the target power consumption function relationship may be different; if the parameters of the function relationship corresponding to the first power consumption simulation curve include multiple parameters, the parameters of the function relationship and the parameters of the target function relationship may be different, or some parameters may be the same and some parameters may be different.
[0096] It can be understood that by adjusting the parameters of the functional relationship corresponding to the first power consumption simulation curve, the correlation relationship between the working parameters and the power consumption values on the first power consumption simulation curve can be adjusted, so that the similarity between the functional relationship corresponding to the first power consumption simulation curve and the functional relationship corresponding to the first test curve becomes higher and higher. When the difference condition is met, the target first power consumption simulation curve close to the actual power consumption curve of the reference module can be obtained.
[0097] In some embodiments of the present application, "adjusting the parameters of the functional relationship corresponding to the first power consumption simulation curve based on the first power consumption test curve" in step S501 can be implemented through the following steps S601 to S603, and each step is described below.
[0098] S601. Acquire reference power consumption test data determined according to a first test power consumption curve and reference power consumption simulation data determined according to a first power consumption simulation curve.
[0099] It should be noted that the reference power consumption test data and the reference power consumption data may be power consumption values corresponding to the same scenario information and the same working parameters, and the reference power consumption test data and the reference power consumption simulation data may include multiple data.
[0100] In some embodiments, the reference power consumption test data can be determined based on the selected working parameters, that is, the working parameters can be determined first, and then the corresponding reference power consumption test data can be determined from the first power consumption test curve based on the working parameters, and the corresponding reference power consumption simulation data can be determined from the first power consumption simulation curve based on the working parameters.
[0101] For example, if the operating parameters are determined to be an ambient temperature of 25 degrees (°C) and an operating voltage of 12 volts (V), the reference power consumption test data corresponding to the ambient temperature of 25°C and the operating voltage of 12V can be determined from the first power consumption test curve, and the reference power consumption simulation data corresponding to the ambient temperature of 25°C and the operating voltage of 12V can be determined from the first power consumption simulation curve.
[0102] S602: Determine the absolute value of the difference between the reference power consumption test data and the reference power consumption simulation data.
[0103] In some implementations, the absolute value of the difference between the first reference power consumption data and the second reference power consumption data under the same operating parameters can be determined respectively, thereby obtaining the absolute values of the differences corresponding to each of the multiple operating parameters, that is, multiple absolute values of the differences between the reference power consumption test data and the reference power consumption simulation data can be obtained.
[0104] S603: Adjust the parameters of the functional relationship corresponding to the first power consumption simulation curve according to the magnitude relationship between the absolute value of the difference and the power consumption difference threshold.
[0105] In some embodiments, the power consumption difference threshold may be a power consumption value determined in advance based on the difference between the simulated power consumption value and the tested power consumption value of the power consumption module of the previous version (or previous versions) of the reference module, for example, 3 watts, 10 watts, etc. The power consumption difference thresholds corresponding to different scenario information may be the same or different.
[0106] In some embodiments, the average value of multiple absolute values of differences between reference power consumption test data and reference power consumption simulation data can be determined, and the parameters of the functional relationship corresponding to the first power consumption simulation curve can be adjusted based on the size relationship between the average value and the power consumption difference threshold. When the average value is less than the power consumption difference threshold, the parameters of the functional relationship corresponding to the first power consumption simulation curve can be adjusted, and when the average value of multiple absolute values of differences determined based on the reference power consumption simulation data on the adjusted first power consumption simulation curve and the reference power consumption test data on the first power consumption test curve is less than the power consumption difference threshold, the adjustment of the parameters of the functional relationship corresponding to the first power consumption simulation curve can be stopped.
[0107] It can be understood that since the reference power consumption data is determined by a power consumption test curve that is close to the actual power consumption curve of the reference module, by determining the absolute value of the difference between the reference power consumption test data and the reference power consumption simulation data, and based on the size relationship between the absolute value of the difference and the power consumption difference threshold, the parameters of the functional relationship corresponding to the first power consumption simulation curve are adjusted, so that the power consumption functional relationship can be made closer to the functional relationship corresponding to the actual power consumption curve of the reference module, thereby improving the accuracy of the functional relationship corresponding to the first power consumption simulation curve.
[0108] In some embodiments of the present application, the training method of the power consumption evaluation module may further include the following steps S701 to S703, and each step is described below.
[0109] S701. Randomly divide the training data into first sub-data and second sub-data.
[0110] In some embodiments, both the first sub-data and the second sub-data include simulated power consumption data and test power consumption data of a reference power consumption module. The training data can be randomly divided into the first sub-data and the second sub-data according to a preset ratio. For example, the training data can be divided according to a ratio of 4:1, and the data volume of the first sub-data is 80% of the training data, and the data volume of the second sub-data is 20% of the training data. The division ratio of the first sub-data and the second sub-data here is merely an exemplary illustration, and the present application does not limit this.
[0111] S702: Train an initial power consumption evaluation model using the first sub-data to obtain a trained power consumption evaluation model.
[0112] In some embodiments, the first sub-data may include second power consumption simulation data and second power consumption test data of a reference module. The second power consumption simulation data and the second power consumption test data may be used for training until the difference between the corresponding power consumption values on a second power consumption simulation curve corresponding to the second power consumption simulation data and a second power consumption test curve corresponding to the second power consumption test data meets a power consumption difference condition. In this way, a trained power consumption evaluation model and corresponding power consumption difference parameters may be obtained.
[0113] S703: Use the second sub-data to verify the trained power consumption evaluation model, and if it is determined that the verification is passed, use the trained power consumption evaluation model to process the power consumption simulation data.
[0114] In some embodiments, the second sub-data may include third power consumption simulation data and third power consumption test data of the reference module. For a trained power consumption evaluation model, the third power consumption simulation data may be input into the trained power consumption evaluation model. The third power consumption test data may be fitted with the trained power consumption evaluation model to obtain a power consumption evaluation curve. It is determined whether the power consumption evaluation curve is consistent with or close to the power consumption test curve fitted with the third power consumption test data. For example, it is determined whether the absolute value of the difference between the power consumption value on the power consumption evaluation curve and the power consumption value on the power consumption test curve is less than or equal to a preset threshold. If it is determined that the absolute value of the difference between the corresponding power consumption values on the power consumption evaluation curve and the power consumption test curve is less than or equal to the preset power consumption threshold, it means that the power consumption value on the third power consumption simulation curve fitted by the trained power consumption evaluation model is consistent with or close to the actual test power consumption value. It can be determined that the verification is passed. Then, the trained power consumption evaluation model that has passed the verification can be used to perform power consumption evaluation on the power consumption module.
[0115] In some embodiments, if it is determined that the absolute value of the difference between the corresponding power consumption values on the power consumption evaluation curve and the power consumption test curve obtained by fitting the third power consumption test data is greater than a preset power consumption threshold, it means that the power consumption value on the third power consumption simulation curve fitted by the trained power consumption evaluation model and the actual test power consumption value are significantly different, and it can be determined that the verification fails. In this case, the power consumption evaluation module can be trained again until the verification passes.
[0116] It can be understood that by randomly dividing the training data into first sub-data and second sub-data, training the power consumption evaluation model based on the first sub-data to obtain a trained power consumption evaluation model, and verifying the trained power consumption evaluation model based on the second sub-data, the power consumption evaluation model can be continuously strengthened and corrected, so that the power consumption evaluation model finally trained has higher accuracy, thereby improving the accuracy of power consumption evaluation.
[0117] In an embodiment of the present application, power consumption simulation data of a power consumption module to be evaluated is obtained; and the power consumption simulation data is processed using a trained power consumption evaluation model to obtain a target power consumption curve. In this way, since the power consumption difference parameter represents the difference between the target power consumption evaluation value and the power consumption simulation value, the target power consumption evaluation value is close to the actual power consumption value of the power consumption module. Therefore, based directly on the power consumption difference parameter corresponding to the power consumption module and the power consumption simulation curve obtained by fitting the power consumption simulation data, a target power consumption curve close to the actual power consumption value can be quickly determined, thereby improving the speed and accuracy of power consumption evaluation.
[0118] Next, the implementation process of the application embodiment in the actual application scenario is introduced.
[0119] The present application embodiment provides a GPU power consumption evaluation system, such as Figure 2 As shown, the GPU power consumption evaluation system 800 may include a GPU power consumption evaluation database Database 801 , a data sampling module 802 , an information configuration module 803 and a power consumption report generation module 804 .
[0120] The data sampling module 802 can evaluate and sample power consumption data based on hardware simulation such as PowerReply (equivalent to the "second power consumption determination model" in other embodiments) and PrimePower (equivalent to the "first power consumption determination model" in other embodiments), and on the other hand, based on the original hardware test of the previous generation of GPU products and the collection and reuse of related power consumption data. These sampling operations mainly capture GPU power consumption data under different scenarios (equivalent to the "scenarios corresponding to the scenario information" in other embodiments) and different PVT conditions (equivalent to the "working parameters" in other embodiments). The sampling process is driven by predefined scenarios and Config files in the system Database, thereby ensuring diversity and comprehensiveness.
[0121] The GPU power consumption evaluation database Database 801 includes a power consumption evaluation tool, which includes a PrimePower tool. A training module Training Model (equivalent to the "power consumption evaluation model" in other embodiments) is embedded in the PrimePower tool. The module can adaptively fit the collected power consumption data according to the changes in the sampling data and the GPU configuration, automatically learn the power consumption mode of the GPU, and draw a fitted power consumption curve. The automated training process can increase the speed of power consumption evaluation, and at the same time, the fitting model can also be dynamically adjusted according to actual conditions.
[0122] When the training is completed, the fitting model can be adaptively applied according to the GPU configuration and power mode, voltage, and temperature (PVT) conditions to accurately associate the current simulated power consumption with the actual power consumption. There is no need to manually adjust the fitting parameters or configure the Config file. The PrimePower tool dynamically selects the best fitting model based on the current situation to more accurately predict the actual power consumption, providing a more reliable and efficient solution for GPU chip design and power consumption evaluation.
[0123] The information configuration module 803 can configure different scenarios and different PVT conditions to obtain the corresponding combination of scenarios and PVT conditions. The power consumption report generation module 804 can summarize the GPU power consumption results of multiple scenarios, multiple PVTs, and multiple GPU sub-partitions, and combine the training results and corresponding arithmetic operations and analysis to finally generate an adaptive fitting report, distribution chart, and curve chart that is close to the actual GPU total power consumption.
[0124] The present application embodiment provides a GPU power consumption evaluation method, such as Figure 3 As shown, the method comprises the following steps:
[0125] S901. Build a GPU power consumption evaluation system database.
[0126] In some embodiments, the GPU power consumption evaluation system database Database may pre-deploy multiple GPU partitions, multiple power consumption modes corners, multiple voltages and multiple temperatures for easy later direct calls.
[0127] In this database, the common parts of GPU power consumption evaluation, such as netlist, SDC, SPEF, mappingfile, STD / MEM library, etc., are placed under the public path PDDB, properly organized and managed, and finally automatically read in by keyword (power consumption of chips under different SDCs) matching. PrimePower and PowerReplay tools are integrated in the database, and mode and scenario switching can be performed according to the mode (Mode) and scenario (Case) settings in the external input Configs file.
[0128] S902, GPU data sampling and model training.
[0129] In some embodiments, power consumption can be sampled by a hardware simulation method. For example, the waveform file of the input activity file full time window (Activity file Full Time Window) is divided into N (N is an integer greater than 1) parts using PowerReplay and PrimePower. According to the general formula of arithmetic progression Ti=T0+(i-1)×(Tend-t0) / (N-1), the position of the sampling point Ti (the i-th sampling point) is obtained, and the power consumption data under different scenarios, different loads and different PVT conditions in the time window Time Window is sampled.
[0130] In some embodiments, Figure 4 As shown, the power consumption data Generation (N-1) Data of the previous generation of GPU products can be reused and iterated. Through the original hardware test, the actual dynamic and static power consumption of each major module in the GPU, such as gpuss top and shadercore, is obtained. By analyzing the iterative relationship between GPU generations, the power consumption data that can be reused and iterated is screened out.
[0131] In some embodiments, Figure 4 As shown in , a GPU power consumption sampling dataset can be created and randomly divided into a training set and a validation set, 80% for training and 20% for validation, which are used to strengthen and correct the model respectively. The training model trains and adaptively fits the sampling dataset, and the following can be obtained: Figure 4 The power consumption curve shown in includes a fitting curve and a simulation curve. The fitting curve can be obtained by fitting the power consumption data obtained by PowerReply, and the simulation curve can be obtained by fitting the power consumption data obtained by PrimePower. If the difference GAP between the two curves is less than the threshold Threshold, the parameters of the training module can be adjusted to obtain new fitting curves and simulation curves. Until the GAP between the two curves is less than the Threshold, a fitting curve and simulation curve with stable difference can be obtained.
[0132] You can select relevant configuration information Config as features, such as waveform frequency, voltage V, temperature T, etc., and associate it with power consumption data to standardize the features and ensure the stability of the data during training. Configuration information can include Figure 4 As shown in (V1, T1), ..., (V1, Tn), (Vn, T1), ..., (Vn, Tn), etc., where n represents the number of voltages and temperatures.
[0133] In some embodiments, an appropriate training model can be developed in combination with the power consumption characteristics of the GPU, and a neural network can be combined with a power consumption model for training. Create a GPU power consumption scenario library, including the full-load scenario Max, the low-load scenario Min, and the typical scenario Tradition, etc., learn the power consumption behavior in different scenarios, and quantify the data changes of the GPU at different PVT points as parameters to reflect the impact of parameter process changes, voltage changes, and temperature changes on power consumption. For GPU product iteration, the power consumption gap between previous generations of products is used as the threshold reference Generation Threshold in the training model Training Model to improve training efficiency. Considering the complexity of the Training Model, adjust the parameters of the training model, Generation Threshold, etc. to avoid overfitting.
[0134] S903: Adaptive fitting and power consumption result summary.
[0135] The fitting algorithm is integrated into the model. According to the characteristics of GPU power consumption changes, a polynomial fitting algorithm (the curve of temperature and voltage changes with power consumption) is used to develop an adaptive fitting evaluation tool to summarize the GPU power consumption results of multiple scenarios, multiple PVTs, and multiple modules (partitions).
[0136] The adaptive fitting evaluation tool can be implemented through a scripting language, extracting the dynamic and static power consumption data and VTcell ratio of each GPU scene, each PVT and each module from many detailed power consumption reports (Detailed Power Report), and finally generating an adaptive fitting report, distribution chart and curve chart close to the actual GPU total power consumption by combining the training results and corresponding arithmetic operations and analysis. The summary and processing method of this automated fitting can greatly simplify the generation and analysis process of power consumption reports and improve the reliability and accuracy of evaluation results.
[0137] The GPU power consumption evaluation method provided in the embodiment of the present application improves the automation level of GPU power consumption evaluation by introducing sampling, training and adaptive fitting methods, and provides more accurate power consumption prediction. This method can be applied to the power consumption evaluation of various GPU products, especially for iterations between multiple generations of GPU products, providing more comprehensive and efficient support for chip design and optimization. The process of sampling, training and adaptive fitting cooperates with other aspects of the present application to form a powerful GPU power consumption evaluation system.
[0138] The present application also provides a power consumption evaluation device, Figure 5 A schematic diagram of the structure of a power consumption evaluation device provided in an embodiment of the present application is shown in FIG. Figure 5 As shown, the power consumption evaluation device 10 includes:
[0139] A first acquisition module 11 is used to acquire power consumption simulation data of a power consumption module whose power consumption is to be evaluated;
[0140] A first processing module 12 is used to process the power consumption simulation data using a trained power consumption evaluation model to obtain a target power consumption curve;
[0141] Among them, the processing at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve fitted by the power consumption simulation data; the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value.
[0142] In some embodiments, the power consumption evaluation device 10 may further include:
[0143] A second acquisition module, used to acquire training data, wherein the training data includes first power consumption simulation data and first power consumption test data corresponding to the reference power consumption module;
[0144] A first training module, used for training an initial power consumption evaluation model by using the first power consumption simulation data and the first power consumption test data to obtain the trained power consumption evaluation model;
[0145] Among them, the initial power consumption evaluation model is used to fit the first power consumption simulation data to obtain a first power consumption simulation curve, and to fit the first power consumption test data to obtain a first power consumption test curve; the training process adjusts the first power consumption simulation curve until the difference between the power consumption values corresponding to the first power consumption simulation curve and the first power consumption test curve meets the difference condition, and the first target power consumption simulation curve is obtained; and the power consumption difference between the power consumption values corresponding to the first power consumption test curve and the first target power consumption simulation curve is used as the power consumption difference parameter.
[0146] In some embodiments, the first training module is also used to adjust the parameters of the functional relationship corresponding to the first power consumption simulation curve based on the first power consumption test curve, until the difference between the corresponding power consumption values on the first power consumption simulation curve and the first power consumption test curve meets the power consumption difference condition, thereby obtaining the target first power consumption simulation curve.
[0147] In some embodiments, the first training module further includes:
[0148] A first acquisition submodule, used to acquire reference power consumption test data determined according to the first power consumption test curve, and reference power consumption simulation data determined according to the first power consumption simulation curve;
[0149] A first determining submodule, configured to determine an absolute value of a difference between the reference power consumption test data and the reference power consumption simulation data;
[0150] The first adjustment submodule is used to adjust the parameters of the functional relationship corresponding to the first power consumption simulation curve according to the size relationship between the absolute value of the difference and the power consumption difference threshold.
[0151] In some embodiments, the training data includes sampled power consumption simulation data and sampled power consumption test data; the second acquisition module includes:
[0152] A second acquisition submodule, used to acquire the first waveform data of the power consumption module and the second waveform data of the reference power consumption module;
[0153] A first sampling submodule is used to perform sampling processing on the first waveform data to obtain first sampled waveform data; and to perform sampling processing on the second waveform data to obtain second sampled waveform data;
[0154] The second determination submodule is used to input the first sampling waveform data into a first power consumption determination model to obtain the sampled power consumption simulation data; and input the second sampling waveform data into a second power consumption determination model to obtain the sampled power consumption test data.
[0155] In some embodiments, the power consumption evaluation device 10 may further include:
[0156] A first division module, used for randomly dividing the training data into first sub-data and second sub-data;
[0157] a second training module, configured to train the initial power consumption evaluation model using the first sub-data to obtain a trained power consumption evaluation model;
[0158] The first verification module is used to verify the trained power consumption evaluation model by using the second sub-data, and when it is determined that the verification is passed, use the trained power consumption evaluation model to process the power consumption simulation data.
[0159] In some embodiments, the trained power consumption evaluation model in the evaluation method includes sub-models that match different scene information, and different sub-models correspond to different power consumption difference parameters; each sub-model is trained using training data corresponding to different scene information.
[0160] In some embodiments, the power consumption evaluation device 10 may further include:
[0161] A second determination module, used to determine target scenario information corresponding to the power consumption simulation data;
[0162] The third determination module is used to obtain a target power consumption curve of the scene corresponding to the target scene information according to the power consumption difference parameter of the sub-model corresponding to the target scene information and the power consumption simulation curve.
[0163] In some embodiments, the power consumption difference parameter includes a set of power consumption differences corresponding to different operating parameters; and the third determination module includes:
[0164] The second adjustment submodule is used to adjust the power consumption simulation value under the corresponding operating parameter on the power consumption simulation curve based on the power consumption difference corresponding to the different operating parameters, so as to obtain the target power consumption curve.
[0165] It should be noted that the description of the power consumption evaluation device in the embodiment of the present application is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment, so it will not be repeated. For technical details not disclosed in the embodiment of the device, please refer to the description of the method embodiment of the present application for understanding.
[0166] It should be noted that in the embodiment of the present application, if the above-mentioned power consumption evaluation method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant solution. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0167] Accordingly, an embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the power consumption evaluation method provided in the above embodiment is implemented.
[0168] An embodiment of the present application also provides a power consumption evaluation device. Figure 6 A schematic diagram of the composition structure of a power consumption evaluation device provided in an embodiment of the present application is shown in FIG. Figure 6 As shown, the power consumption evaluation device 20 includes: a memory 21, a processor 22, a communication interface 23 and a communication bus 24. The memory 21 is used to store executable power consumption evaluation instructions; the processor 22 is used to execute the executable power consumption evaluation instructions stored in the memory to implement the power consumption evaluation method provided in the above embodiment.
[0169] The description of the above power consumption evaluation device and storage medium embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the power consumption evaluation device and storage medium embodiments of the present application, please refer to the description of the method embodiments of the present application for understanding.
[0170] It should be noted that, in this article, the terms "include", "comprises" 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 includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "includes at least one ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0171] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as: multiple units or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0172] The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units; they may be located in one place or distributed on multiple network units; some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0173] In addition, all functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may be a separate unit, or two or more units may be integrated into one unit; the above-mentioned integrated units may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0174] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above-mentioned method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiment; and the aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROM, disks or optical disks.
[0175] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a product to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks or optical disks.
[0176] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any technical object familiar with the technical field can be easily conceived of within the technical scope disclosed in the present application. Changes or substitutions should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A power consumption evaluation method, include: Obtain power consumption simulation data of a power consumption module whose power consumption is to be evaluated; Using a trained power consumption evaluation model, the power consumption simulation data is processed to obtain a target power consumption curve; Among them, the processing at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve fitted by the power consumption simulation data; the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value.
2. The method according to claim 1, wherein the training method of the power consumption evaluation model is: include: Acquire training data, wherein the training data includes first power consumption simulation data and first power consumption test data corresponding to a reference power consumption module; Training an initial power consumption evaluation model using the first power consumption simulation data and the first power consumption test data to obtain the trained power consumption evaluation model; Among them, the initial power consumption evaluation model is used to fit the first power consumption simulation data to obtain a first power consumption simulation curve, and to fit the first power consumption test data to obtain a first power consumption test curve; the training process adjusts the first power consumption simulation curve until the difference between the power consumption values corresponding to the first power consumption simulation curve and the first power consumption test curve meets the difference condition, and the first target power consumption simulation curve is obtained; and the power consumption difference between the power consumption values corresponding to the first power consumption test curve and the first target power consumption simulation curve is used as the power consumption difference parameter.
3. The method according to claim 2, wherein the first power consumption simulation curve is adjusted until the difference between the power consumption values corresponding to the first power consumption simulation curve and the first power consumption test curve meets the difference condition, thereby obtaining a target first power consumption simulation curve. include: Based on the first power consumption test curve, the parameters of the functional relationship corresponding to the first power consumption simulation curve are adjusted until the difference between the power consumption values corresponding to the first power consumption simulation curve and the first power consumption test curve meets the power consumption difference condition, thereby obtaining the target first power consumption simulation curve.
4. The method according to claim 3, wherein the parameters of the functional relationship corresponding to the first power consumption simulation curve are adjusted based on the first power consumption test curve. include: Acquire reference power consumption test data determined according to the first power consumption test curve, and reference power consumption simulation data determined according to the first power consumption simulation curve; Determine an absolute value of a difference between the reference power consumption test data and the reference power consumption simulation data; According to the magnitude relationship between the absolute value of the difference and the power consumption difference threshold, the parameters of the functional relationship corresponding to the first power consumption simulation curve are adjusted.
5. The method according to claim 2, wherein the training data comprises sampled power consumption simulation data and sampled power consumption test data ; The obtaining of training data comprises: Acquire first waveform data of the power consumption module and second waveform data of the reference power consumption module; Sampling the first waveform data to obtain first sampled waveform data; and sampling the second waveform data to obtain second sampled waveform data; The first sampling waveform data is input into a first power consumption determination model to obtain the sampling power consumption simulation data; and the second sampling waveform data is input into a second power consumption determination model to obtain the sampling power consumption test data.
6. The method according to claim 2, wherein the training method further comprises: include: Randomly dividing the training data into first sub-data and second sub-data; Using the first sub-data to train the initial power consumption evaluation model to obtain a trained power consumption evaluation model; The trained power consumption evaluation model is verified by using the second sub-data, and when it is determined that the verification is passed, the power consumption simulation data is processed by using the trained power consumption evaluation model.
7. According to the method described in claim 1, the trained power consumption evaluation model in the evaluation method includes sub-models that match different scene information, and different sub-models correspond to different power consumption difference parameters; each sub-model is trained through training data corresponding to different scene information.
8. The method according to claim 1, wherein the evaluation method further comprises: include: Determining target scenario information corresponding to the power consumption simulation data; According to the power consumption difference parameter of the sub-model corresponding to the target scene information and the power consumption simulation curve, a target power consumption curve of the scene corresponding to the target scene information is obtained.
9. The method according to claim 1, wherein the power consumption difference parameter comprises a set of power consumption differences corresponding to different operating parameters; The target power consumption curve is obtained based on the power consumption difference parameter corresponding to the power consumption module and the power consumption simulation curve obtained by fitting the power consumption simulation data. include: Based on the power consumption differences corresponding to the different operating parameters, the power consumption simulation values under the corresponding operating parameters on the power consumption simulation curve are adjusted to obtain the target power consumption curve.
10. A power consumption evaluation device, include: A first acquisition module, used for acquiring power consumption simulation data of a power consumption module whose power consumption is to be evaluated; A first processing module, configured to process the power consumption simulation data using a trained power consumption evaluation model to obtain a target power consumption curve; Among them, the processing at least includes obtaining a target power consumption curve based on a power consumption difference parameter corresponding to the power consumption module and a power consumption simulation curve fitted by the power consumption simulation data; the power consumption difference parameter is a built-in parameter of the power consumption evaluation model, which is used to characterize the difference between the target power consumption evaluation value and the power consumption simulation value.
Citation Information
Cited By
Method for extracting chip power consumption evaluation waveform and computing equipment
CN118917272A
