A parallel computing method, system, device and storage medium

By generating an undirected graph in a high-performance computing cluster and using METIS for graph balance partitioning, the problem of process distribution optimization within nodes is solved, efficient parallel computing and communication speed are improved, and computing resource utilization and task execution are optimized. speed.

CN115016943BActive Publication Date: 2024-10-22INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210748365.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-29
Publication Date
2024-10-22
Estimated Expiration
2042-06-29

AI Technical Summary

Technical Problem

In a high-performance computing cluster, how to effectively distribute processes within computing nodes, reduce the complexity of communication between nodes, and improve operating performance, especially in the case of load imbalance and computing performance differences, existing technology lacks effective solutions. plan.

Method used

By generating the initial calculation sub-area and converting it into an undirected graph form, METIS is used for graph balance partitioning, and process mapping is performed based on the actual operating performance of the node to achieve efficient partitioning of parallel computing and increase communication speed.

Benefits of technology

It effectively improves application parallel efficiency, reduces communication speed, optimizes computing resource utilization, and maximizes task execution speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115016943B_ABST
    Figure CN115016943B_ABST
Patent Text Reader

Abstract

The present invention discloses a parallel computing method, system, device and storage medium, the method includes generating an initial computing sub-area according to the actual operation performance of each node in the cluster, and converting the initial computing sub-area into an undirected graph form; inputting the initial computing sub-area in the undirected graph form into METIS to divide the initial computing sub-area in the undirected graph form based on graph balance to obtain the initial computing sub-area division result; inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node; mapping each process to the core of the corresponding node based on the computing sub-area of ​​each process in each node for parallel computing. Through the scheme of the present invention, the computing data can be divided based on the actual performance of the cluster, the performance loss caused by communication can be reduced, the actual use of computing resources can be optimized, and the cluster utilization rate and the total execution speed of all tasks can be maximized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of high performance computing technology, and in particular to a parallel computing method, system, device and storage medium. Background Art

[0002] Driven by the rapid expansion of computing needs in different industries and the development of commercial CPUs and high-speed interconnected network devices, high-performance computing (HPC) clusters have achieved unprecedented development in the past 20 years. By aggregating a large number of microprocessor units, high-performance computing clusters have excellent scalability and extremely high cost-effectiveness, and can achieve rapid solutions to complex problems. As an important means of scientific and technological innovation, high-performance clusters are widely used in many fields such as nuclear explosion simulation, weather forecasting, and engineering calculations, and are the strategic commanding heights of contemporary scientific and technological competition. According to Moore's Law, the computing power of high-performance cluster platforms has increased exponentially every year, but in actual operation, the actual performance of applications is worrying. According to NERSC research, in the ACM Gordon Bell award-winning application cases over the years, the proportion of peak performance of large-scale scientific applications to the theoretical performance of the operating platform has decreased from 40%-50% in the 1990s to 5%-10% now. It can be seen that even large-scale high-performance computing applications that have been heavily optimized can use peak performance that is far lower than the theoretical maximum performance of HPC clusters. Therefore, improving the operating performance of HPC in clusters and making full use of cluster computing performance are becoming more and more important issues that need to be solved in HPC technology.

[0003] In current general HPC clusters, resources such as computing power and memory capacity of a single node are limited. Through high-speed network interconnection, multiple nodes are connected in parallel to form a distributed memory architecture to form a high-performance cluster. In order to use the distributed memory architecture cluster to solve practical application problems, it is necessary to split the computing problem into smaller units. The specific form is to decompose a computing task into multiple computing processes, and distribute each computing process to each computing node for parallel processing. During the computing process, each computing process needs to synchronize or exchange data information. The speed and efficiency of data communication have an important impact on the speed of parallel computing. At present, most HPC applications are implemented using the message communication (MPI, Message Passing Interface, message communication interface) model. In theory, this model can infinitely expand the computing resources used and reduce the computing time. However, in the actual operation process, due to the limitations of communication bandwidth and delay between nodes, when the parallel scale is large enough, continuing to increase the number of computing nodes will reduce the computing speed. In the process of dividing parallel regions, there are two key factors that affect the computing speed:

[0004] 1) Balanced data partitioning to ensure balanced computing load. Currently, most programs will partition as evenly as possible according to the amount of computing tasks, but as more and more engineering HPC applications use complex polyhedral units and unstructured grids, completely balanced partitioning is becoming increasingly difficult. In addition, in most HPC applications, some algorithms use special functions to perform special computing processes on some units, which also makes the actual computing process of each process different, affecting load balancing.

[0005] 2) The distribution of processes on computing nodes also has an important impact on the running speed. When data is distributed to each process for calculation, the communication topology is not symmetrical. Taking fluid problems as an example, the division of the problem to be solved is achieved by dividing the grid data in the computing area. There will be a large amount of data exchange requirements between processes that are topologically adjacent in the computing area, such as Figure 1 As shown. In the distributed cluster architecture, intra-node process communication and inter-node communication also use different message passing mechanisms: ① Most MPI models within a node use a shared cache mechanism, so the intra-node communication transmission delay is low and the bandwidth is high; ② Inter-node communication is often implemented using software technologies such as 10 Gigabit Ethernet or Infiniband network and RDMA (Remote Direct Memory Access). With the upgrade of hardware and software, the delay of inter-node communication has been greatly reduced, but compared with the speed of shared cache communication within the same node, the delay and bandwidth of inter-node communication are still several orders of magnitude different, significantly lower than the speed of intra-node communication. At this time, how to distribute the computing process within the node has also become a key issue in optimizing communication.

[0006] For the current memory distributed cluster architecture, most HPC applications mainly use the parallel region partitioning method to achieve data parallelism. In the process of parallel region partitioning, open source tools such as METIS or SCOTCH are currently widely used. In these tools, parallel optimization technology mainly focuses on solving the balanced data partitioning in problem 1, and modifies the load balancing algorithm according to the specificity of different actual applications to improve parallel efficiency. At present, there is little research on the optimization of process distribution on computing nodes, and there is also a lack of practical application products.

[0007] (1) Current technologies and products mainly focus on the implementation of load balancing steps, such as the widely used open source tools METIS and SCOTCH. However, there is a lack of corresponding research and support on how to arrange processes in modern distributed memory cluster computing in actual operation to reduce the complexity of communication between nodes and improve the performance of HPC application organization.

[0008] (2) Tools such as METIS and SCOTCH can only use static analysis methods to achieve data load balancing within each sub-computing domain. In the actual computing process, it may be necessary to use multiple platforms with different performances for parallel computing. At this time, the computing performance of each node is different. After the computing tasks are divided using traditional processes, a long communication time will be generated, and the computing performance cannot be fully utilized. Summary of the invention

[0009] In view of this, the present invention proposes a parallel computing method, system, device and storage medium, which can reasonably allocate the distribution of processes within the computing nodes, realize efficient division of computing tasks, effectively improve the parallel efficiency of applications, and greatly improve the communication speed.

[0010] Based on the above purpose, an embodiment of the present invention provides a parallel computing method, which specifically includes the following steps:

[0011] Generate an initial computing sub-region according to the actual operating performance of each node in the cluster, and convert the initial computing sub-region into an undirected graph form;

[0012] Inputting the initial computation sub-region in the form of an undirected graph into METIS to divide the initial computation sub-region in the form of an undirected graph based on graph balance to obtain a division result of the initial computation sub-region;

[0013] Inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node;

[0014] Based on the computing sub-region of each process in each node, each process is mapped to a core of a corresponding node for parallel computing.

[0015] In some implementations, generating an initial computing sub-region according to actual operating performance of each node in the cluster, and converting the initial computing sub-region into an undirected graph form includes:

[0016] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node;

[0017] Determine the initial computational sub-area based on the standardized performance indicator vector of each node;

[0018] The initial computing sub-area and computing grid topology information are converted into an undirected graph.

[0019] In some implementations, the operating performance of all nodes in the cluster is tested based on a benchmark test program to obtain a standardized performance indicator vector of each node, including:

[0020] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node;

[0021] Round the performance indicator vector corresponding to each node;

[0022] The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

[0023] In some embodiments, the initial computational sub-regions in the form of an undirected graph are input into METIS to divide the initial computational sub-regions in the form of an undirected graph based on graph balance, and the initial computational sub-region division results are obtained, including:

[0024] The initial computational sub-region in the form of an undirected graph is input into METIS;

[0025] Based on the METIS, coarsening, initial division and refinement processing are performed on the initial calculation sub-region in the form of an undirected graph in sequence to obtain an initial calculation sub-region division result.

[0026] In some implementations, inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node includes:

[0027] Inputting the initial calculation sub-region division result into the METIS;

[0028] Based on the METIS, the initial computing sub-region division result is sequentially subjected to coarsening, initial division and refinement processing to obtain the computing sub-region of each process in each node.

[0029] Another aspect of the embodiment of the present invention further provides a cluster-based parallel computing system, including:

[0030] A generation module, wherein the generation module is configured to generate an initial computing sub-region according to the actual operating performance of each node in the cluster, and convert the initial computing sub-region into an undirected graph form;

[0031] A parallel region partitioning module, wherein the parallel region partitioning module inputs an initial computing sub-region in the form of an undirected graph into METIS to partition the initial computing sub-region in the form of an undirected graph based on graph balance to obtain an initial computing sub-region partitioning result;

[0032] A process mapping module, wherein the process mapping module is configured to input the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node;

[0033] The process mapping module is also configured to map each process to a core of a corresponding node based on a computing sub-region of each process in each node for parallel computing.

[0034] In some embodiments, the generation module includes a normalization calculation submodule, a calculation region determination submodule, and a conversion submodule;

[0035] The standardized calculation submodule is configured to test the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node;

[0036] The computation region determination submodule is configured to determine an initial computation subregion based on a standardized performance indicator vector of each node;

[0037] The conversion submodule is configured to convert the initial computing sub-area and computing grid topology information into an undirected graph form.

[0038] In some implementations, the normalization calculation submodule is specifically configured as follows:

[0039] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node;

[0040] Round the performance indicator vector corresponding to each node;

[0041] The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

[0042] According to another aspect of an embodiment of the present invention, a computer device is provided, comprising: at least one processor; and a memory, wherein the memory stores a computer program executable on the processor, and the computer program implements the steps of the above method when executed by the processor.

[0043] According to another aspect of the embodiments of the present invention, a computer-readable storage medium is provided, which stores a computer program that implements the above method steps when executed by a processor.

[0044] The present invention has at least the following beneficial technical effects: it can divide computing data based on the actual performance of the cluster, reduce performance loss caused by communication, optimize the actual use of computing resources, and ensure the maximization of cluster utilization and the total execution speed of all tasks. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0046] Figure 1 To provide a topology diagram for computing area partition and inter-process communication in computational fluid problems;

[0047] Figure 2 A block diagram of an embodiment of the parallel computing method provided by the present invention;

[0048] Figure 3 A schematic diagram of an embodiment of an undirected graph file provided by the present invention;

[0049] Figure 4 A schematic diagram of a flow chart of an embodiment of the present invention for performing graph balancing partitioning on an undirected graph based on METIS;

[0050] Figure 5 A schematic diagram comparing different distribution forms of processes on computing nodes and the corresponding total amount of communication data;

[0051] Figure 6 A schematic diagram of an embodiment of a cluster-based parallel computing system provided by the present invention;

[0052] Figure 7 A schematic diagram of the structure of an embodiment of a computer device provided by the present invention;

[0053] Figure 8 A schematic diagram of the structure of an embodiment of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION

[0054] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the embodiments of the present invention are further described in detail below in combination with specific embodiments and with reference to the accompanying drawings.

[0055] It should be noted that all expressions using "first" and "second" in the embodiments of the present invention are for distinguishing two non-identical entities with the same name or non-identical parameters. It can be seen that "first" and "second" are only for the convenience of expression and should not be understood as limitations on the embodiments of the present invention. The subsequent embodiments will not explain this one by one.

[0056] Based on the above purpose, the first aspect of the embodiments of the present invention provides an embodiment of a parallel computing method. Figure 2 As shown, it includes the following steps:

[0057] S10, generating an initial computing sub-region according to the actual operating performance of each node in the cluster, and converting the initial computing sub-region into an undirected graph form;

[0058] S20, inputting the initial calculation sub-region in the form of an undirected graph into METIS to divide the initial calculation sub-region in the form of the undirected graph based on graph balance, and obtaining the initial calculation sub-region division result;

[0059] S30, inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node;

[0060] S40. Map each process to a core of a corresponding node based on the computing sub-area of ​​each process in each node to perform parallel computing.

[0061] Steps S10 and S20 are parallel region division. The benchmark program is used to test the running performance of each node in the cluster, and the standardized performance index vector R is obtained. * , using the standardized performance indicator vector R * The initial computing sub-area is divided, and the initial computing sub-area is generated in the form of an undirected graph by combining the initial computing sub-area and the computing grid topology information; the initial computing sub-area in the form of an undirected graph is input into METIS to be divided based on graph balance, and the standardized performance index vector is R * As the desired balance degree, the initial calculation sub-region division result is obtained. The parallel region division is performed according to the graph balancing method, and the parallel region division is further optimized according to the actual running performance, avoiding the parallel computing performance problems caused by load imbalance or computing performance differences.

[0062] Steps S30 and S40 are to perform process mapping based on the parallel region division results. According to the actual performance of the computing nodes and the topological relationship between the nodes, the initial computing sub-regions are divided again to achieve the mapping of the computing process on the hardware topology.

[0063] like Figure 3 The figure below is a schematic diagram of an undirected graph file. In the above process, the computational grid topology needs to be converted into an undirected graph and stored in a csv file. In an undirected graph file, the first line contains the number of vertices and boundary information, followed by the vertex numbers connected to each vertex and the corresponding boundary weights.

[0064] The parallel region division is implemented based on the graph balancing method. The running performance of each node is predicted by using the node benchmark performance data. The initial computing sub-region division is performed based on the predicted results. The initial computing sub-region and the computing grid topology information are combined into an undirected graph structure. Then, the initial computing sub-region of the undirected graph structure is divided based on graph balancing. In the division process, in addition to considering the imbalance of computing region data, the impact of computing node performance on the division results is also considered to maximize the load balance of the actual operation process. Process mapping is also implemented based on the graph balancing method. The division results of the initial computing sub-regions and their interconnection information are combined into an undirected graph structure. Then, the undirected graph is divided based on the graph balancing method, and a group of divided processes are assigned to the corresponding nodes for operation.

[0065] Based on the above process, high-performance cluster users can divide computing data based on the actual performance of the cluster, reduce performance losses caused by communication, optimize the actual use of computing resources, and ensure the maximization of cluster utilization and the total execution speed of all tasks.

[0066] In some implementations, generating an initial computing sub-region according to actual operating performance of each node in the cluster, and converting the initial computing sub-region into an undirected graph form includes:

[0067] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node;

[0068] Determine the initial computational sub-area based on the standardized performance indicator vector of each node;

[0069] The initial computing sub-area and computing grid topology information are converted into an undirected graph form.

[0070] In some implementations, the operating performance of all nodes in the cluster is tested based on a benchmark test program to obtain a standardized performance indicator vector of each node, including:

[0071] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node;

[0072] Round the performance indicator vector corresponding to each node;

[0073] The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

[0074] Specifically, assume that N nodes are used in a high-performance cluster. The actual performance of these N nodes is tested using a benchmark program, and the performance index vector is R = {R1, R2, …, R N}. The performance indicator vector is normalized to integer, that is, each element is first rounded [R i ], and then find the greatest common divisor of each element And the integer standardized performance index vector is obtained as:

[0075]

[0076] In high-performance computing applications, assuming that the solution domain contains a total number of computing units D, the initial computing sub-area D is divided according to the standardized performance indicators of the nodes used, and the initial computing sub-area D and the computing grid topology information S are converted into an undirected graph form G to ensure load balance and improve parallel computing performance.

[0077] In some embodiments, the initial computational sub-regions in the form of an undirected graph are input into METIS to divide the initial computational sub-regions in the form of an undirected graph based on graph balance, and the initial computational sub-region division results are obtained, including:

[0078] The initial computational sub-region in the form of an undirected graph is input into METIS;

[0079] Based on the METIS, coarsening, initial division and refinement processing are performed on the initial calculation sub-region in the form of an undirected graph in sequence to obtain an initial calculation sub-region division result.

[0080] Specifically, Figure 4 As shown in the figure, it is a flow chart of graph balanced partitioning of undirected graph based on METIS. Assume that the undirected graph G0 = (V0, E0), where G0 represents the original graph, V0 represents the vertex set of the original graph, and E0 represents the edge set of the original graph. The partitioning process is divided into three steps: coarsening, initial partitioning and refinement:

[0081] (1) Coarsening: In this step, by merging points, a set of smaller graphs G can be obtained from the original graph G0 = (V0, E0) i =(V i ,E i ). In the multiple coarsening processes, Figure G i A set of points in will be combined into the next level coarsened graph G i+1 The weight of point v will be set to At the same time, in order to maintain the connection information of the original graph, the edge associated with vertex v is The set of connected edges. This coarsening method ensures that the original graph is balanced when the graph is balanced.

[0082] (2) Initial partitioning: This step uses the k-way partitioning method. i =(V i ,E i ) is used to calculate the partition so that each part contains |V| / k vertices of the original graph roughly evenly. Since the weights of the vertices and edges of the coarsening graph can reflect the weights of the original graph during the coarsening process, G i It contains enough information to effectively partition the graph in a balanced way while ensuring the minimum edge grid. One way to generate a k-way initial partition is to continuously coarsen the original graph until the coarsened graph has only k vertices. This coarsened graph containing k vertices can be used as a k-way partition of the original graph.

[0083] After vertex fusion in METIS, the size of the original graph is reduced to a manageable size. In multi-level partitioning, the initial partition is to first partition the graph into two ways, and consider load balancing during the partitioning. Then, the multi-level bisection algorithm is continuously used, and load balancing is considered during the partitioning process.

[0084] (3) Refinement: In this step, the coarsened graph G at each level is traced back. i The coarsened graph G i Restore to the original graph G0.

[0085] After the above coarsening, initial division, and refinement processes, the final division result is obtained. The division result includes the nodes in each parallel sub-region and the interconnection between sub-regions G p =(V p ,E p ).

[0086] In some implementations, inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node includes:

[0087] Inputting the initial calculation sub-region division result into the METIS;

[0088] Based on the METIS, the initial computing sub-region division result is sequentially subjected to coarsening, initial division and refinement processing to obtain the computing sub-region of each process in each node.

[0089] The specific implementation of the present invention is described below through another specific embodiment.

[0090] The parallel computing method includes two parts: parallel region division and process mapping.

[0091] Parallel region division: Based on the METIS division process, the graph balancing method is used to divide the computing region G. Before the division, the benchmark program is used to test the operating performance of all nodes in the cluster, and the standardized performance index vector R is obtained. * , based on the standardized performance index vector of each node, the initial computing sub-area is obtained. The initial computing sub-area D and the computing grid topology information S are converted into an undirected graph G, which is then passed into METIS for partitioning. As the desired balance, the initial calculation sub-area division results are obtained

[0092] Process mapping: In computing nodes of different specifications, the number of computing cores and performance will be different. Therefore, in the mapping process, the initial computing sub-area needs to correspond to the result. Divide again to obtain the calculation sub-area of ​​each process in each node: Where i represents the node number and j represents the process number. After obtaining the calculation results of the sub-area, they can be mapped to the corresponding node core according to the (i, j) two-dimensional number, and parallel calculations can be performed on the core of the corresponding node.

[0093] This embodiment has the following advantages:

[0094] 1) The parallel region division part can divide the data according to the measured indicators based on the complexity of the actual operation of the cluster. The division process is based on the METIS graph balancing algorithm, taking the measured performance indicator vector as the expected balance degree, and obtaining the regional division result suitable for the performance of the cluster nodes, thereby improving the load balance of the operation process.

[0095] 2) The process mapping part is implemented according to the METIS diagram division process to obtain the computing task volume that matches the computing performance of the computing node or core, thereby maximizing the cluster utilization efficiency.

[0096] The present invention is applicable to large and complex clusters and applications and has good universality. The model can accurately evaluate the node operation performance by using benchmark test results, rather than discovering through prediction or log analysis, which saves computing resources, improves the accuracy of partitioning, and can effectively improve the overall utilization of the cluster.

[0097] like Figure 5 The figure shows a comparison diagram of different distribution forms of processes on computing nodes and the corresponding total amount of communication data.

[0098] Figure 5 On the left side is the distribution of processes in the corresponding node cores and the corresponding total amount of communication data obtained based on the traditional parallel region partitioning and mapping method; Figure 5On the right side is the distribution of processes in corresponding node cores and the corresponding total amount of communication data obtained based on the parallel region partitioning and mapping method of the present invention.

[0099] Depend on Figure 5 It can be seen that the parallel computing method of the present invention can reduce the exchange of information between nodes and the communication between nodes, realize the efficient division of computing tasks, and effectively improve the efficiency of parallel computing applications.

[0100] Based on the same inventive concept, according to another aspect of the present invention, Figure 6 As shown, an embodiment of the present invention further provides a cluster-based parallel computing system, comprising:

[0101] The generation module 110 is configured to generate an initial computing sub-region according to the actual operation performance of each node in the cluster, and convert the initial computing sub-region into an undirected graph form.

[0102] A parallel region division module 120, wherein the parallel region division module 120 inputs the initial calculation sub-region in the form of an undirected graph into METIS to divide the initial calculation sub-region in the form of the undirected graph based on graph balance to obtain an initial calculation sub-region division result;

[0103] A process mapping module 130, wherein the process mapping module 130 is configured to input the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node;

[0104] The process mapping module 130 is further configured to map each process to a core of a corresponding node for parallel computing based on a computing sub-region of each process in each node.

[0105] The embodiments of the present invention can not only perform static partitioning according to the size of the data volume in the computing area, but also optimize the partitioning results according to the actual performance of the computing nodes, taking into account the complex situations in the actual operation of the cluster, and provide a more optimized load balancing result than the traditional parallel area partitioning result; by optimizing the parallel area partitioning and providing process mapping in the hardware system, the node communication process in the parallel computing process is optimized, and the overall operation efficiency of the cluster is improved; the process is mapped to the corresponding node according to the performance of the high-performance cluster node, to ensure the load balance of the actual operation process; the system has a wider applicability, is suitable for more complex actual operation situations, and the simulation results are more accurate.

[0106] In some embodiments, the generation module includes a normalization calculation submodule, a calculation region determination submodule, and a conversion submodule;

[0107] The standardized calculation submodule is configured to test the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node;

[0108] The computation region determination submodule is configured to determine an initial computation subregion based on a standardized performance indicator vector of each node;

[0109] The conversion submodule is configured to convert the initial computing sub-area and computing grid topology information into an undirected graph form.

[0110] In some implementations, the normalization calculation submodule is specifically configured as follows:

[0111] Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node;

[0112] Round the performance indicator vector corresponding to each node;

[0113] The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

[0114] Based on the same inventive concept, according to another aspect of the present invention, Figure 7 As shown, an embodiment of the present invention further provides a computer device 30, which includes a processor 310 and a memory 320. The memory 320 stores a computer program 321 that can be run on the processor. When the processor 310 executes the program, the steps of the above method are performed.

[0115] Among them, the memory, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer executable programs and modules, such as the program instructions / modules corresponding to the parallel computing method in the embodiment of the present application. The processor executes various functional applications and data processing of the device by running the non-volatile software programs, instructions and modules stored in the memory, that is, realizing the parallel computing method of the above method embodiment.

[0116] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory may optionally include a memory remotely arranged relative to the processor, and these remote memories may be connected to the local module via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0117] Based on the same inventive concept, according to another aspect of the present invention, Figure 8 As shown, an embodiment of the present invention further provides a computer-readable storage medium 40, which stores a computer program 410 for executing the above method when executed by a processor.

[0118] Finally, it should be noted that a person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the storage medium of the program can be a disk, an optical disk, a read-only storage memory (ROM) or a random access memory (RAM), etc. The above-mentioned computer program embodiments can achieve the same or similar effects as the corresponding above-mentioned arbitrary method embodiments.

[0119] It will also be appreciated by those skilled in the art that various exemplary logic blocks, modules, circuits and algorithm steps described in conjunction with the disclosure herein can be implemented as electronic hardware, computer software or a combination of the two. In order to clearly illustrate this interchangeability of hardware and software, a general description has been given to the functions of various schematic components, blocks, modules, circuits and steps. Whether this function is implemented as software or hardware depends on specific applications and the design constraints imposed on the entire system. Those skilled in the art can implement the function in various ways for each specific application, but this implementation decision should not be interpreted as causing a departure from the disclosed scope of the embodiments of the present invention.

[0120] The above are exemplary embodiments disclosed in the present invention, but it should be noted that various changes and modifications may be made without departing from the scope of the embodiments disclosed in the present invention as defined in the claims. The functions, steps and / or actions of the method claims according to the disclosed embodiments described herein do not need to be performed in any particular order. The serial numbers of the embodiments disclosed in the above embodiments of the present invention are for description only and do not represent the advantages and disadvantages of the embodiments. In addition, although the elements disclosed in the embodiments of the present invention may be described or required in individual form, they may also be understood as multiple unless explicitly limited to the singular.

[0121] It should be understood that, as used herein, the singular forms "a", "an" are intended to include the plural forms as well, unless the context clearly supports an exception. It should also be understood that, as used herein, "and / or" refers to any and all possible combinations including one or more of the associated listed items.

[0122] A person skilled in the art should understand that the discussion of any of the above embodiments is only exemplary and is not intended to imply that the scope of the disclosure of the embodiments of the present invention (including the claims) is limited to these examples; under the concept of the embodiments of the present invention, the technical features in the above embodiments or different embodiments can also be combined, and there are many other changes in different aspects of the embodiments of the present invention as above, which are not provided in detail for the sake of simplicity. Therefore, any omissions, modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the embodiments of the present invention should be included in the protection scope of the embodiments of the present invention.

Claims

1. A parallel computing method, characterized in that: include: Generate an initial computing sub-region according to the actual operating performance of each node in the cluster, and convert the initial computing sub-region into an undirected graph form; Inputting the initial computation sub-region in the form of an undirected graph into METIS to divide the initial computation sub-region in the form of an undirected graph based on graph balance to obtain a division result of the initial computation sub-region; Inputting the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node; Mapping each process to a core of a corresponding node based on the computing sub-region of each process in each node for parallel computing; The step of generating an initial computing sub-region according to the actual operating performance of each node in the cluster and converting the initial computing sub-region into an undirected graph includes: Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node; Determine the initial computational sub-area based on the standardized performance indicator vector of each node; The initial computational sub-area and computational grid topology information are converted into an undirected graph form: The operating performance of all nodes in the cluster is tested based on a benchmark test program to obtain a standardized performance indicator vector of each node, including: Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node; Round the performance indicator vector corresponding to each node; The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

2. The method according to claim 1, characterized in that The initial calculation sub-region in the form of an undirected graph is input into METIS to divide the initial calculation sub-region in the form of an undirected graph based on graph balance, and the initial calculation sub-region division result includes: The initial computational sub-region in the form of an undirected graph is input into METIS; Based on the METIS, coarsening, initial division and refinement processing are performed on the initial calculation sub-region in the form of an undirected graph in sequence to obtain an initial calculation sub-region division result.

3. The method according to claim 1, characterized in that The initial calculation sub-area division result is input into the METIS, and the calculation sub-area of ​​each process in each node is obtained, including: Inputting the initial calculation sub-region division result into the METIS; Based on the METIS, the initial computing sub-region division result is sequentially subjected to coarsening, initial division and refinement processing to obtain the computing sub-region of each process in each node.

4. A cluster-based parallel computing system, characterized in that: include: A generation module, wherein the generation module is configured to generate an initial computing sub-region according to the actual operating performance of each node in the cluster, and convert the initial computing sub-region into an undirected graph form; A parallel region partitioning module, wherein the parallel region partitioning module inputs an initial computing sub-region in the form of an undirected graph into METIS to partition the initial computing sub-region in the form of an undirected graph based on graph balance to obtain an initial computing sub-region partitioning result; A process mapping module, wherein the process mapping module is configured to input the initial computing sub-area division result into the METIS to obtain the computing sub-area of ​​each process in each node; The process mapping module is further configured to map each process to a core of a corresponding node for parallel computing based on the computing sub-region of each process in each node; Wherein, the generation module includes a standardization calculation submodule, a calculation area determination submodule and a conversion submodule; The standardized calculation submodule is configured to test the operating performance of all nodes in the cluster based on a benchmark test program to obtain a standardized performance indicator vector of each node; The computation region determination submodule is configured to determine an initial computation subregion based on a standardized performance indicator vector of each node; The conversion submodule is configured to convert the initial computing sub-area and computing grid topology information into an undirected graph form; The specific configuration of the standardized calculation submodule is: Testing the operating performance of all nodes in the cluster based on a benchmark test program to obtain a performance indicator vector corresponding to each node; Round the performance indicator vector corresponding to each node; The greatest common divisor of the rounded performance indicator vectors corresponding to each node is found, and the standardized performance indicator vector corresponding to each node is obtained based on the greatest common divisor and the performance indicator vector corresponding to each node.

5. A computer device comprising: at least one processor; as well as A memory storing a computer program executable on the processor, wherein the processor executes the steps of the method according to any one of claims 1 to 3 when executing the program.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are performed.

Citation Information

Patent Citations

  • Efficient communication method of structural analysis under multi-core distributed computing environment

    CN103914428A

  • Computational grid parallel region division method and device based on reinforcement learning

    CN111353260A

  • Optimizing data partitioning for data-parallel computing

    US20130152057A1

  • Information providing system, information providing device, and computer-readable recording medium

    US20210383685A1