Power consumption test method, device and system and computer readable storage medium
By setting up two sets of power consumption testers on the server motherboard, measuring the power consumption data of multiple interfaces of the artificial intelligence accelerator card, and combining these data to determine its power consumption, the problem of large power consumption test errors in the existing technology is solved, and the efficiency is improved Test accuracy and fairness.
Patent Information
- Application Number
- CN202311435715.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-31
- Publication Date
- 2024-10-22
AI Technical Summary
The existing technology has large errors in the power consumption test of artificial intelligence accelerator cards, and fails to effectively consider the impact of server cooling fans on power consumption.
By setting up two sets of power consumption testers on the server motherboard, respectively measure the power consumption data between the first interface and the slot of the artificial intelligence accelerator card and the power consumption data between the second interface and the power supply interface, and combine these data Determine the power consumption of the artificial intelligence accelerator card.
It improves the accuracy of the power consumption test of artificial intelligence accelerator cards, can more objectively and fairly meet the power consumption test requirements of artificial intelligence accelerator cards of different manufacturers, and reduces test errors.
Smart Images

Figure CN118819973A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of power consumption testing, and in particular to a power consumption testing method and device, a system, and a computer-readable storage medium. Background Art
[0002] Artificial intelligence accelerator cards are widely used in various artificial intelligence scenarios. Usually, artificial intelligence accelerator cards are inserted into servers for use. At present, there are two ways to test the power consumption of artificial intelligence accelerator cards: one is to directly read the power consumption of the artificial intelligence accelerator card from the components of the server; the other is to rely on a power consumption tester to first measure the operating power consumption of the server with the artificial intelligence accelerator card to be tested inserted, and then measure the operating power consumption of the server without the artificial intelligence accelerator card to be tested. The two measurement results are subtracted to obtain the power consumption of the artificial intelligence accelerator card to be tested. However, the above power consumption test of artificial intelligence accelerator cards has a large error. Summary of the invention
[0003] To solve the above technical problems, the embodiments of the present application provide a power consumption testing method and device, a system, and a computer-readable storage medium.
[0004] The power consumption test method provided in the embodiment of the present application includes:
[0005] Acquire first power consumption data and second power consumption data, where the first power consumption data is power consumption data generated by a slot on a server mainboard supplying power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated by a power supply interface on the server mainboard supplying power to the artificial intelligence acceleration card;
[0006] The power consumption of the artificial intelligence acceleration card is determined according to the first power consumption data and the second power consumption data.
[0007] The power consumption test device provided in the embodiment of the present application is applied to a control machine, and the device includes:
[0008] A communication unit, used to obtain first power consumption data and second power consumption data, wherein the first power consumption data is power consumption data generated by a slot on a server mainboard supplying power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated by a power supply interface on the server mainboard supplying power to the artificial intelligence acceleration card;
[0009] A processing unit is used to determine the power consumption of the artificial intelligence acceleration card according to the first power consumption data and the second power consumption data.
[0010] The power consumption test system provided by the embodiment of the present application includes: a first group of power consumption testers, a second group of power consumption testers, a server mainboard, a control machine and an artificial intelligence acceleration card; the first group of power consumption testers is arranged between the first interface of the artificial intelligence acceleration card and the slot on the server mainboard, and the second group of power consumption testers is arranged between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard; the control machine establishes a communication connection with the first group of power consumption testers and the second group of power consumption testers; wherein,
[0011] The first group of power consumption testers is used to measure power consumption data of N measurement channels, where N is a positive integer; the N measurement channels are measurement channels between the first interface of the artificial intelligence accelerator card and the slot on the server mainboard;
[0012] The second group of power consumption testers is used to measure power consumption data of M measurement channels, where M is a positive integer; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard;
[0013] The control machine is used to receive the power consumption data of the N measurement channels sent by the first group of power consumption testers and receive the power consumption data of the M measurement channels sent by the second group of power consumption testers; and determine the power consumption of the artificial intelligence acceleration card according to the power consumption data of the N measurement channels and the power consumption data of the M measurement channels.
[0014] The computer-readable storage medium provided in the embodiments of the present application is used to store a computer program, and the computer program enables a computer to execute any one of the above methods.
[0015] The above technical solution of the embodiment of the present application provides a power consumption test method for an artificial intelligence acceleration card. Considering that there are two ways to power the artificial intelligence acceleration card, one way is to power the artificial intelligence acceleration card through a slot on the server motherboard, and the other way is to power the artificial intelligence acceleration card through a power supply interface on the server motherboard. Based on this, the power consumption of the artificial intelligence acceleration card is determined according to the power consumption data generated when the slot on the server motherboard powers the artificial intelligence acceleration card (i.e., the first power consumption data) and the power consumption data generated when the power supply interface on the server motherboard powers the artificial intelligence acceleration card (i.e., the second power consumption data), thereby making the power consumption test of the artificial intelligence acceleration card more accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 It is a flowchart of the power consumption test method provided in an embodiment of the present application;
[0017] Figure 2 This is a connection diagram of the first group of power consumption testers provided in an embodiment of the present application;
[0018] Figure 3 This is a connection diagram of a second group of power consumption testers provided in an embodiment of the present application;
[0019] Figure 4 This is a system diagram of the power consumption test of the artificial intelligence acceleration card provided in the embodiment of the present application;
[0020] Figure 5 is a schematic diagram of measuring power in multiple test stages provided in an embodiment of the present application;
[0021] Figure 6 It is a schematic diagram of the structure of the power consumption test device provided in an embodiment of the present application;
[0022] Figure 7 It is a schematic diagram of the structure of the power consumption test system provided in an embodiment of the present application;
[0023] Figure 8 It is a schematic structural diagram of a processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The following will describe the technical solutions in the embodiments of the present application in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0025] It should be noted that in the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the embodiments of the present application, the character " / " generally indicates that the associated objects before and after are in an "or" relationship.
[0026] In the description of the embodiments of the present application, the term "corresponding" may indicate that there is a direct or indirect correspondence relationship between two things, or may indicate that there is an associative relationship between the two things.
[0027] Artificial intelligence accelerator cards are widely used in various artificial intelligence scenarios. Usually, artificial intelligence accelerator cards are inserted into servers for use. The power consumption test of artificial intelligence accelerator cards uses the power consumption measurement method performed by a third party. The following introduces several power consumption measurement methods performed by third parties.
[0028] Method 1: Read the power consumption of the AI accelerator card directly from the server’s baseboard management controller (BMC). Generally, the BMC is located at the base of the server.
[0029] Method 2: Relying on the power consumption tester, first measure the operating power consumption of the server with the AI accelerator card to be tested inserted, then measure the operating power consumption of the server without the AI accelerator card to be tested, and subtract the two measurement results to obtain the power consumption of the AI accelerator card to be tested.
[0030] Method 1 relies on the precision and accuracy of the readings reported by the power sensor inside the AI accelerator card under test. In some special scenarios, the data reported by the AI accelerator card manufacturer itself is not credible. Method 2 is a rough and indirect measurement method. The above power consumption measurement method has a large error. In addition, the above power consumption measurement method does not pay attention to the impact of the different air volume and / or air temperature brought by the cooling fan of the server on the power consumption of the AI accelerator card when the AI accelerator card is running. In fact, the AI accelerator card adopts passive cooling, that is, the AI accelerator card itself is not equipped with a cooling fan, but relies on the cold air brought by the cooling fan of the server base to achieve heat dissipation. Different cooling wind speeds and / or wind temperatures from the server base will affect the operation of the AI accelerator card. For the AI accelerator card, if the air inlet temperature exceeds a certain threshold and / or the air inlet volume is lower than a certain threshold, the AI accelerator card will run at a reduced frequency or even power off. In the reduced frequency operation mode, the operating power consumption of the AI accelerator card will be reduced.
[0031] At present, there is a lack of a better power consumption measurement method for artificial intelligence acceleration cards performed by a third party. To this end, the following technical solution of the embodiment of the present application is proposed. The technical solution of the embodiment of the present application proposes a power consumption test method for the power consumption test of artificial intelligence acceleration cards. This method is implemented using a power consumption test system (i.e., two sets of power consumption testers) that is independent of the artificial intelligence acceleration card being tested, which ensures the accuracy of the test results, makes the test results more convincing, and can meet the power consumption test requirements of artificial intelligence acceleration cards of different manufacturers and models in the industry. It is an objective and fair power consumption measurement method performed by a third party.
[0032] To facilitate understanding of the technical solution of the embodiment of the present application, the technical solution of the present application is described in detail below through specific embodiments. The embodiment of the present application includes at least part of the following contents.
[0033] It should be noted that the "artificial intelligence acceleration card" described in the embodiments of the present application may also be referred to as an "artificial intelligence card" or an "artificial intelligence chip" or an "artificial intelligence module", etc. Exemplarily, the artificial intelligence acceleration card may be a standard card in the form of a peripheral component interconnect express (PCIe).
[0034] The server motherboard has a slot (such as a PCIe slot), and the artificial intelligence acceleration card has a first interface (such as a PCIe pin or a PCIe gold finger). The first interface of the artificial intelligence acceleration card can be inserted into the slot on the server motherboard, thereby expanding the function of the artificial intelligence acceleration card on the server.
[0035] The slot on the server motherboard (such as a PCIe slot) provides a maximum power of 75W for the inserted artificial intelligence acceleration card, while the rated power of most artificial intelligence acceleration cards is much higher than 75W. Therefore, the artificial intelligence acceleration card needs to be powered by the first interface (such as a PCIe pin or a PCIe gold finger) and an additional second interface (such as an auxiliary power interface) at the same time. The first interface of the artificial intelligence acceleration card (such as a PCIe pin or a PCIe gold finger) is inserted into the slot on the server motherboard (such as a PCIe slot), and the second interface of the artificial intelligence acceleration card (such as an auxiliary power interface) is connected to the power supply interface on the server motherboard. To accurately measure the power consumption of the artificial intelligence acceleration card, it is necessary to simultaneously measure the combined power consumption of the first interface (such as a PCIe pin or a PCIe gold finger) and the second interface (such as an auxiliary power interface).
[0036] Figure 1 is a flow chart of a power consumption test method provided in an embodiment of the present application, and the power consumption test method is applied to a control machine, such as Figure 1 As shown, the power consumption test method includes:
[0037] Step 101: Obtain first power consumption data and second power consumption data, wherein the first power consumption data is power consumption data generated when a slot on a server mainboard supplies power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated when a power supply interface on the server mainboard supplies power to the artificial intelligence acceleration card.
[0038] In some embodiments, the first power consumption data includes power consumption data of N measurement channels, and the second power consumption data includes power consumption data of M measurement channels, where N and M are positive integers; here, the N measurement channels are measurement channels between the first interface of the artificial intelligence accelerator card and the slot on the server mainboard, and the slot on the server mainboard is used to power the artificial intelligence accelerator card through the first interface; the M measurement channels are measurement channels between the second interface of the artificial intelligence accelerator card and the power supply interface on the server mainboard, and the power supply interface on the server mainboard is used to power the artificial intelligence accelerator card through the second interface. The control machine receives the power consumption data of the N measurement channels sent by the first group of power consumption testers and receives the power consumption data of the M measurement channels sent by the second group of power consumption testers.
[0039] In some embodiments, the artificial intelligence accelerator card is a PCIe form factor standard card. Accordingly, the first interface of the artificial intelligence accelerator card is a PCIe pin, which may also be referred to as a PCIe gold finger. The second interface of the artificial intelligence accelerator card is an auxiliary power interface. Among them, the pin definition of the PCIe gold finger can be clarified with reference to relevant specifications, while the pin definition of the auxiliary power interface is defined by the manufacturer of the artificial intelligence accelerator card.
[0040] The artificial intelligence acceleration card needs to be powered by a first interface (such as a PCIe pin or a PCIe gold finger) and an additional second interface (such as an auxiliary power interface) at the same time. Among them, the first interface of the artificial intelligence acceleration card is inserted into a slot (such as a PCIe slot) on the server motherboard, and the slot (such as a PCIe slot) supplies power to the artificial intelligence acceleration card through the first interface, and the second interface of the artificial intelligence acceleration card is connected to the power supply interface on the server motherboard, and the power supply interface supplies power to the artificial intelligence acceleration card through the second interface. It can be seen that to accurately measure the power consumption of the artificial intelligence acceleration card, it is necessary to simultaneously measure the common power consumption of the first interface (such as a PCIe pin or a PCIe gold finger) and the second interface (such as an auxiliary power interface).
[0041] In an embodiment of the present application, the power consumption of the artificial intelligence acceleration card is tested. It is necessary to test the power consumption related to the first interface (such as a PCIe pin or a PCIe gold finger) and the power consumption related to the second interface (such as an auxiliary power supply interface), which are described below respectively.
[0042] Test the power consumption related to the first interface
[0043] In an embodiment of the present application, the power consumption related to the first interface is tested by a first group of power consumption testers. Specifically, the power consumption data of N measurement channels are tested by the first group of power consumption testers, where the N measurement channels are measurement channels between the first interface of the artificial intelligence accelerator card and the slot on the server motherboard.
[0044] In some embodiments, the first group of power consumption testers includes N power consumption testers, and the N power consumption testers have a one-to-one correspondence with N measurement channels; N power consumption testers corresponding to the N measurement channels are arranged between the slot and the first interface, wherein each of the N power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0045] In the above solution, for each of the N power consumption testers, one end (ie, the negative pole) of the power consumption tester is connected to the pin of the first interface and the other end (ie, the positive pole) of the power consumption tester is connected to the pin of the slot.
[0046] For example, taking the artificial intelligence acceleration card as a standard PCIe card, for the power consumption test of the PCIe gold finger power supply of the artificial intelligence acceleration card, it is necessary to lead out a circuit extension line between the PCIe slot of the server motherboard and the PCIe gold finger of the artificial intelligence acceleration card, and conveniently connect the power consumption tester through the circuit extension line, so as to measure the power consumption of the PCIe gold finger power supply of the artificial intelligence acceleration card through the power consumption tester. Figure 2 , taking N=4 as an example, according to the PCIe standard specification, the power supply pins of the PCIe gold finger are unified and standardized, including 2 +12V power supply circuits and 2 +3.3V power supply circuits. These 4 power supply circuits are 4 measurement channels. The power consumption of the PCIe gold finger of the artificial intelligence accelerator card is realized by measuring the power consumption data of the 4 measurement channels. A power consumption tester is used in each measurement channel to measure the corresponding power consumption. Figure 2 As shown in the figure, the negative and positive poles of the power consumption tester 1 are connected to the PCIe gold finger and the PCIe slot B side respectively, which is used to test the power consumption of the measurement channel 1; the negative and positive poles of the power consumption tester 2 are connected to the PCIe gold finger and the PCIe slot A side respectively, which is used to test the power consumption of the measurement channel 2; the negative and positive poles of the power consumption tester 3 are connected to the PCIe gold finger and the PCIe slot B side respectively, which is used to test the power consumption of the measurement channel 3; the negative and positive poles of the power consumption tester 4 are connected to the PCIe gold finger and the PCIe slot A side respectively, which is used to test the power consumption of the measurement channel 4. It should be noted that Figure 2 The current terminal of the power consumption tester is used to measure the current, and the voltage terminal is used to measure the voltage. The power consumption can be obtained based on the measured current and voltage.
[0047] Test the power consumption related to the second interface
[0048] In an embodiment of the present application, the power consumption related to the second interface is tested by a second group of power consumption testers. Specifically, the power consumption data of M measurement channels are tested by a second group of power consumption testers, wherein the M measurement channels are measurement channels between the second interface of the artificial intelligence accelerator card and the power supply interface on the server motherboard.
[0049] In some embodiments, the second group of power consumption testers includes M power consumption testers, and the M power consumption testers have a one-to-one correspondence with M measurement channels; M power consumption testers corresponding to the M measurement channels are arranged between the power supply interface and the second interface, wherein each of the M power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0050] In the above scheme, for each of the M power consumption testers, after the power consumption tester is connected in parallel with a switch, one end (i.e., the negative pole) is connected to the pin of the second interface and the other end (i.e., the positive pole) is connected to the pin of the power supply interface; wherein, if the pin of the second interface connected to the one end (i.e., the negative pole) is a pin with a first voltage and the pin of the power supply interface connected to the other end (i.e., the positive pole) is also a pin with the first voltage, the switch is disconnected; if the pin of the second interface connected to the one end (i.e., the negative pole) is a ground pin and the pin of the power supply interface connected to the other end (i.e., the positive pole) is also a ground pin, the switch is closed. Here, the first voltage can be +12V, and the pin with the first voltage is the +12V pin. Here, the ground pin is the GND pin.
[0051] For example, taking the artificial intelligence acceleration card as a PCIe standard card, for the power consumption test of the auxiliary power interface of the artificial intelligence acceleration card, a set of intermediate adapter cables is used to complete the pin adaptation of the auxiliary power interface of the artificial intelligence acceleration card of different manufacturers and the power supply interface on the server motherboard, and the power measurement is completed at the same time. Figure 3, taking M=8 as an example, a set of intermediate adapter cables includes 8 adapter cables, one end (i.e., the negative pole) of each adapter cable is connected to a pin of the auxiliary power interface (8-pin power interface) of the artificial intelligence acceleration card, and the other end (i.e., the positive pole) is connected to a pin of the power supply interface (8-pin power supply interface) of the server motherboard. This method belongs to the "one-to-one" situation, that is, one pin of the power supply interface of the server motherboard is connected to a pin of the auxiliary voltage interface of the artificial intelligence acceleration card. Alternatively, a "two-to-one" situation can also be adopted, that is, two pins of the power supply interface of the server motherboard are connected to a pin of the auxiliary voltage interface of the artificial intelligence acceleration card. Alternatively, a "one-to-two" situation can also be adopted, that is, one pin of the power supply interface of the server motherboard is connected to two pins of the auxiliary voltage interface of the artificial intelligence acceleration card. The technical solution of the embodiment of the present application does not limit the connection method between the pins of the power supply interface of the server motherboard and the pins of the auxiliary power interface of the artificial intelligence acceleration card. For each adapter cable, it includes a power consumption tester and a switch in parallel. For the i-th (1≤i≤8) adapter cable in the adapter cable, if one end (i.e., the negative pole) of the i-th adapter cable is connected to the +12V pin of the auxiliary power interface of the artificial intelligence acceleration card, and the other end (i.e., the positive pole) is connected to the +12V pin of the power supply interface of the server motherboard, it is necessary to measure the power of this power supply circuit (i.e., the measurement channel). At this time, the switch in the middle of the i-th adapter cable is disconnected, and the power consumption tester is connected in series to this power supply circuit. The power consumption tester is used to test the power consumption of the power supply circuit. It should be noted that Figure 3 The current terminal of the power consumption tester is used to measure current, and the voltage terminal is used to measure voltage. The power consumption can be obtained based on the measured current and voltage. If one end (i.e., the negative pole) of the i-th adapter cable is connected to the GND pin of the auxiliary power interface of the artificial intelligence acceleration card, and the other end (i.e., the positive pole) is connected to the GND pin of the power supply interface of the server motherboard, the switch in the middle of the i-th adapter cable is closed, and the measurement channel of the power consumption tester in the i-th adapter cable is bypassed, and the power consumption in this path does not need to be measured.
[0052] From the above scheme, it can be seen that in order to measure the power consumption of the artificial intelligence accelerator card, it is necessary to use N+M power consumption testers to synchronously measure the power consumption data of N+M measurement channels. To this end, these N+M power consumption testers need to be cascaded to complete the synchronous measurement of the power consumption data of N+M measurement channels.
[0053] In some implementations, in order to truly test the power consumption of the entire card of the artificial intelligence accelerator card, it is necessary to ensure that each of the N+M measurement channels uses a consistent measurement time and measurement frequency, so that the power consumption data of the N+M measurement channels can be synchronously measured. The controller can interact with the first group of power consumption testers and the second group of power consumption testers to control each of the first group of power consumption testers and the second group of power consumption testers to measure the power consumption data at the same measurement time and / or measurement frequency.
[0054] Step 102: Determine the power consumption of the artificial intelligence acceleration card according to the first power consumption data and the second power consumption data.
[0055] In some implementations, the control machine determines the power consumption of the artificial intelligence accelerator card based on the power consumption data of the N measurement channels and the power consumption data of the M measurement channels.
[0056] Here, the power consumption data of N measurement channels and the power consumption data of M measurement channels can be summed to obtain the power consumption of the artificial intelligence accelerator card.
[0057] In some implementations, the power consumption obtained by N+M measurement channels at each measurement moment can be summed in real time during the power consumption test, and the power consumption of the artificial intelligence acceleration card can be output as needed after the test.
[0058] In some embodiments, the power consumption test process may include multiple test phases to determine the power consumption of the artificial intelligence acceleration card in the multiple test phases; and determine the average power consumption of the artificial intelligence acceleration card based on the power consumption of the artificial intelligence acceleration card in the multiple test phases.
[0059] Here, the method for determining the power consumption of the artificial intelligence acceleration card in each test phase can refer to the aforementioned steps 101 and 102. For multiple test phases, the control machine can control the server to run multiple artificial intelligence models in sequence, and the running period of each of the multiple artificial intelligence models belongs to one test phase; for multiple test phases corresponding to the multiple artificial intelligence models, the power consumption of the artificial intelligence acceleration card in the multiple test phases is determined. Furthermore, the power consumption of the artificial intelligence acceleration card in the multiple test phases is averaged to obtain the average power consumption of the artificial intelligence acceleration card.
[0060] Here, the power consumption of the artificial intelligence accelerator card is related to the wind temperature and / or wind speed at the air inlet of the server's cooling fan. If the air temperature at the air inlet exceeds a certain threshold and / or the air volume at the air inlet is lower than a certain threshold, the artificial intelligence accelerator card will run at a reduced frequency or even powered off; in the reduced frequency operation mode, the operating power consumption of the artificial intelligence accelerator card will be reduced. In order to ensure the accuracy of the test, it is necessary to ensure that the wind temperature and / or wind speed at the air inlet corresponding to multiple test stages remain consistent. To this end, a temperature sensor and / or wind speed sensor is set at the air inlet of the server base to accurately test the temperature and / or wind speed of the server's air inlet in real time when performing the power consumption test of the artificial intelligence accelerator card to ensure that the temperature and / or wind speed at the air inlet are consistent.
[0061] The technical solution of the embodiment of the present application is illustrated below in combination with specific application examples. In the following application examples, an artificial intelligence acceleration card is illustrated as a PCIe form factor standard card.
[0062] Figure 4 This is a system diagram of the power consumption test of the artificial intelligence acceleration card provided in the embodiment of the present application. The artificial intelligence card under test (such as artificial intelligence acceleration card 1, artificial intelligence acceleration card 2, ..., artificial intelligence acceleration card 8) has been inserted into the PCIe slot of the server (base). Independent of the artificial intelligence acceleration card server under test, a control machine is provided. The control machine is connected to the artificial intelligence acceleration card server under test through the network on the one hand, and is connected to multiple power consumption testers through the network on the other hand. Figure 4 Twelve power consumption testers are schematically shown, namely, power consumption tester 1 (corresponding to measurement channel 1), power consumption tester 2 (corresponding to measurement channel 2), ..., power consumption tester 12 (corresponding to measurement channel 12). In addition, a sensor is set at the air inlet of the base of the artificial intelligence acceleration card server under test, which is used to accurately test the temperature and / or wind speed of the air inlet of the artificial intelligence acceleration card server under test in real time when performing the power consumption test of the artificial intelligence acceleration card, to ensure that the temperature and / or wind speed of the air inlet is consistent. Multiple power consumption testers are cascaded to achieve synchronous sampling and synchronous measurement of all measurement channels of multiple power consumption testers. The control machine can receive power consumption data of multiple measurement channels sent by multiple power consumption testers, as well as receive data from sensors.
[0063] During the power consumption test of the artificial intelligence accelerator card, the control machine remotely logs in to the server of the artificial intelligence accelerator card under test, and runs the artificial intelligence core pressure tool (corresponding to the preheating stage of the artificial intelligence accelerator card under test) and several typical artificial intelligence models on it in sequence. Among them, typical artificial intelligence models may include image segmentation models, target detection models, face recognition models, natural language processing models, recommendation models, language large models, and so on. For the preheating stage and the period from the start of training of each artificial intelligence model until the training stops when the target accuracy value is reached (corresponding to the model testing stage), the power consumption tester will continuously and accurately test the power consumption of the artificial intelligence accelerator card (the power consumption of the test can be output periodically (such as every minute)). After each test stage, the power consumption of each test stage can be further calculated (Pi, i=1,2,3...). Finally, by performing operations such as averaging on Pi (i=1,2,3...), the average power consumption of the artificial intelligence accelerator card under test can be obtained. Figure 5 For example, after the warm-up stage, there are 5 test stages. Test stage 1 is the period from the start of training of the image segmentation model until the training stops when the target accuracy value is reached. In test stage 1, the power consumption of the artificial intelligence acceleration card is measured by the method of the embodiment of the present application to obtain power consumption 1 (P1); test stage 2 is the period from the start of training of the target detection model until the training stops when the target accuracy value is reached. In test stage 2, the power consumption of the artificial intelligence acceleration card is measured by the method of the embodiment of the present application to obtain power consumption 2 (P2); test stage 3 is the period from the start of training of the face recognition model until the training stops when the target accuracy value is reached. In test stage 3, the power consumption of the artificial intelligence acceleration card is measured by the method of the embodiment of the present application to obtain power consumption 3 (P3); test stage 4 is the period from the start of training of the natural language processing model until the training stops when the target accuracy value is reached. In test stage 4, the power consumption of the artificial intelligence acceleration card is measured by the method of the embodiment of the present application to obtain power consumption 4 (P4); test stage 5 is the period from the start of training of the recommendation model until the training stops when the target accuracy value is reached. In test stage 5, the power consumption of the artificial intelligence acceleration card is measured by the method of the embodiment of the present application to obtain power consumption 5 (P5). The average power consumption of the AI accelerator card is obtained by averaging P1, P2, P3, P4, and P5.
[0064] The technical solution of the embodiment of the present application provides a power consumption test method for an artificial intelligence accelerator card. Considering that there are two ways to power the artificial intelligence accelerator card, one way is to power the artificial intelligence accelerator card through a slot on the server motherboard, and the other way is to power the artificial intelligence accelerator card through a power supply interface on the server motherboard. Based on this, the power consumption data of the N measurement channels between the first interface of the artificial intelligence accelerator card and the slot on the server motherboard are tested by a first group of power consumption testers, and the power consumption data of the M measurement channels between the second interface of the artificial intelligence accelerator card and the power supply interface on the server motherboard are tested by a second group of power consumption testers. The power consumption data of the N measurement channels and the power consumption data of the N measurement channels are combined to determine the power consumption of the artificial intelligence accelerator card, thereby making the power consumption test of the artificial intelligence accelerator card more accurate. Furthermore, the power consumption of the artificial intelligence accelerator card obtained by testing the real running artificial intelligence model is more accurate and has more realistic reference and guiding significance than the power consumption obtained by fully compressing the utilization rate of the artificial intelligence accelerator card, and can effectively meet the power consumption test requirements of all artificial intelligence accelerator cards in the industry.
[0065] Figure 6 Schematic diagram of the structure of the power consumption test device provided in the embodiment of the present application, which is applied to a control machine such as Figure 6 As shown, the power consumption test device includes:
[0066] The communication unit 601 is used to obtain first power consumption data and second power consumption data, where the first power consumption data is power consumption data generated when a slot on a server mainboard supplies power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated when a power supply interface on the server mainboard supplies power to the artificial intelligence acceleration card;
[0067] The processing unit 602 is used to determine the power consumption of the artificial intelligence acceleration card according to the first power consumption data and the second power consumption data.
[0068] In some embodiments, the first power consumption data includes power consumption data of N measurement channels, and the second power consumption data includes power consumption data of M measurement channels, where N and M are positive integers;
[0069] The communication unit 601 is used to receive the power consumption data of the N measurement channels sent by the first group of power consumption testers and receive the power consumption data of the M measurement channels sent by the second group of power consumption testers, where N and M are positive integers; the N measurement channels are measurement channels between the first interface of the artificial intelligence acceleration card and the slot on the server motherboard; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server motherboard;
[0070] The processing unit 602 is used to determine the power consumption of the artificial intelligence acceleration card according to the power consumption data of the N measurement channels and the power consumption data of the M measurement channels.
[0071] In some embodiments, the first group of power consumption testers includes N power consumption testers, and the N power consumption testers have a one-to-one correspondence with the N measurement channels; wherein each of the N power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0072] In some embodiments, the second group of power consumption testers includes M power consumption testers, and the M power consumption testers have a one-to-one correspondence with the M measurement channels; wherein each of the M power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0073] In some implementations, the processing unit 602 is further configured to control each power consumption tester in the first group of power consumption testers and the second group of power consumption testers to measure power consumption data at the same measurement time and / or measurement frequency.
[0074] In some embodiments, the processing unit 602 is further used to determine the power consumption of the artificial intelligence acceleration card in multiple test stages; and determine the average power consumption of the artificial intelligence acceleration card based on the power consumption of the artificial intelligence acceleration card in the multiple test stages.
[0075] In some embodiments, the processing unit 602 controls the server to run multiple artificial intelligence models in sequence, and the running period of each of the multiple artificial intelligence models belongs to a test phase; for the multiple test phases corresponding to the multiple artificial intelligence models, the power consumption of the artificial intelligence acceleration card in the multiple test phases is determined.
[0076] Those skilled in the art should understand that Figure 6 The implementation functions of each unit in the power consumption testing device shown can be understood by referring to the relevant description of the aforementioned method. Figure 6 The functions of each unit in the power consumption testing device shown can be implemented by a program running on a processor, or can be implemented by a specific logic circuit.
[0077] Figure 7 Schematic diagram of the structure of the power consumption test system provided in the embodiment of the present application. Figure 7As shown, the system includes: a first group of power consumption testers 701, a second group of power consumption testers 702, a server mainboard 703, a control machine 704 and an artificial intelligence acceleration card 705; the first group of power consumption testers 701 is arranged between the first interface of the artificial intelligence acceleration card 705 and the slot on the server mainboard 703, and the second group of power consumption testers 702 is arranged between the second interface of the artificial intelligence acceleration card 705 and the power supply interface on the server mainboard 703; the control machine 704 establishes a communication connection with the first group of power consumption testers 701 and the second group of power consumption testers 702; wherein,
[0078] The first group of power consumption testers 701 is used to measure power consumption data of N measurement channels, where N is a positive integer; the N measurement channels are measurement channels between the first interface of the artificial intelligence acceleration card and the slot on the server mainboard;
[0079] The second group of power consumption testers 702 is used to measure power consumption data of M measurement channels, where M is a positive integer; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard;
[0080] The control machine 704 is used to receive the power consumption data of the N measurement channels sent by the first group of power consumption testers 701 and the power consumption data of the M measurement channels sent by the second group of power consumption testers 702; and determine the power consumption of the artificial intelligence acceleration card according to the power consumption data of the N measurement channels and the power consumption data of the M measurement channels.
[0081] In some embodiments, the first group of power consumption testers 701 includes N power consumption testers, and the N power consumption testers have a one-to-one correspondence with the N measurement channels; wherein each of the N power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0082] In some implementations, for each of the N power consumption testers, one end of the power consumption tester is connected to a pin of the first interface and the other end of the power consumption tester is connected to a pin of the slot.
[0083] In some embodiments, the second group of power consumption testers 702 includes M power consumption testers, and the M power consumption testers have a one-to-one correspondence with the M measurement channels; wherein each of the M power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
[0084] In some embodiments, for each of the M power consumption testers, the power consumption tester is connected in parallel with a switch, and one end of the power consumption tester is connected to the pin of the second interface and the other end is connected to the pin of the power supply interface; wherein, if the pin of the second interface connected to one end is a pin with a first voltage and the pin of the power supply interface connected to the other end is also a pin with the first voltage, the switch is disconnected; if the pin of the second interface connected to one end is a ground pin and the pin of the power supply interface connected to the other end is also a ground pin, the switch is closed.
[0085] Those skilled in the art should understand that Figure 7 The implementation of the first group of power consumption testers and the second group of power consumption testers in the power consumption test system shown can be understood by referring to the relevant description of the aforementioned method.
[0086] Figure 8 800 is a schematic structural diagram of a processing device 800 provided in an embodiment of the present application. The processing device may be the control machine in the above solution, Figure 8 The processing device 800 shown includes a processor 810, which can call and run a computer program from a memory to implement the method in the embodiment of the present application.
[0087] Alternatively, if Figure 8 As shown, the processing device 800 may further include a memory 820. The processor 810 may call and run a computer program from the memory 820 to implement the method in the embodiment of the present application.
[0088] The memory 820 may be a separate device independent of the processor 810 , or may be integrated into the processor 810 .
[0089] Alternatively, if Figure 8 As shown, the processing device 800 may further include a transceiver 830, and the processor 810 may control the transceiver 830 to communicate with other devices, specifically, may send information or data to other devices, or receive information or data sent by other devices.
[0090] The transceiver 830 may include a transmitter and a receiver. The transceiver 830 may further include an antenna, and the number of the antennas may be one or more.
[0091] The processing device 800 may specifically be a control machine in an embodiment of the present application, and the processing device 800 may implement the corresponding processes implemented by the control machine in each method in the embodiment of the present application.
[0092] It should be understood that the processor of the embodiment of the present application may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above processor can be a general processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or the hardware and software modules in the decoding processor are combined and performed. The software module can be located in a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, and other mature storage media in the art. The storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.
[0093] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAM bus random access memory (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.
[0094] It should be understood that the above-mentioned memory is exemplary but not restrictive. For example, the memory in the embodiments of the present application may also be static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous link dynamic random access memory (synch link DRAM, SLDRAM) and direct memory bus random access memory (Direct Rambus RAM, DR RAM), etc. That is to say, the memory in the embodiments of the present application is intended to include but not limited to these and any other suitable types of memory.
[0095] The embodiment of the present application also provides a computer-readable storage medium for storing a computer program. The computer-readable storage medium can be applied to the control machine in the embodiment of the present application, and the computer program enables the computer to execute the corresponding process implemented by the control machine in each method of the embodiment of the present application, which will not be described here for the sake of brevity.
[0096] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0097] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0098] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, 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 integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0099] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A power consumption test method, It is characterized in that Applied to a control machine, the method comprises: Acquire first power consumption data and second power consumption data, where the first power consumption data is power consumption data generated by a slot on a server mainboard supplying power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated by a power supply interface on the server mainboard supplying power to the artificial intelligence acceleration card; The power consumption of the artificial intelligence acceleration card is determined according to the first power consumption data and the second power consumption data.
2. The method according to claim 1, It is characterized in that The first power consumption data includes power consumption data of N measurement channels, and the second power consumption data includes power consumption data of M measurement channels, where N and M are positive integers; The obtaining of the first power consumption data and the second power consumption data includes: Receiving the power consumption data of the N measurement channels sent by the first group of power consumption testers and receiving the power consumption data of the M measurement channels sent by the second group of power consumption testers; The N measurement channels are measurement channels between the first interface of the artificial intelligence acceleration card and the slot on the server mainboard; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard.
3. The method according to claim 2, It is characterized in that The first group of power consumption testers includes N power consumption testers, and the N power consumption testers have a one-to-one correspondence with the N measurement channels; wherein each of the N power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
4. The method according to claim 2, It is characterized in that The second group of power consumption testers includes M power consumption testers, and the M power consumption testers have a one-to-one correspondence with the M measurement channels; wherein each of the M power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
5. The method according to any one of claims 2 to 4, It is characterized in that The method further comprises: Control each power consumption tester in the first group of power consumption testers and the second group of power consumption testers to measure power consumption data at the same measurement time and / or measurement frequency.
6. The method according to any one of claims 1 to 4, It is characterized in that The method further comprises: Determining the power consumption of the artificial intelligence accelerator card during multiple test phases; Determine the average power consumption of the artificial intelligence acceleration card according to the power consumption of the artificial intelligence acceleration card in the multiple test phases.
7. The method according to claim 6, It is characterized in that The determining the power consumption of the artificial intelligence acceleration card in multiple test phases includes: Controlling the server to sequentially run a plurality of artificial intelligence models, wherein the running period of each of the plurality of artificial intelligence models belongs to a testing phase; For multiple test phases corresponding to the multiple artificial intelligence models, determine the power consumption of the artificial intelligence acceleration card in the multiple test phases.
8. A power consumption test device, It is characterized in that Applied to a control machine, the device comprises: A communication unit, used to obtain first power consumption data and second power consumption data, wherein the first power consumption data is power consumption data generated by a slot on a server mainboard supplying power to an artificial intelligence acceleration card, and the second power consumption data is power consumption data generated by a power supply interface on the server mainboard supplying power to the artificial intelligence acceleration card; A processing unit is used to determine the power consumption of the artificial intelligence acceleration card according to the first power consumption data and the second power consumption data.
9. The device according to claim 8, It is characterized in that The first power consumption data includes power consumption data of N measurement channels, and the second power consumption data includes power consumption data of M measurement channels, where N and M are positive integers; A communication unit is used to receive the power consumption data of the N measurement channels sent by the first group of power consumption testers and to receive the power consumption data of the M measurement channels sent by the second group of power consumption testers; the N measurement channels are measurement channels between the first interface of the artificial intelligence acceleration card and the slot on the server motherboard; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server motherboard.
10. A power consumption test system, It is characterized in that The system includes: a first group of power consumption testers, a second group of power consumption testers, a server mainboard, a control machine and an artificial intelligence acceleration card; the first group of power consumption testers is arranged between the first interface of the artificial intelligence acceleration card and the slot on the server mainboard, and the second group of power consumption testers is arranged between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard; the control machine establishes a communication connection with the first group of power consumption testers and the second group of power consumption testers; wherein, The first group of power consumption testers is used to measure power consumption data of N measurement channels, where N is a positive integer; the N measurement channels are measurement channels between the first interface of the artificial intelligence accelerator card and the slot on the server mainboard; The second group of power consumption testers is used to measure power consumption data of M measurement channels, where M is a positive integer; the M measurement channels are measurement channels between the second interface of the artificial intelligence acceleration card and the power supply interface on the server mainboard; The control machine is used to receive the power consumption data of the N measurement channels sent by the first group of power consumption testers and receive the power consumption data of the M measurement channels sent by the second group of power consumption testers; and determine the power consumption of the artificial intelligence acceleration card according to the power consumption data of the N measurement channels and the power consumption data of the M measurement channels.
11. The device according to claim 10, It is characterized in that The first group of power consumption testers includes N power consumption testers, and the N power consumption testers have a one-to-one correspondence with the N measurement channels; wherein each of the N power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
12. The device according to claim 11, It is characterized in that For each of the N power consumption testers, one end of the power consumption tester is connected to the pin of the first interface and the other end of the power consumption tester is connected to the pin of the slot.
13. The device according to claim 10, It is characterized in that The second group of power consumption testers includes M power consumption testers, and the M power consumption testers have a one-to-one correspondence with the M measurement channels; wherein each of the M power consumption testers is used to measure the power consumption data on the measurement channel corresponding to the power consumption tester.
14. The device according to claim 13, It is characterized in that For each of the M power consumption testers, the power consumption tester is connected in parallel with a switch, one end of which is connected to the pin of the second interface and the other end is connected to the pin of the power supply interface; wherein, If the pin of the second interface connected to the one end is a pin with a first voltage and the pin of the power supply interface connected to the other end is also a pin with a first voltage, the switch is disconnected; If the pin of the second interface connected to the one end is a ground pin and the pin of the power supply interface connected to the other end is also a ground pin, the switch is closed.
15. A computer-readable storage medium, It is characterized in that Used to store a computer program, wherein the computer program causes a computer to execute the method according to any one of claims 1 to 7.
