A heterogeneous computing cluster power-on / off control method and circuit and storage medium
By introducing instruction signal lines and status signal lines into heterogeneous computing clusters, automated power-on and power-off control of heterogeneous computing clusters is achieved, solving the problem of errors caused by manual control, improving the reliability and efficiency of heterogeneous computing clusters, and supporting complex interconnection topologies.
Patent Information
- Application Number
- CN202211726493.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-30
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2042-12-30
AI Technical Summary
In existing technologies, the power-on and power-off sequence of heterogeneous computing clusters relies on manual control, which is prone to errors and can prevent the CPU server and GPU box from establishing a communication connection. Furthermore, it is not suitable for complex multi-header and multi-tailer interconnected clusters, which is labor-intensive and inefficient.
By introducing command signal lines, head status signal lines, and tail status signal lines between the head and tail of the machine, automated power-on and power-off control of the heterogeneous computing cluster is achieved, ensuring that the head and tail of the machine are powered on and off synchronously in a preset order, and the power-on and power-off operations are automatically executed by the controller and computer program.
It simplifies power-on and power-off operations, improves the reliability and efficiency of heterogeneous computing clusters, supports complex interconnect topologies, avoids human error, and saves human resources.
Smart Images

Figure CN116126404B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of heterogeneous computing cluster power-on / off control technology, and in particular to a heterogeneous computing cluster power-on / off control method, circuit, and storage medium. Background Technology
[0002] The rapid development of AI computing, high-performance computing, and artificial intelligence applications has driven the widespread adoption of heterogeneous computing devices. (See also...) Figure 1 and Figure 2 As shown, in order to obtain more powerful computing capabilities and scalability of heterogeneous computing devices, multiple GPU modules are usually placed in separate chassis and separated from the CPU server. The CPU server is usually called the front end, and the GPU box is usually called the back end. The two communicate with each other using PCIe high-speed cables.
[0003] After separating the GPU enclosure and CPU server, the power-on / off sequence of the two devices has specific requirements. The normal power-on sequence is: the GPU enclosure system powers on first, followed by the CPU server. After powering on, the CPU server initializes all internal and external devices before applications can be used. If external devices power on or after the CPU server, the CPU server will be unable to establish a PCIe communication connection with the GPU enclosure, thus preventing the execution of GPU programs or data. The normal power-off sequence is: the CPU server safely powers off first, followed by the GPU enclosure. During the CPU server shutdown process, all peripherals and applications should be shut down first. If peripherals are powered off or shut down before this, running programs or stored data may be lost, and in severe cases, system crashes may occur. During use, data center service personnel need to wait and confirm that the tail unit has completed power-on (more than 2 minutes) before controlling the head unit's power-on. When a large number of products are delivered simultaneously, the workload for service personnel is significant, making this solution manpower-intensive and inefficient. Relying on manual control of the power-on / off sequence carries uncontrollable risks. Even slight negligence can lead to operational errors, causing the CPU server to fail to establish a communication connection with the GPU enclosure. It is not suitable for complex multi-header and multi-tailer interconnected clusters. Each header is connected to each tailer, resulting in a complex topology. Manually operating the power-on / off sequence is tedious and prone to errors. Summary of the Invention
[0004] To solve the above-mentioned technical problems, or at least partially solve them, the present invention provides a method, circuit, and storage medium for controlling the power on / off of a heterogeneous computing cluster.
[0005] In a first aspect, the present invention provides a method for power-on / off control of a heterogeneous computing cluster, applicable to a heterogeneous computing cluster comprising a head unit and a tail unit, including:
[0006] In response to the power-on signal, each of the tail sections immediately performs a power-on action and issues a tail section power-on signal during the power-on process until the tail section power-on is completed; in response to the end of the tail section power-on signal, the head section immediately performs a power-on action and issues a head section power-on signal during the power-on process until the head section power-on is completed.
[0007] In response to the shutdown signal, each of the machine heads immediately performs a shutdown action and issues a machine head shutdown signal during the shutdown process until the machine head shutdown is completed; in response to the end of the machine head shutdown signal, the machine tail immediately performs a shutdown action and issues a machine tail shutdown signal during the shutdown process until the machine tail shutdown is completed.
[0008] Furthermore, the head and tail are connected to a pull-up level command signal line, a head status signal line, and a tail status signal line;
[0009] The command signal line transmits control signals, including: the power-on signal, the power-off signal, the restart signal, the tail power-on signal, the head power-on signal, the tail power-off signal, and the head power-off signal;
[0010] The machine head status signal line transmits machine head status signals, which include: a machine head power-on signal and a machine head power-off signal.
[0011] The tail status signal line transmits tail status signals, which include: a tail power-on signal and a tail power-off signal.
[0012] Furthermore, in response to the restart signal, each of the machine heads immediately performs a shutdown action and issues a machine head shutdown signal during the shutdown process until the machine head shutdown is completed; in response to the end of the machine head shutdown signal, each of the machine tails immediately performs a shutdown action and issues a machine tail shutdown signal during the shutdown process until the machine tail shutdown is completed; in response to the end of the machine tail shutdown signal, each of the machine tails waits for a set time before performing a power-on action and issues a machine tail power-on signal during the power-on process until the machine tail power-on is completed; in response to the end of the machine tail power-on signal, each of the machine heads immediately performs a power-on action and issues a machine head power-on signal during the power-on process until the machine head power-on is completed.
[0013] Furthermore, in response to the head start signal, each head immediately performs a start-up action and issues a head start-up signal during the start-up process until the head start-up is complete;
[0014] In response to the machine head shutdown signal, each machine head immediately performs a shutdown action and sends a machine head shutdown signal during the shutdown process until the machine head shutdown is completed;
[0015] In response to the tail start signal, each tail immediately performs a start action and sends a tail start signal during the start process until the tail start is completed;
[0016] In response to the tail shutdown signal, each tail immediately performs a shutdown action and issues a tail shutdown signal during the shutdown process until the tail shutdown is completed.
[0017] Furthermore, each of the tail sections lowers the tail section status line during the power-on or power-off process, and raises the tail section status line after the power-on or power-off process is completed.
[0018] Each of the aforementioned machine heads lowers its status line during the power-on or power-off process and raises its status line after power-on is completed.
[0019] The tail section generates a tail power-on signal by pulling the tail status line low, and the tail power-on signal ends when all the tail sections pull the tail status line high; the head section generates a head power-on signal by pulling the head status line low, and the head power-on signal ends when all the head sections pull the head status line high.
[0020] Furthermore, the pulse widths of the power-on signal, power-off signal, restart signal, tail power-on signal, head power-on signal, tail power-off signal, and head power-off signal are different.
[0021] Furthermore, in response to the received power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, and head-end power-off command, any of the head or tail units connected to the command signal line sends a corresponding power-on signal, power-off signal, restart signal, tail-end power-on signal, head-end power-on signal, tail-end power-off signal, and head-end power-off signal on the command signal line. The power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, and head-end power-off command originate from the management network or operation buttons.
[0022] In a second aspect, the present invention provides a heterogeneous computing cluster power-on / off control circuit, characterized in that it includes:
[0023] A controller is configured in each CPU server (serving as the head unit) and GPU box (serving as the tail unit). Each controller is connected to a power-on control cable via GPIO. The power-on control cable includes a pull-up command signal line, a head unit status signal line, and a tail unit status signal line. The controller is configured with a storage medium for storing a computer program. The controller executes the computer program to implement the heterogeneous computing cluster power-on control method.
[0024] Furthermore, the power on / off control cable is configured with an interface for connecting to the controller at predetermined intervals.
[0025] Thirdly, the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a controller, implements the heterogeneous computing cluster power-on / off control method.
[0026] The technical solutions provided in the embodiments of the present invention have the following advantages compared with the prior art:
[0027] This application eliminates the need for manual control of the head and tail power-on / off sequence. By controlling the command signal lines, head status signal lines, and tail status signal lines, the power-on and power-off control processes of the head and tail are linked, simplifying operation and saving manpower. This application supports heterogeneous computing clusters with complex interconnect topologies and enables one-click power-on / off control of complex heterogeneous computing clusters. This application improves the reliability of power-on / off control for heterogeneous computing clusters. Controlling the power-on / off sequence through a preset computer program avoids errors caused by manual operation. Attached Figure Description
[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0029] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0030] Figure 1 This is a schematic diagram of a heterogeneous computing cluster;
[0031] Figure 2 This is a schematic diagram illustrating the connection method between a CPU server (the head unit) and a GPU box (the tail unit) in a heterogeneous computing cluster.
[0032] Figure 3 A flowchart of a heterogeneous computing cluster power-on / off control method provided in an embodiment of the present invention;
[0033] Figure 4 This is a schematic diagram of the signals executed when a power-on command is executed in a heterogeneous computing cluster power-on control method provided in an embodiment of the present invention;
[0034] Figure 5 This is a schematic diagram of the signals when executing a shutdown command in a heterogeneous computing cluster power-on / off control method provided in an embodiment of the present invention;
[0035] Figure 6 This is a schematic diagram of a heterogeneous computing cluster power-on / off control circuit provided in an embodiment of the present invention. Detailed Implementation
[0036] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0037] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.
[0038] Example 1
[0039] This invention provides a method for controlling the power-on / off of a heterogeneous computing cluster, applicable to a heterogeneous computing cluster comprising a head unit and a tail unit.
[0040] See Figure 6 As shown, in order to achieve orderly power-on and power-off control of the head and tail of the cluster, each head and tail is connected to a pull-up level command signal line, a head status signal line, and a tail status signal line.
[0041] The command signal line is used to transmit control signals, which include: power-on signal, power-off signal, restart signal, tail power-on signal, head power-on signal, tail power-off signal, and head power-off signal.
[0042] Specifically, the pulse widths of the power-on signal, power-off signal, restart signal, tail-end power-on signal, head-end power-on signal, tail-end power-off signal, and head-end power-off signal are different. For example, the pulse width of the power-on signal is 100ms, and the pulse width of the power-off signal is 1000ms. The command signal line is a pull-up signal line, which is high by default. When any of the head-end or tail-end signals generates a pulse representing the power-on signal, power-off signal, restart signal, tail-end power-on signal, head-end power-on signal, tail-end power-off signal, or head-end power-off signal, a low-level signal needs to be generated to pull down the command signal line to generate a pulse of the corresponding width.
[0043] The head unit status signal line is used to transmit head unit status signals, which include: head unit power-on signal and head unit power-off signal.
[0044] Each of the aforementioned machine heads pulls the machine head status line low during the power-on or power-off process, and pulls the machine head status line high after the power-on or power-off process is completed. Since each machine head is connected to the machine head status line via an "AND" connection, during the power-on or power-off process, if any one of the machine heads pulls the machine head status line low, a machine head power-on signal or a machine head power-off signal is generated. When all the machine heads pull the machine head status line high, the machine head power-on signal or the machine head power-off signal ends.
[0045] The tail status signal line is used to transmit tail status signals, which include: tail power-on signal and tail power-off signal.
[0046] Each tail section pulls down the tail status line during the power-on or power-off process, and pulls up the tail status line after the power-on or power-off process is completed. Since each tail section is connected to the tail status line via an "AND" connection, during the power-on or power-off process, if any one tail section pulls down the tail status line, a tail power-on signal or a tail power-off signal is generated. When all tail sections pull up the tail status line, the tail power-on signal or tail power-off signal ends.
[0047] In the specific implementation process, please refer to Figure 3 As shown, the heterogeneous computing cluster power-on / off control method provided in this embodiment includes:
[0048] In response to a received power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, or head-end power-off command, any of the head or tail units connected to the command signal line sends a corresponding power-on signal, power-off signal, restart signal, tail-end power-on signal, head-end power-on signal, tail-end power-off signal, or head-end power-off signal on the command signal line. The power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, and head-end power-off command originate from the management network or operation buttons.
[0049] The machine head and the machine tail connected to the command signal line detect whether the command signal line has the power-on signal or the power-off signal.
[0050] If the power-on signal is present on the command signal line, refer to... Figure 4 As shown, in response to the power-on signal, each tail section immediately performs a power-on action and sends a tail-on-power-in signal through the tail status signal line during the power-on process until the tail section is powered on completely; after all tail sections are powered on, the tail-on-power-in signal ends. If the power-on signal is present, each head section, in response to the end of the tail-on-power-in signal on the tail status signal line, immediately performs a power-on action and sends a head-on-power-in signal through the head status signal line during the power-on process until the head section is powered on completely.
[0051] If the power-off signal is present on the command signal line. See also... Figure 5 As shown, in response to the shutdown signal, each of the machine heads immediately performs a shutdown action and sends a shutdown signal through the machine head status signal line during the shutdown process until the machine head shutdown is completed; after all the machine heads have been shut down, the shutdown signal ends. If the shutdown signal is present, each of the machine tails immediately performs a shutdown action in response to the end of the shutdown signal on the machine head status signal line and sends a shutdown signal through the tail status signal line during the shutdown process until the tail shutdown is completed.
[0052] In a preferred embodiment, the head unit and the tail unit connected to the command signal line detect whether the command signal line has the restart signal.
[0053] If the restart signal is present on the command signal line, in response to the restart signal, each of the machine heads immediately performs a shutdown action and sends a machine head shutdown signal through the machine head status signal line during the shutdown process until the machine head shutdown is completed; if the restart signal is present first, in response to the end of the machine head shutdown signal on the machine head status signal line, the tail immediately performs a shutdown action and sends a tail shutdown signal through the tail status signal line during the shutdown process until the tail shutdown is completed; if the restart signal is present first, in response to the end of the tail shutdown signal on the tail status signal line, each of the machine tails waits a set time before performing a power-on action and sends a tail power-on signal through the tail status signal line during the power-on process until the tail power-on is completed; if the restart signal is present first, in response to the end of the tail power-on signal on the tail status signal line, the machine head immediately performs a power-on action and sends a machine head power-on signal through the machine head status signal line during the power-on process until the machine head power-on is completed.
[0054] In a preferred embodiment, in addition to supporting the combined on / off control of the head and tail of the machine, this application also supports the control of the head being turned on and off independently, as well as the control of the tail being turned on and off independently.
[0055] The command signal line is connected to the head unit and the tail unit to detect whether the command signal line has the tail unit power-on signal, head unit power-on signal, tail unit power-off signal, and head unit power-off signal.
[0056] If the machine head power-on signal is present on the command signal line, in response to the machine head power-on signal, each machine head immediately performs a power-on action and sends a machine head power-on signal through the machine head status signal line during the power-on process until the machine head power-on is completed.
[0057] If the machine head shutdown signal is present on the command signal line, in response to the machine head shutdown signal, each machine head immediately performs a shutdown action and sends a machine head shutdown in progress signal through the machine head status signal line during the shutdown process, until the machine head shutdown is completed. If the machine head shutdown signal is present first, the tail section will not shut down in response to the end of the machine head shutdown in progress signal on the machine head status signal line.
[0058] If the tail-end power-on signal is present on the command signal line, in response to the tail-end power-on signal, each tail-end immediately performs a power-on action and sends a tail-end power-on in progress signal through the tail-end status signal line during the power-on process until the tail-end power-on is completed. If the tail-end power-on signal is present first, the head-end will not power on in response to the end of the tail-end power-on in progress signal on the tail-end status signal line.
[0059] If the tail shutdown signal is present on the command signal line, in response to the tail shutdown signal, each tail immediately performs a shutdown action and sends a tail shutdown signal through the tail status signal line during the shutdown process until the tail shutdown is completed.
[0060] Example 2
[0061] See Figure 6 As shown, an embodiment of the present invention provides a power-on / off control circuit for a heterogeneous computing cluster, comprising:
[0062] Controllers are configured in each CPU server (head unit) and GPU enclosure (tail unit). Each controller uses a CPLD and is connected to a power-on / off control cable via GPIO. In practice, the power-on / off control cables are configured with interfaces for connecting to the controllers at predetermined intervals. Each power-on / off control cable includes a pull-up command signal line, a head unit status signal line, and a tail unit status signal line. The controller is configured with a storage medium for storing the computer program, and the controller executes the computer program to implement the heterogeneous computing cluster power-on / off control method.
[0063] Example 3
[0064] This invention provides a computer-readable storage medium that stores a computer program. When the computer program is executed by the controller in embodiment 2, it implements the heterogeneous computing cluster power-on / off control method described in embodiment 1.
[0065] In the embodiments provided by this invention, it should be understood that the disclosed structures and methods can be implemented in other ways. For example, the structural embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, structures, or units, and may be electrical, mechanical, or other forms.
[0066] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0067] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0068] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for power-on / off control of a heterogeneous computing cluster, applied to a heterogeneous computing cluster comprising a head unit and a tail unit, characterized in that, include: To achieve orderly power-on / off control of the head and tail units in the cluster, each head and tail unit is connected to a pull-up command signal line, a head status signal line, and a tail status signal line. The command signal line is used to transmit control signals, including: power-on signal, power-off signal, restart signal, tail power-on signal, head power-on signal, tail power-off signal, and head power-off signal. The head status signal line transmits head status signals, including: head power-on signal and head power-off signal. The tail status signal line transmits tail status signals, including: tail power-on signal and tail power-off signal. Each tail unit pulls down its tail status line during power-on or power-off and pulls it up after power-on or power-off is complete. Similarly, each head unit pulls down its head status line during power-on or power-off and pulls it up after power-on is complete. In response to the power-on signal on the command signal line, each tail section immediately performs a power-on action and sends a tail-on-power-in signal through the tail status signal line during the power-on process until the tail section is powered on; the head section, in response to the end of the tail-on-power-in signal on the tail status signal line, immediately performs a power-on action and sends a head-on-power-in signal through the head status signal line during the power-on process until the head section is powered on. In response to the shutdown signal on the command signal line, each of the machine heads immediately performs a shutdown action and sends a machine head shutdown signal through the machine head status signal line during the shutdown process until the machine head shutdown is completed; in response to the end of the machine head shutdown signal, the tail immediately performs a shutdown action and sends a tail shutdown signal through the tail status signal line during the shutdown process until the tail shutdown is completed.
2. The heterogeneous computing cluster power-on / off control method according to claim 1, characterized in that, In response to the restart signal, each of the machine heads immediately performs a shutdown action and issues a machine head shutdown signal during the shutdown process until the machine head shutdown is completed; in response to the end of the machine head shutdown signal, each of the machine tails immediately performs a shutdown action and issues a machine tail shutdown signal during the shutdown process until the machine tail shutdown is completed; in response to the end of the machine tail shutdown signal, each of the machine tails waits for a set time before performing a power-on action and issues a machine tail power-on signal during the power-on process until the machine tail power-on is completed; in response to the end of the machine tail power-on signal, each of the machine heads immediately performs a power-on action and issues a machine head power-on signal during the power-on process until the machine head power-on is completed.
3. The heterogeneous computing cluster power-on / off control method according to claim 1, characterized in that, In response to the head start signal, each head immediately performs a start-up action and sends a head start-up signal during the start-up process until the head start-up is completed; In response to the machine head shutdown signal, each machine head immediately performs a shutdown action and sends a machine head shutdown signal during the shutdown process until the machine head shutdown is completed; In response to the tail start signal, each tail immediately performs a start action and sends a tail start signal during the start process until the tail start is completed; In response to the tail shutdown signal, each tail immediately performs a shutdown action and issues a tail shutdown in progress signal during the shutdown process until the tail shutdown is completed.
4. The heterogeneous computing cluster power-on / off control method according to claim 1, characterized in that, The pulse widths of the power-on signal, power-off signal, restart signal, tail power-on signal, head power-on signal, tail power-off signal, and head power-off signal are different.
5. The heterogeneous computing cluster power-on / off control method according to claim 1, characterized in that, In response to the received power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, and head-end power-off command, any of the head or tail units connected to the command signal line sends a corresponding power-on signal, power-off signal, restart signal, tail-end power-on signal, head-end power-on signal, tail-end power-off signal, and head-end power-off signal on the command signal line. The power-on command, power-off command, restart command, tail-end power-on command, head-end power-on command, tail-end power-off command, and head-end power-off command originate from the management network or operation buttons.
6. A heterogeneous computing cluster power-on / off control circuit, characterized in that, include: A controller is configured in each CPU server (serving as the head unit) and GPU box (serving as the tail unit). Each controller is connected to a power-on / off control cable via GPIO. The power-on / off control cable includes a pull-up command signal line, a head unit status signal line, and a tail unit status signal line. The controller is configured with a storage medium for storing a computer program. The controller executes the computer program to implement the heterogeneous computing cluster power-on / off control method as described in any one of claims 1-5.
7. The heterogeneous computing cluster power-on / off control circuit according to claim 6, characterized in that, The power on / off control cable is configured with an interface for connecting to the controller at predetermined intervals.
8. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the controller of the heterogeneous computing cluster power-on / off control circuit of claim 6 or 7, it implements the heterogeneous computing cluster power-on / off control method as described in any one of claims 1-5.
Citation Information
Patent Citations
Switch system startup management method and device
CN110740104A
Machine head and machine tail communication method, system and device and computer readable storage medium
CN113852472A
