Hybrid computing power control method, device, equipment and storage medium

By actively requesting the task warehouse to perform task calculations by the computing node, the problem of low utilization efficiency of computing resources in the existing technology is solved, and more efficient resource utilization and scalability are achieved.

CN115640121BActive Publication Date: 2024-08-23YANGTZE DELTA IND INNOVATION CENT OF QUANTUM SCI & TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211193888.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-28
Publication Date
2024-08-23
Estimated Expiration
2042-09-28

AI Technical Summary

Technical Problem

In existing hybrid computing systems, the utilization efficiency of computing resources is low, reliance on scheduling algorithms leads to waste of computing resources, and it is difficult to expand other forms of computing nodes.

Method used

Using a hybrid computing power control method, computing nodes actively send computing requests to task warehouses, and task calculations are performed through the interaction between computing nodes and task warehouses, reducing dependence on scheduling algorithms. The task warehouse performs task matching based on computing requests to make full use of different Compute node capabilities.

Benefits of technology

It reduces the complexity of task scheduling, improves the utilization of computing resources, and provides expansion space for other types of computing nodes in the future.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115640121B
    Figure CN115640121B
Patent Text Reader

Abstract

The present invention provides a hybrid computing power control method, device, equipment and storage medium, wherein the method includes: in response to a computing request of a computing node, querying a matching task that matches the computing node from the tasks to be calculated; when a matching task is queried, returning the task information of the matching task to the computing node, so that the computing node performs calculations based on the task information of the matching task; receiving the calculation result sent by the computing node, and updating the task status of the matching task based on the calculation result; when no matching task is queried, returning the information that no matching task is queried to the computing node, so that the computing node resends the calculation request after a preset time. The hybrid computing power control method, device, equipment and storage medium provided by the present invention do not need to rely on a scheduling algorithm for resource scheduling, reduce the complexity of task scheduling, can give full play to the computing power of different computing nodes as much as possible, and improve the utilization rate of computing power resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of quantum computing technology, and in particular to a hybrid computing power manipulation method, device, equipment and storage medium. Background Art

[0002] Quantum computing is a new type of computing method based on the principles of quantum mechanics and quantum algorithms, which can far exceed the capabilities of classical computers in certain specific problems. As quantum computing technology matures, the future computing system will inevitably be a hybrid structure that includes both classical and quantum computers.

[0003] At present, the software architecture design ideas for this hybrid computing are to manage quantum computing as a special service type in the existing cloud service system. That is, different computing powers are regarded as callable services. Quantum Computing as a Service (QCaaS) is also mentioned in many literatures.

[0004] The idea of ​​treating different computing power as callable services not only greatly increases the complexity of task scheduling, but also makes it difficult to expand for other forms of computing nodes in the future. In addition, all computing resources themselves are in a passive state of waiting for calls. The efficiency of resource utilization of the entire system is heavily dependent on the quality of the scheduling algorithm, and resource scheduling itself is an NP problem, which often leads to a large amount of computing power waste in the system. Summary of the invention

[0005] The present invention provides a hybrid computing power control method, device, equipment and storage medium to solve the defects in the prior art that computing power cannot be effectively utilized, strongly relies on scheduling algorithms, and causes waste of computing power resources.

[0006] The present invention provides a hybrid computing power control method, which is applied to a task warehouse in a computing power cluster, wherein the computing power cluster includes a task warehouse and at least one computing node, wherein the computing type of the at least one computing node includes at least one of a quantum computing type, a scalar computing type, and a tensor computing type, and the computing type of the at least one computing node includes at least a quantum computing type. The method includes:

[0007] In response to a computing request of a computing node, querying matching tasks that match the computing node from tasks to be computed;

[0008] When a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task;

[0009] Receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result;

[0010] In the case where no matching task is found, information indicating that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period.

[0011] According to the hybrid computing power control method provided by the present invention, in response to a computing request of a computing node, querying a matching task that matches the computing node from tasks to be calculated includes:

[0012] In response to a computing request of a computing node, determining a computing type and computing resources of the computing node carried in the computing request;

[0013] Based on the computing type and computing resources of the computing node, a matching task matching the computing type and computing resources is searched from the tasks to be computed.

[0014] According to the hybrid computing power control method provided by the present invention, the task status includes waiting, calculating, success or failure.

[0015] The hybrid computing power control method provided by the present invention also includes:

[0016] Receive and store the computing tasks submitted by users;

[0017] A task identifier of the task to be calculated is generated, and the task identifier is returned to the user, so that the user can query the task status of the task to be calculated based on the task identifier.

[0018] According to the hybrid computing power control method provided by the present invention, the task identifier is returned to the user so that the user queries the task status of the task to be calculated based on the task identifier, and then further includes:

[0019] When the task status of the task to be calculated is success or failure, in response to the query request of the user, returning the calculation result or failure information of the task to be calculated to the user;

[0020] Delete the task to be calculated.

[0021] According to the hybrid computing power control method provided by the present invention, the task information of the task to be calculated includes at least one of user information, priority, required computing type, required resource capabilities, input data, timeout threshold and operator description.

[0022] The present invention also provides a hybrid computing power control method, which is applied to a computing node in a computing power cluster, wherein the computing power cluster includes a task warehouse and at least one computing node, the computing type of the at least one computing node includes at least one of a quantum computing type, a scalar computing type, and a tensor computing type, and the computing type of the at least one computing node includes at least a quantum computing type, and the method includes:

[0023] Sending a computing request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be computed based on the computing request;

[0024] When the task warehouse finds a matching task, performing calculation based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and sending the calculation result to the task warehouse;

[0025] When no matching task is found in the task repository, information indicating that no matching task is found is received, and a calculation request is resent after a preset time period.

[0026] The present invention also provides a hybrid computing power control device, comprising:

[0027] A matching task query unit, configured to query a matching task that matches the computing node from the tasks to be computed in response to a computing request of the computing node;

[0028] A task information returning unit, configured to return the task information of the matching task to the computing node when a matching task is found, so that the computing node performs calculation based on the task information of the matching task;

[0029] A task status updating unit, configured to receive the calculation result sent by the calculation node, and update the task status of the matching task based on the calculation result;

[0030] The information returning unit is used to return information indicating that no matching task is found to the computing node when no matching task is found, so that the computing node resends the computing request after a preset time period.

[0031] The present invention also provides a hybrid computing power control device, comprising:

[0032] A calculation request sending unit, used to send a calculation request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be calculated based on the calculation request;

[0033] A task calculation unit, configured to, when a matching task is found in the task warehouse, perform calculation based on the task information of the matching task returned by the task warehouse, obtain a calculation result, and send the calculation result to the task warehouse;

[0034] The information receiving unit is used to receive the information returned by the task warehouse indicating that no matching task has been found when the task warehouse has not found a matching task, and to resend the calculation request after a preset time period.

[0035] The present invention also provides an electronic device or quantum device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, a hybrid computing power control method as described above is implemented.

[0036] The present invention also provides a non-transitory computer-readable storage medium on which an electronic computer and / or quantum computer program is stored. When the computer program is executed by a processor, the hybrid computing power control method as described in any one of the above is implemented.

[0037] The present invention also provides a computer program product, including an electronic computer and / or a quantum computer program, and when the computer program is executed by a processor, it implements any of the hybrid computing power control methods described above.

[0038] The hybrid computing power control method, device, equipment and storage medium provided by the present invention enable computing nodes to actively send computing requests to the task warehouse, and perform task computing through interaction between the computing nodes and the task warehouse. Compared with the prior art in which computing nodes are in a passive waiting state for calls, there is no need to rely on scheduling algorithms for resource scheduling, thereby reducing the complexity of task scheduling; the task warehouse matches tasks based on computing requests, which can give full play to the computing capabilities of different computing nodes as much as possible, thereby improving the utilization rate of computing power resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0040] Figure 1 It is one of the flow charts of the hybrid computing power control method provided by the present invention;

[0041] Figure 2 This is the second flow chart of the hybrid computing power control method provided by the present invention;

[0042] Figure 3 It is a schematic diagram of the structure of the computing power cluster provided by the present invention;

[0043] Figure 4 is a sequence diagram of the interaction between the user and the task warehouse provided by the present invention;

[0044] Figure 5 It is a sequence diagram of the interaction between the computing node and the task warehouse provided by the present invention;

[0045] Figure 6 It is one of the structural schematic diagrams of the hybrid computing power control device provided by the present invention;

[0046] Figure 7 This is the second structural schematic diagram of the hybrid computing power control device provided by the present invention;

[0047] Figure 8 It is a structural schematic diagram of the device provided by the present invention. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] With the development of quantum computing and tensor computing chips, future computing will be a computing power cluster composed of multiple types of resources. For this mixed computing power cluster, almost all technical solutions now regard different computing powers as callable services. Quantum Computing as a Service (QCaaS) is also mentioned in many documents. However, this design of treating computing as a service is simply inherited from the idea of ​​network services, which cannot effectively utilize computing power and strongly relies on scheduling algorithms.

[0050] Based on this, an embodiment of the present invention provides a hybrid computing power control method that does not rely on central scheduling, fully utilizes the computing power of different computing nodes as much as possible, and leaves room for expansion for other types of computing nodes in the future.

[0051] Figure 1 The figure is a flow chart of the hybrid computing power control method provided by the present invention. The execution subject of each step in the method can be a task warehouse in a computing power cluster. The computing power cluster includes a task warehouse and at least one computing node. The computing type of the at least one computing node includes at least one of quantum computing, scalar computing and tensor computing, and the computing type of the at least one computing node includes at least quantum computing. Figure 1 As shown, the hybrid computing power control method may include the following steps:

[0052] Step 110: In response to the computing request of the computing node, searching for matching tasks that match the computing node from the tasks to be computed.

[0053] Specifically, a computing cluster includes a task warehouse and at least one computing node. The task warehouse is a unit for interaction between the computing cluster and the outside world, and is used to store and manage computing tasks received by the cluster. A computing cluster has only one task warehouse.

[0054] The computing node is the unit that actually performs the computing task. Each computing node only interacts with the task warehouse of this cluster. A cluster has one or more computing nodes. The computing type of the one or more computing nodes includes at least quantum computing type, that is, the computing power cluster includes at least one computing node of quantum computing type. At the same time, the computing type of the one or more computing nodes includes at least one of quantum computing type, scalar computing type and tensor computing type. That is to say, the type of computing node in the computing power cluster can be a type of quantum computing type, or a hybrid of quantum computing type and scalar computing type, or a hybrid of quantum computing type and tensor computing type. Of course, it can also be a hybrid of quantum computing type, scalar computing type and tensor computing type. The embodiment of the present invention does not specifically limit this. Among them, scalar computing type or tensor computing type can be collectively referred to as classical computing type.

[0055] The computing unit of a quantum computing node is a quantum chip, which uses the characteristics of quantum superposition and quantum entanglement to provide capabilities far beyond classical computing in specific tasks, such as prime factorization and chemical molecule simulation.

[0056] The computing unit of a scalar computing node is generally an ARM core embedded in a central processing unit (CPU) or a field programmable gate array (FPGA). It is mainly used for general computing and is particularly suitable for single-threaded computing tasks that involve a large number of logical judgments, such as data sorting tasks.

[0057] The computing units of tensor computing nodes are generally parallel computing devices such as graphics processing units (GPUs), TPUs or NPUs, which are suitable for tasks that require unified and simple calculations on large amounts of data at the same time, such as image processing, learning and reasoning of deep learning networks, etc.

[0058] Under this computing power cluster architecture, the computing resources contained in each computing node are not in a passive state of waiting for calls, but when they are in an idle state, they actively send computing requests to the task warehouse. The computing requests can carry information such as the computing type, number of computing resources and parameters of the computing node.

[0059] After receiving the computing request sent by the computing node, the task warehouse searches for matching tasks that match the computing node from the tasks to be computed. The tasks to be computed can be tasks submitted by users and waiting to be computed. The matching here can include computing capacity and computing type matching, such as the computing capacity of the computing node matches the resource capacity required by the task, and the computing type matches.

[0060] The task warehouse stores the computing tasks submitted by the cluster from various users. Preferably, before querying, the task warehouse can further filter the pending computing tasks, filter the tasks with the current status of waiting, and then query the matching tasks that match the computing nodes from the tasks with the task status of waiting.

[0061] Step 120, when a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task;

[0062] Step 130, receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result;

[0063] Step 140, when no matching task is found, information indicating that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period.

[0064] Specifically, after a task matching query is performed on the task warehouse, there may be two results, namely, a matching task is found or no matching task is found.

[0065] When a matching task is found, the task warehouse returns the task information of the matching task to the computing node. The task information may include the user information who submitted the task, the priority of the task, the required computing type, the required resource capacity, the input data, the operator description, the timeout threshold and other parameters. The operator description is represented by an intermediate code that is independent of the hardware platform. At the same time, the task warehouse changes the status of the matching task to "computing".

[0066] After receiving the task information, the computing node can calculate the task, obtain the calculation result, and return the calculation result to the task warehouse. After submitting the calculation result, the computing node enters the idle state and will re-initiate the calculation request.

[0067] The task warehouse updates the task status of the matching task based on the calculation results returned by the computing node. For example, if the calculation result indicates that the calculation is successful, the task status of the matching task is updated to "success" and the calculation result is stored; if the calculation result indicates that the calculation fails, the task status of the matching task is updated to "failure" and the failure information is stored.

[0068] When no matching task is found, the task warehouse returns information that no matching task is found to the computing node. The information that no matching task is found may be expressed as empty data or query failure. After receiving the information that no matching task is found, the computing node may resend the computing request after a preset time. The preset time here may be a pre-set fixed time, such as 5 minutes, or a random time, which is not specifically limited in the embodiment of the present invention.

[0069] According to the method provided by the embodiment of the present invention, the computing node actively sends a computing request to the task warehouse, and performs task computing through the interaction between the computing node and the task warehouse. Compared with the prior art in which the computing node is in a passive waiting state for calling, there is no need to rely on the scheduling algorithm for resource scheduling, thereby reducing the complexity of task scheduling; the task warehouse matches tasks based on computing requests, which can give full play to the computing power of different computing nodes as much as possible and improve the utilization rate of computing resources.

[0070] In addition, the computing power cluster architecture, which includes a task warehouse and at least one computing node, leaves room for expansion of other types of computing nodes in the future.

[0071] Based on any of the above embodiments, step 110 specifically includes:

[0072] Step 111, in response to a computing request of a computing node, determining a computing type and computing resources of the computing node carried in the computing request;

[0073] Step 112: Based on the computing type and computing resources of the computing node, searching for matching tasks that match the computing type and computing resources from the tasks to be computed.

[0074] Specifically, in order to obtain a matching task that matches the computing node that issues the request, the computing type and computing resources of the computing node carried in the computing request may be first determined according to the computing request sent by the computing node.

[0075] Considering that for any computing node, the computing type may specifically include quantum computing type, scalar computing type or tensor computing type, and each type of computing node is applicable to different task types, on this basis, according to the computing type and computing resources of the computing node, the matching task that matches the computing type and computing resources of the computing node can be queried from the tasks to be calculated. The computing type and computing resources of the matching task obtained in this way are the most matched with the computing type and computing resources of the computing node, thereby improving the utilization rate of the computing node.

[0076] Based on any of the above embodiments, the task status includes waiting, calculating, success or failure.

[0077] Specifically, the task status refers to the status of each task in the task to be calculated, and the task warehouse manages the task status. The task status can include waiting, calculating, success or failure.

[0078] After a user submits a task to the task warehouse, the task status can be "waiting"; when the computing task is in the "computing" state for more than the timeout threshold, the task status can be changed to "waiting". At this time, the task has been submitted to the task warehouse by the user, but has not yet been assigned to a suitable computing node.

[0079] When the task warehouse finds a matching task and returns the task information of the matching task to the computing node, when the computing node starts the calculation, the task status may be "calculating". At this time, the task has been picked up by the appropriate computing node, but the result has not yet been submitted.

[0080] When the task repository receives a successful calculation result sent by a computing node, the task status may be "successful". At this time, the calculation result of the task has been submitted by the computing node but has not yet been taken away by the user.

[0081] When the task warehouse receives the failed calculation result sent by the computing node, the task status can be "failed"; when the computing task is in the "waiting" state for more than the timeout threshold, the task status can be changed to "failed" and the failure information "timeout and no matching computing resources" can be added. At this time, the task has timed out or the error information has been submitted by the computing node, but has not been taken away by the user.

[0082] The method provided by the embodiment of the present invention realizes the management and monitoring of each computing task by the task warehouse through updating the task status.

[0083] Based on any of the above embodiments, the hybrid computing power control method further includes:

[0084] Receive and store the computing tasks submitted by users;

[0085] A task identifier of the task to be calculated is generated, and the task identifier is returned to the user, so that the user can query the task status of the task to be calculated based on the task identifier.

[0086] Specifically, as a unit of interaction between the computing power cluster and the outside world, the task warehouse interacts with users in addition to computing nodes. The users here are the users of the computing power cluster.

[0087] Users access the task warehouse and submit the tasks to be calculated to the task warehouse. The task information of the tasks to be calculated may include user information, priority, required calculation type, required resource capacity, input data, operator description, timeout threshold and other parameters. The operator description is represented by intermediate code that is independent of the hardware platform.

[0088] After receiving the tasks to be calculated submitted by the user, the task warehouse can store the tasks to be calculated. The tasks to be calculated can be displayed in the form of a queue according to the task submission time, and can also be classified and managed according to the task status. The embodiment of the present invention does not make specific limitations on this.

[0089] Then, the task warehouse generates a unique identifier as the ID of the task to be calculated and returns it to the submitter of the task, that is, to the user. At this time, the task status is "waiting".

[0090] After obtaining the task ID, the user can query the task warehouse periodically or manually for the task status, which may include waiting, calculating, successful or failed, so that the user can understand the task status of the submitted task in a timely manner.

[0091] The method provided in the embodiment of the present invention interacts with the computing power cluster user (user) through the task warehouse, stores and manages the tasks to be calculated submitted by the user, so that the user can understand the task status in time.

[0092] Based on any of the above embodiments, the task identifier is returned to the user, so that the user can query the task status of the task to be calculated based on the task identifier, and then further includes:

[0093] When the task status of the task to be calculated is success or failure, in response to the user's query request, the calculation result or failure information of the task to be calculated is returned to the user;

[0094] Delete pending calculation tasks.

[0095] Specifically, the user queries the task status of the task to be calculated based on the task identifier. After the user queries that the task status has changed to "success", the user queries the task warehouse for the calculation result of the task; after the user queries that the task status has changed to "failure", the user queries the task warehouse for the failure information of the task, such as calculation failure, timeout and no matching computing resources, etc.

[0096] Then, after returning the calculation result or failure information of the task to the user, the task warehouse deletes the task information.

[0097] Based on any of the above embodiments, the task information of the task to be calculated includes at least one of user information, priority, required calculation type, required resource capacity, input data, timeout threshold and operator description.

[0098] Specifically, the task to be calculated is initiated by the user and submitted to the task warehouse, which is responsible for storage and management. When the user submits the task, he will carry the task information of the task to be calculated, which specifically includes at least one of user information, priority, required calculation type, required resource capacity, input data and operator description.

[0099] Based on any of the above embodiments, Figure 2 This is the second flow chart of the hybrid computing power control method provided by the present invention. The execution subject of the method can be a computing node in a computing power cluster, wherein the computing power cluster includes a task warehouse and at least one quantum computing computing node, and the computing type of any computing node includes quantum computing, scalar computing or tensor computing, such as Figure 2 As shown, the hybrid computing power control method may include the following steps:

[0100] Step 210, sending a computing request to the task warehouse, so that the task warehouse searches for matching tasks from the tasks to be computed based on the computing request;

[0101] Step 220, when the task warehouse finds a matching task, a calculation is performed based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and the calculation result is sent to the task warehouse;

[0102] Step 230: When no matching task is found in the task repository, the information indicating that no matching task is found is received from the task repository, and the calculation request is resent after a preset time period.

[0103] Specifically, a computing cluster includes a task warehouse and at least one computing node. The task warehouse is a unit for interaction between the computing cluster and the outside world, and is used to store and manage computing tasks received by the cluster. A computing cluster has only one task warehouse.

[0104] The computing node is the unit that actually performs the computing task. Each computing node only interacts with the task warehouse of this cluster. A cluster has one or more computing nodes. The computing type of the one or more computing nodes includes at least quantum computing type, that is, the computing power cluster includes at least one computing node of quantum computing type. At the same time, the computing type of the one or more computing nodes includes at least one of quantum computing type, scalar computing type and tensor computing type. That is to say, the type of computing node in the computing power cluster can be a type of quantum computing type, or a hybrid of quantum computing type and scalar computing type, or a hybrid of quantum computing type and tensor computing type. Of course, it can also be a hybrid of quantum computing type, scalar computing type and tensor computing type. The embodiment of the present invention does not specifically limit this. Among them, scalar computing type or tensor computing type can be collectively referred to as classical computing type.

[0105] The computing unit of a quantum computing node is a quantum chip, which uses the characteristics of quantum superposition and quantum entanglement to provide capabilities far beyond classical computing in specific tasks, such as prime factorization and chemical molecule simulation.

[0106] The computing unit of a scalar computing node is generally an ARM core embedded in a central processing unit (CPU) or a field programmable gate array (FPGA). It is mainly used for general computing and is particularly suitable for single-threaded computing tasks that involve a large number of logical judgments, such as data sorting tasks.

[0107] The computing units of tensor computing nodes are generally parallel computing devices such as graphics processing units (GPUs), TPUs or NPUs, which are suitable for tasks that require unified and simple calculations on large amounts of data at the same time, such as image processing, learning and reasoning of deep learning networks, etc.

[0108] Under this computing power cluster architecture, the computing resources contained in each computing node are not in a passive state of waiting for calls, but when they are in an idle state, they actively send computing requests to the task warehouse. The computing requests can carry information such as the computing type, number of computing resources and parameters of the computing node.

[0109] After receiving the computing request sent by the computing node, the task warehouse searches for matching tasks that match the computing node from the tasks to be computed. The tasks to be computed can be tasks submitted by users and waiting to be computed. The matching here can include computing capacity and computing type matching, such as the computing capacity of the computing node matches the resource capacity required by the task, and the computing type matches.

[0110] The task warehouse stores the computing tasks submitted by the cluster from various users. Preferably, before querying, the task warehouse can further filter the pending computing tasks, filter the tasks with the current status of waiting, and then query the matching tasks that match the computing nodes from the tasks with the task status of waiting.

[0111] After the task warehouse is queried for task matching, there may be two results, namely, matching tasks are found or no matching tasks are found.

[0112] When a matching task is found, the task warehouse returns the task information of the matching task to the computing node. The task information may include the user information who submitted the task, the priority of the task, the required computing type, the required resource capacity, the input data, the operator description, the timeout threshold and other parameters. The operator description is represented by an intermediate code that is independent of the hardware platform. At the same time, the task warehouse changes the status of the matching task to "computing".

[0113] After receiving the task information, the computing node can calculate the task, obtain the calculation result, and send the calculation result to the task warehouse. After submitting the calculation result, the computing node enters the idle state and will re-initiate the calculation request.

[0114] When no matching task is found, the task warehouse returns information that no matching task is found to the computing node. After receiving the information that no matching task is found, the computing node may resend the computing request after a preset time. The preset time here may be a pre-set fixed time, such as 5 minutes, or a random time, which is not specifically limited in the embodiment of the present invention.

[0115] According to the method provided by the embodiment of the present invention, the computing node actively sends a computing request to the task warehouse, and performs task computing through the interaction between the computing node and the task warehouse. Compared with the prior art in which the computing node is in a passive waiting state for calling, there is no need to rely on the scheduling algorithm for resource scheduling, thereby reducing the complexity of task scheduling; the task warehouse matches tasks based on computing requests, which can give full play to the computing power of different computing nodes as much as possible and improve the utilization rate of computing resources.

[0116] Based on any of the above embodiments, Figure 3 It is a schematic diagram of the structure of the computing power cluster provided by the present invention. Figure 3 As shown, the computing power cluster includes three computing nodes and a task warehouse, and the types of the three computing nodes are logical type, tensor type and quantum type. The task warehouse interacts with the computing nodes and users respectively. Figure 4 is a sequence diagram of the interaction between the user and the task warehouse provided by the present invention; Figure 5 is a sequence diagram of the interaction between the computing node and the task warehouse provided by the present invention. Figure 4 and Figure 5 As shown, under this computing power cluster architecture, a hybrid computing power control method is provided, the method comprising:

[0117] (1) The computing cluster user accesses the cluster's task warehouse and submits the tasks to be calculated to the task warehouse. The calculation tasks include user information, priority, required calculation type, required resource capabilities, input data, operator description, timeout threshold and other parameters. The operator description is represented by intermediate code that is independent of the hardware platform.

[0118] (2) After receiving the computing task submitted by the computing power cluster user, the task warehouse stores the computing task in the corresponding queue, generates a unique identifier as the task ID and returns it to the task submitter. At this time, the task status is "waiting";

[0119] (3) After obtaining the task ID, the computing power cluster user queries the task warehouse for the task status periodically or manually;

[0120] (4) When the computing node is in an idle state, it actively accesses the task warehouse and requests computing tasks that match its own capabilities. The request data includes its own type, the number of computing resources, parameters, etc.

[0121] (5) After receiving the request from the computing node, the task warehouse searches for a computing task that matches the computing node's capabilities in the task list whose current status is "waiting". If no matching task is found, empty data is returned. If a matching task is found, the task information is returned to the computing node and the task status is changed to "computing".

[0122] (6) If the computing node receives an empty request result, it will initiate the request again after waiting for a random time;

[0123] (7) If the computing node receives the task information, it starts the calculation according to the task information. If the calculation is successful, it submits the calculation result to the task warehouse. If the calculation fails, it submits the failure information to the task warehouse.

[0124] (8) The task warehouse receives the successful calculation result, stores the result, and changes the task status to "successful";

[0125] (9) The task warehouse receives the information of computation failure, stores the failure information, and changes the task status to “failed”;

[0126] (10) After submitting successful results or failure information, the computing node enters the idle state and re-initiates the task request;

[0127] (11) If the computing task is in the "waiting" state for longer than the timeout threshold, the state is changed to "failed" and the failure information is timeout and no matching computing resources;

[0128] (12) If the computing task is in the "computing" state for longer than the timeout threshold, the state is changed to "waiting";

[0129] (13) After the computing power cluster user finds that the task status has changed to "successful", it queries the task warehouse for the calculation result of the task;

[0130] (14) After the computing power cluster user finds that the task status has changed to "failed", it queries the task warehouse for the task failure information;

[0131] (15) After returning the calculation result or failure information of the task to the user, the task warehouse deletes the task information.

[0132] The method provided by the embodiment of the present invention changes the existing computing power cluster architecture that abstracts computing resources into services and relies on a specific scheduling algorithm to allocate tasks, and instead designs computing nodes to actively request tasks. This is essentially a change from a scheduling-based server-client model to a model in which the demand proposer and the demand implementer interact through a lightweight platform. It can also be said that the previous idea was top-down planning, while the architecture described in the present invention is open, interactive and market-oriented.

[0133] The hybrid computing power control device provided by the present invention is described below. The hybrid computing power control device described below and the hybrid computing power control method described above can be referenced to each other.

[0134] Based on any of the above embodiments, Figure 6 This is one of the structural schematic diagrams of the hybrid computing power control device provided by the present invention. Figure 6 As shown, the hybrid computing power control device includes a matching task query unit 610, a task information return unit 620, a task status update unit 630 and an information return unit 640, wherein:

[0135] A matching task query unit 610 is used to query matching tasks that match the computing node from the tasks to be calculated in response to the computing request of the computing node;

[0136] The task information returning unit 620 is used to return the task information of the matching task to the computing node when a matching task is found, so that the computing node performs calculation based on the task information of the matching task;

[0137] A task status updating unit 630 is used to receive the calculation result sent by the calculation node, and update the task status of the matching task based on the calculation result;

[0138] The information returning unit 640 is used to return information indicating that no matching task is found to the computing node when no matching task is found, so that the computing node resends the computing request after a preset time period.

[0139] In the hybrid computing power control device provided by the embodiment of the present invention, the computing node actively sends a computing request to the task warehouse, and performs task calculation through the interaction between the computing node and the task warehouse. Compared with the prior art in which the computing node is in a passive waiting state for call, there is no need to rely on the scheduling algorithm for resource scheduling, thereby reducing the complexity of task scheduling; the task warehouse matches tasks based on computing requests, which can give full play to the computing power of different computing nodes as much as possible, thereby improving the utilization rate of computing power resources.

[0140] Based on any of the above embodiments, the matching task query unit 610 is further configured to:

[0141] In response to a computing request of a computing node, determining a computing type and computing resources of the computing node carried in the computing request;

[0142] Based on the computing type and computing resources of the computing node, a matching task matching the computing type and computing resources is searched from the tasks to be computed.

[0143] Based on any of the above embodiments, the task status includes waiting, calculating, success or failure.

[0144] Based on any of the above embodiments, the task status updating unit is further used to:

[0145] When the calculation result indicates that the calculation is successful, updating the task status of the matching task to success, and storing the calculation result;

[0146] When the calculation result indicates that the calculation has failed, the task status of the matching task is updated to failure, and the failure information is stored.

[0147] Based on any of the above embodiments, the hybrid computing power control device further includes a task receiving unit, which is used to:

[0148] Receive and store the computing tasks submitted by users;

[0149] A task identifier of the task to be calculated is generated, and the task identifier is returned to the user, so that the user can query the task status of the task to be calculated based on the task identifier.

[0150] Based on any of the above embodiments, the hybrid computing power control device further includes a task deletion unit, which is used to:

[0151] When the task status of the task to be calculated is success or failure, in response to the query request of the user, returning the calculation result or failure information of the task to be calculated to the user;

[0152] Delete the task to be calculated.

[0153] Based on any of the above embodiments, the task information of the task to be calculated includes at least one of user information, priority, required calculation type, required resource capacity, input data, timeout threshold and operator description.

[0154] Based on any of the above embodiments, Figure 7 This is the second structural diagram of the hybrid computing power control device provided by the present invention, such as Figure 7 As shown, the hybrid computing power control device includes a computing request sending unit 710, a task computing unit 720 and an information receiving unit 730, wherein:

[0155] A calculation request sending unit 710 is used to send a calculation request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be calculated based on the calculation request;

[0156] The task calculation unit 720 is used to perform calculation based on the task information of the matching task returned by the task warehouse when the task warehouse finds a matching task, obtain a calculation result, and send the calculation result to the task warehouse;

[0157] The information receiving unit 730 is used to receive the information returned by the task warehouse indicating that no matching task has been found, and to resend the calculation request after a preset time period if no matching task has been found in the task warehouse.

[0158] In the hybrid computing power control device provided by the embodiment of the present invention, the computing node actively sends a computing request to the task warehouse, and performs task calculation through the interaction between the computing node and the task warehouse. Compared with the prior art in which the computing node is in a passive waiting state for call, there is no need to rely on the scheduling algorithm for resource scheduling, thereby reducing the complexity of task scheduling; the task warehouse matches tasks based on computing requests, which can give full play to the computing power of different computing nodes as much as possible, thereby improving the utilization rate of computing power resources.

[0159] Figure 8 The schematic diagram of the physical structure of an electronic device or quantum device is shown as an example. Figure 8As shown, the electronic device or quantum device may include: a processor 810, a communications interface 820, a memory 830, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 may call the logic instructions in the memory 830 to execute the hybrid computing power control method, which includes:

[0160] In response to a computing request of a computing node, querying matching tasks that match the computing node from tasks to be computed;

[0161] When a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task;

[0162] Receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result;

[0163] In the case where no matching task is found, information indicating that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period.

[0164] The processor may call the logic instructions in the memory to execute another hybrid computing power control method, the method comprising:

[0165] Sending a computing request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be computed based on the computing request;

[0166] When the task warehouse finds a matching task, performing calculation based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and sending the calculation result to the task warehouse;

[0167] When no matching task is found in the task repository, information indicating that no matching task is found is received, and a calculation request is resent after a preset time period.

[0168] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of software functional units and can be stored in a readable storage medium of an electronic computer and / or quantum computer when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including several instructions to enable an electronic computer and / or quantum computer program device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0169] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program can be stored on a non-transitory computer-readable storage medium, when the computer program is executed by a processor, the electronic computer and / or quantum computer program can execute the hybrid computing power control method provided by the above methods, the method comprising:

[0170] In response to a computing request of a computing node, querying matching tasks that match the computing node from tasks to be computed;

[0171] When a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task;

[0172] Receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result;

[0173] In the case where no matching task is found, information indicating that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period.

[0174] The electronic computer and / or quantum computer program can execute another hybrid computing power control method provided by the above methods, which method includes:

[0175] Sending a computing request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be computed based on the computing request;

[0176] When the task warehouse finds a matching task, performing calculation based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and sending the calculation result to the task warehouse;

[0177] When no matching task is found in the task repository, information indicating that no matching task is found is received, and a calculation request is resent after a preset time period.

[0178] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having an electronic computer and / or quantum computer program stored thereon, wherein the electronic computer and / or quantum computer program is executed by a processor to implement the hybrid computing power control method provided by the above methods, the method comprising:

[0179] In response to a computing request of a computing node, querying matching tasks that match the computing node from tasks to be computed;

[0180] When a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task;

[0181] Receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result;

[0182] In the case where no matching task is found, information indicating that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period.

[0183] When the electronic computer and / or quantum computer program is executed by the processor, another hybrid computing power control method provided by the above methods is implemented, and the method includes:

[0184] Sending a computing request to a task warehouse, so that the task warehouse searches for matching tasks from tasks to be computed based on the computing request;

[0185] When the task warehouse finds a matching task, performing calculation based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and sending the calculation result to the task warehouse;

[0186] When no matching task is found in the task repository, information indicating that no matching task is found is received, and a calculation request is resent after a preset time period.

[0187] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0188] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on this understanding, the above technical solution, in essence or in other words, the part that contributes to the prior art, can be embodied in the form of a software product, which can be stored in an electronic computer and / or quantum computer readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., including a number of instructions for enabling an electronic computer and / or a quantum computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0189] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A hybrid computing power control method, characterized in that: A task warehouse applied to a computing power cluster, the computing power cluster comprising a task warehouse and at least one computing node, the computing type of the computing node comprising at least a quantum computing type, and the computing type of the computing node further comprising at least one of a scalar computing type and a tensor computing type, the method comprising: In response to a computing request of a computing node, querying matching tasks that match the computing node from tasks to be computed; When a matching task is found, the task information of the matching task is returned to the computing node, so that the computing node performs calculation based on the task information of the matching task; Receiving the calculation result sent by the calculation node, and updating the task status of the matching task based on the calculation result; If no matching task is found, information that no matching task is found is returned to the computing node, so that the computing node resends the computing request after a preset time period; The step of responding to the computing request of the computing node and querying the matching task that matches the computing node from the tasks to be computed includes: In response to a computing request of a computing node, determining a computing type and computing resources of the computing node carried in the computing request; Based on the computing type and computing resources of the computing node, a matching task matching the computing type and computing resources is searched from the tasks to be computed.

2. The hybrid computing power control method according to claim 1, characterized in that: The task status includes waiting, calculating, successful, or failed.

3. The hybrid computing power control method according to claim 1, characterized in that: Also includes: Receive and store the computing tasks submitted by users; A task identifier of the task to be calculated is generated, and the task identifier is returned to the user, so that the user can query the task status of the task to be calculated based on the task identifier.

4. The hybrid computing power control method according to claim 3, characterized in that: The step of returning the task identifier to the user so that the user can query the task status of the task to be calculated based on the task identifier further includes: When the task status of the task to be calculated is success or failure, in response to the query request of the user, returning the calculation result or failure information of the task to be calculated to the user; Delete the task to be calculated.

5. The hybrid computing power control method according to claim 4 or 3, characterized in that: The task information of the task to be calculated includes at least one of user information, priority, required calculation type, required resource capacity, input data, timeout threshold and operator description.

6. A hybrid computing power control method, characterized in that: Applied to a computing node in a computing power cluster, the computing power cluster includes a task warehouse and at least one computing node, the computing type of the computing node includes at least a quantum computing type, and the computing type of the computing node also includes at least one of a scalar computing type and a tensor computing type, the method includes: Sending a computing request to a task warehouse, so that the task warehouse searches for matching tasks that match the computing type and computing resources from the tasks to be computed based on the computing type and computing resources of the computing node carried in the computing request; When the task warehouse finds a matching task, performing calculation based on the task information of the matching task returned by the task warehouse to obtain a calculation result, and sending the calculation result to the task warehouse; When no matching task is found in the task repository, information indicating that no matching task is found is received, and a calculation request is resent after a preset time period.

7. A hybrid computing power control device, characterized in that: A task warehouse applied to a computing power cluster, the computing power cluster comprising a task warehouse and at least one computing node, the computing type of the computing node at least comprising a quantum computing type, the computing type of the computing node further comprising at least one of a scalar computing type and a tensor computing type, the device comprising: A matching task query unit, configured to query a matching task that matches the computing node from the tasks to be computed in response to a computing request of the computing node; A task information returning unit, configured to return the task information of the matching task to the computing node when a matching task is found, so that the computing node performs calculation based on the task information of the matching task; A task status updating unit, configured to receive the calculation result sent by the calculation node, and update the task status of the matching task based on the calculation result; An information returning unit, used for returning information that no matching task is found to the computing node when no matching task is found, so that the computing node resends the computing request after a preset time period; The matching task query unit is specifically used for: In response to a computing request of a computing node, determining a computing type and computing resources of the computing node carried in the computing request; Based on the computing type and computing resources of the computing node, a matching task matching the computing type and computing resources is searched from the tasks to be computed.

8. A hybrid computing power control device, characterized in that: The computing node is applied to a computing power cluster, wherein the computing power cluster includes a task warehouse and at least one computing node, the computing type of the computing node includes at least a quantum computing type, and the computing type of the computing node also includes at least one of a scalar computing type and a tensor computing type, and the device includes: A computing request sending unit, configured to send a computing request to a task warehouse, so that the task warehouse searches for matching tasks that match the computing type and computing resources of the computing node carried in the computing request from the tasks to be computed; A task calculation unit, configured to, when a matching task is found in the task warehouse, perform calculation based on the task information of the matching task returned by the task warehouse, obtain a calculation result, and send the calculation result to the task warehouse; The information receiving unit is used to receive the information returned by the task warehouse indicating that no matching task has been found when the task warehouse has not found a matching task, and to resend the calculation request after a preset time period.

9. An electronic device or quantum device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, it implements the hybrid computing power control method as described in any one of claims 1 to 6.

10. A non-transitory computer-readable storage medium having stored thereon an electronic computer and / or quantum computer program, characterized in that: When the computer program is executed by a processor, the hybrid computing power control method as described in any one of claims 1 to 6 is implemented.