A data processing method, device, equipment and readable storage medium
By conducting a more fine-grained three-dimensional equal volume division of the simulation system space and determining the subspace set, the problem of low computational efficiency caused by the large number of particles in the tray model is solved, and more efficient calculation of interactions between particles is achieved.
Patent Information
- Application Number
- CN202110961548.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-20
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-08-20
AI Technical Summary
Among the existing supercomputing calculation methods, the tray model has low transmission efficiency and a large amount of calculation due to the large number of particles, resulting in low calculation efficiency.
By dividing the simulation system space into a more fine-grained three-dimensional equal volume, the subspace set within the tower and the subspace set within the disk are determined, and the computing unit is used to calculate the interaction between particles, thereby reducing the amount of transmitted particle position information and calculations.
It improves supercomputing efficiency, reduces the amount of ineffective calculations, and optimizes data transmission paths and computing task distribution.
Smart Images

Figure CN113705065B
Abstract
Description
Technical Field
[0001] The present application relates to the field of supercomputing, and in particular to a data processing method, apparatus, device and readable storage medium. Background Art
[0002] In some simulation calculation methods, it is often necessary to calculate the interactions between all particles in the simulation system space whose distance is less than the set distance (without duplication). For example, molecular dynamics and Monte Carlo simulations need to calculate the short-range potential between atoms whose atomic distance is less than the set cutoff radius, and astrophysical calculations need to calculate the interactions between planets whose distance is less than the set distance, etc. Due to the huge amount of calculation, multiple computing units are currently used to process the interactions between particles in these simulation system spaces in parallel.
[0003] In dealing with the problem of particle interactions, a common supercomputing method is to divide the simulation system space into several first subspaces, and put the position information of the particles in each first subspace into different computing units. Different computing units simultaneously handle the particle interactions within themselves and between units. At present, a commonly used method is to build a tray model in each computing unit to calculate the particle interactions contained in the simulation system space, see Figure 1 The tower plate model shown in the figure includes a tower model and a plate model, wherein the tower model is composed of regions 11, 12 and 13, and the plate model is composed of regions 12 and 14. The process of calculating the particle interactions contained in the simulation system space based on the tower plate model includes: dividing the simulation system space into a plurality of first subspaces, one first subspace corresponds to one calculation unit, and the position information of the particles in each first subspace is respectively stored in the corresponding calculation unit, for each first subspace (for example, the first subspace shown in region 12), building the tower plate model corresponding to the first subspace according to the set distance, and then sending the particle position information stored in the calculation units corresponding to other first subspaces within the tower plate model to the calculation unit corresponding to the first subspace shown in region 12, and the calculation unit calculates the distance between the particles contained in the first subspace set within the tower model and the particles contained in the first subspace set within the plate model according to the position information of the particles stored in itself and the position information of the particles received, and calculates the particle interactions based on the particle distance.
[0004] The above method can traverse all the particle interactions that need to be calculated without repetition. However, since the first subspace set within the tower plate model range contains a large number of particles, a large amount of particle position information needs to be transmitted, and the transmission efficiency is low. In addition, the method needs to calculate the distance between the particles within each tower model range and the particles within each disk model range based on the particles contained in the first subspace set within the tower plate model range, and screen out particle pairs whose particle distance is less than the set distance to calculate the particle interactions. The calculation amount is large, which leads to low supercomputing efficiency. Summary of the invention
[0005] In view of this, the present application provides a data processing method, apparatus, device and readable storage medium to improve the computing efficiency of supercomputers, and its technical solution is as follows:
[0006] A data processing method, comprising:
[0007] A tower plate model corresponding to the first subspace is constructed according to the set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units, and the tower plate model corresponding to the first subspace includes a tower model and a plate model;
[0008] Determine a second subspace set within the tower model as the in-tower subspace set, and determine a second subspace set within the disk model as the in-disk subspace set, wherein the second subspace set includes a plurality of second subspaces, and the second subspaces are subspaces obtained by performing three-dimensional equal-volume divisions on each of the first subspaces included in the simulation system space, the in-tower subspace set includes a plurality of in-tower subspaces, and the in-tower subspace is the second subspace within the tower model, and the in-disk subspace set includes a plurality of in-disk subspaces, and the in-disk subspace is the second subspace within the disk model;
[0009] According to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, the particle interaction is calculated by the calculation unit corresponding to the first subspace, wherein the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk is determined according to the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk.
[0010] Optionally, according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, the particle-particle interaction is calculated by the calculation unit corresponding to the first subspace, including:
[0011] Pairing each tower subspace included in the tower subspace set with each disk subspace included in the disk subspace set to obtain a plurality of tower-disk subspace pairs;
[0012] For each tower plate space pair:
[0013] Determine the distance between the tower plate space pairs;
[0014] If the distance between the tower plate space pair is less than or equal to the set distance, the particle-to-particle interaction is calculated by the calculation unit corresponding to the first subspace based on the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
[0015] Optionally, the calculation units corresponding to each first subspace contained in the simulation system space are three-dimensional framework structures.
[0016] Optionally, the computing unit corresponding to the first subspace includes multiple sub-computing units;
[0017] According to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair, the particle-particle interaction is calculated by the calculation unit corresponding to the first subspace, including:
[0018] Determine the sub-computing unit corresponding to the tower plate space pair;
[0019] According to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair, the interaction between the particles is calculated by the sub-calculation unit corresponding to the tower plate space pair.
[0020] A data processing device, comprising: a model building module, a second subspace determination module, and an interaction calculation module;
[0021] A model building module is used to build a tray model corresponding to the first subspace according to a set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units, and the tray model corresponding to the first subspace includes a tower model and a tray model;
[0022] A second subspace determination module is used to determine a second subspace set within the tower model as an intra-tower subspace set, and to determine a second subspace set within the disk model as an intra-disk subspace set, wherein the second subspace set includes a plurality of second subspaces, and the second subspaces are subspaces obtained by performing three-dimensional equal-volume divisions on each of the first subspaces included in the simulation system space, the intra-tower subspace set includes a plurality of intra-tower subspaces, and the intra-tower subspaces are second subspaces within the tower model, and the intra-disk subspace set includes a plurality of intra-disk subspaces, and the intra-disk subspaces are second subspaces within the disk model;
[0023] The interaction calculation module is used to calculate the interaction between particles through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, wherein the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk is determined according to the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk.
[0024] Optionally, the interaction calculation module includes: a pairing module and a screening calculation module;
[0025] A pairing module, used for pairing each tower subspace included in the tower subspace set with each disk subspace included in the disk subspace set, so as to obtain a plurality of tower disk space pairs;
[0026] The screening calculation module is used to determine the distance of each tower plate space pair. If the distance of the tower plate space pair is less than or equal to the set distance, the particle-to-particle interaction is calculated through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
[0027] Optionally, the calculation units corresponding to each first subspace contained in the simulation system space are three-dimensional framework structures.
[0028] Optionally, the computing unit corresponding to the first subspace includes multiple sub-computing units;
[0029] The screening calculation module, when calculating the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the plate subspace in the tower plate space pair, comprises: a sub-calculation unit determination module and a sub-calculation unit calculation module;
[0030] A sub-computing unit determination module, used to determine the sub-computing unit corresponding to the tower plate space pair;
[0031] The sub-computing unit calculation module is used to calculate the interaction between particles through the sub-computing unit corresponding to the tower plate space pair according to the set distance and the distance between the particles contained in the tower sub-space in the tower plate space pair and the particles contained in the disk sub-space in the tower plate space pair.
[0032] A data processing device comprising a memory and a processor;
[0033] Memory, used to store programs;
[0034] The processor is used to execute the program to implement each step of any of the above data processing methods.
[0035] A readable storage medium stores a computer program, and when the computer program is executed by a processor, each step of any of the above data processing methods is implemented.
[0036] Through the above technical scheme, it can be known that the data processing method provided by the present application first builds a tower plate model corresponding to the first subspace according to the set distance, then determines the second subspace set within the tower model range as the tower subspace set, and determines the second subspace set within the disk model range as the disk subspace set, and finally calculates the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace set and the particles contained in the disk subspace set. The data processing method provided by the present application will perform a more fine-grained spatial division on each first subspace contained in the simulation system space, and the range of the second subspace obtained by the division is much smaller than the range of the first subspace, so that compared with the number of particles contained in the first subspace set within the tower plate model range in the prior art, the total number of particles contained in the tower subspace set and the disk subspace set in the present application is less, so that the position information of the particles that need to be transmitted is less, and the amount of calculation is smaller, which improves the efficiency of supercomputing. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present application 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 described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0038] Figure 1 A schematic diagram of a tray model provided in an embodiment of the present application;
[0039] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0040] Figure 3 A schematic diagram of three-dimensional equal volume partitioning of a cube provided in an embodiment of the present application;
[0041] Figure 4 A schematic diagram of a second subspace set within the tray model provided in an embodiment of the present application;
[0042] Figure 5 A schematic diagram of particle pairing provided in an embodiment of the present application;
[0043] Figure 6A schematic diagram of the distance between the subspace in the tower and the subspace in the disk provided in an embodiment of the present application;
[0044] Figure 7 A flowchart of another data processing method provided in an embodiment of the present application;
[0045] Figure 8 A schematic diagram of the process of tower plate space pairing and screening provided in an embodiment of the present application;
[0046] Fig. 9 is a schematic diagram of a three-dimensional framework structure of a computing unit corresponding to the first subspace;
[0047] Fig.10 A schematic diagram of the structure of a data processing device provided in an embodiment of the present application;
[0048] Fig.11 A hardware structure block diagram of a data processing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0050] In view of the problems existing in the prior art, the inventor of this case conducted in-depth research and finally proposed a data processing method. Next, a data processing method provided by this application is introduced in detail through the following embodiments.
[0051] See also Figure 2 , shows a flow chart of a data processing method provided in an embodiment of the present application, and the data processing method may include:
[0052] Step S201: construct a tray model corresponding to the first subspace according to the set distance.
[0053] In this embodiment, first, the simulation system space is divided into three-dimensional equal volumes based on the number of computing units to obtain equal first subspaces, that is, if the number of computing units is m*n*t, the simulation system space can be divided into m*n*t first subspaces. Here, the first subspace corresponds to the computing unit one by one, and the position information of the particles in each first subspace is stored under the corresponding computing unit.
[0054] Optionally, the simulation system space can be a cube. A schematic diagram of dividing a cube into three-dimensional equal volumes can be found in Figure 3As shown, if there are 512 computing units in total, the cube can be divided into 8*8*8 first subspaces.
[0055] Then, each first subspace is divided into three-dimensional equal volumes again to obtain multiple second subspaces. For example, each first subspace is divided into i*j*k second subspaces. Here, the specific values of i, j and k can be determined according to actual conditions, and this application does not limit this.
[0056] It is worth noting that in this embodiment, the particles in the simulation system space can be classified according to the second subspace, so that subsequent calculations only need to focus on the particles in the second subspace, and there is no need to pay attention to the particles in the first subspace; here, the particles in the simulation system space can be atoms, planets, etc., and this application does not limit this.
[0057] Next, tower tray models corresponding to each first subspace are constructed according to the set distance, wherein the tower tray model corresponding to any first subspace includes a tower model and a tray model.
[0058] The construction process of the tray model corresponding to the first subspace is the same as that of the prior art, that is, in the process of building the tray model, each first subspace is used as the central grid point (i.e. Figure 1 12), build two cuboids (i.e. Figure 1 Area 11 and area 13 in the center grid), the tower model is composed of area 11, area 12 and area 13; a half disk (i.e. Figure 1 The disk model is composed of area 12 and area 14.
[0059] Step S202: determine a second subspace set within the tower model as the in-tower subspace set, and determine a second subspace set within the disk model as the in-disk subspace set.
[0060] Among them, the tower subspace set includes multiple tower subspaces, and the tower subspace is the second subspace located within the tower model range. The disk subspace set includes multiple disk subspaces, and the disk subspace is the second subspace located within the disk model range.
[0061] Taking the example of dividing each first subspace into 2*2*4 second subspaces of equal volume, the set of second subspaces within the tower plate model can be found in Figure 4As shown in the shaded part, (a) is a schematic diagram of the second subspace set within the range of the tower plate model in a top view, and (b) is a schematic diagram of the second subspace set within the range of the tower plate model in a front view. In the figure, R is equal to the set distance, the larger grid (such as the bold large grid shown in the figure) is the first subspace, and the smaller grid (such as the bold small grid shown in the figure) is the second subspace.
[0062] Optionally, in this step, if part or all of a second subspace is within the tower model, the second subspace is considered to be a tower subspace. Similarly, if part or all of a second subspace is within the disk model, the second subspace is considered to be a disk subspace. Figure 4 In (a), the bold cells are subspaces within the disk.
[0063] Step S203: Calculate the interaction between particles by using the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk.
[0064] The distance between the particles included in the tower subspace set and the particles included in the disk subspace set is determined according to the position information of the particles included in the tower subspace set and the position information of the particles included in the disk subspace set.
[0065] In this step, you can Figure 1 The calculation unit corresponding to the first subspace shown in the middle area 12 calculates the interaction between particles. Optionally, the calculation process is as follows: the position information of the particles contained in the subspace set in the tower and the position information of the particles contained in the subspace set in the disk are transmitted to the calculation unit corresponding to the first subspace shown in the area 12 (it should be noted that since the position information of the particles within the range of area 12 has been stored in the calculation unit corresponding to the first subspace shown in the area 12, when the position information of the particles contained in the subspace set in the tower and the position information of the particles contained in the subspace set in the disk are transmitted, it is not necessary to transmit the position information of the particles within the range of area 12), and then each particle contained in the subspace set in the tower is paired with each particle contained in the subspace set in the disk to obtain a plurality of particle pairs, and the calculation unit corresponding to the first subspace shown in the area 12 calculates the distance of the particles in the particle pair according to the position information of the particles in the particle pair, and if the distance of the particles in the particle pair is less than or equal to the set distance, the interaction of the particle pair is calculated according to the distance of the particles in the particle pair. Here, the interaction can be an interaction force and / or an interaction energy.
[0066] For example, see Figure 5As shown in (a), the tower subspace is represented by "TX" and the plate subspace is represented by "PY". Then, each second subspace within the region 12 of the tower plate model is both a tower subspace and a plate subspace. Therefore, as a tower subspace, it is represented by "TX" and as a plate subspace, it is represented by "PY". Based on this, the process of pairing each particle contained in a tower subspace with each particle contained in a plate subspace can be referred to. Figure 5 As shown in (b), assuming that the subspace "TX" in the tower contains 3 particles and the subspace "PY" in the disk contains 2 particles, the obtained particle pairs include "particle 1-particle 4", "particle 1-particle 5", "particle 2-particle 4", "particle 2-particle 5", "particle 3-particle 4" and "particle 3-particle 5".
[0067] It should be noted that the process of "pairing each particle contained in the subspace set in the tower with each particle contained in the subspace set in the disk" in this step is actually pairing each particle contained in each subspace in the tower with each particle contained in each subspace in the disk. When pairing, there must be a situation where "each particle contained in the second subspace within the range of region 12 as the tower subspace is paired with each particle contained in the subspace as the disk subspace". At this time, the particles contained in the second subspace themselves are not paired. For example, assuming that a second subspace within the range of region 12 includes 3 particles, the second subspace is "paired" as the tower subspace. When the second subspace is used as the disk subspace "TX", the particles contained therein are represented by "particle 1", "particle 2" and "particle 3" respectively, and when the second subspace is used as the disk subspace "PY", the particles contained therein are represented by "particle 4", "particle 5" and "particle 6" respectively, among which "particle 1" and "particle 4" are the same particle, "particle 2" and "particle 5" are the same particle, and "particle 3" and "particle 6" are the same particle. Then, the particles contained in the subspace "TX" in the tower are paired with the particles contained in the subspace "PY" in the disk, and the obtained particle pairs include "particle 1-particle 5", "particle 1-particle 6" and "particle 2-particle 6".
[0068] It should also be noted that, in this step, after transmitting the particle position information to the calculation unit corresponding to the first subspace shown in area 12, it is also necessary to determine the tray attributes of each particle. The process of determining the tray attributes of the particle can be: according to the subspace in the tower and the subspace in the tray, determine the tray attributes of each particle contained in each subspace. Compared with the prior art of determining the tray attributes of the particle according to the particle position information, this method is simpler and faster.
[0069] The data processing method provided by the present application firstly builds a tower plate model corresponding to the first subspace according to the set distance, then determines the second subspace set within the tower model range as the tower subspace set, and determines the second subspace set within the disk model range as the disk subspace set, and finally calculates the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace set and the particles contained in the disk subspace set. The data processing method provided by the present application will perform a more fine-grained spatial division on each first subspace contained in the simulation system space, and the range of the second subspace obtained by the division is much smaller than the range of the first subspace, so that compared with the number of particles contained in the first subspace set within the tower plate model range in the prior art, the total number of particles contained in the tower subspace set and the disk subspace set in the present application is less, so that the position information of the particles that need to be transmitted is less, and the amount of calculation is smaller, thereby improving the efficiency of supercomputing.
[0070] It should also be noted that, for the above steps S201 to S203, after the tray model corresponding to the first subspace is built, the calculation unit corresponding to the first subspace can calculate the particle-to-particle interaction based on the tray model. In a preferred embodiment, after the tray models corresponding to the first subspaces are built, the calculation units corresponding to the first subspaces can calculate the particle-to-particle interaction in parallel, that is, the calculation units corresponding to the first subspaces can simultaneously process the particle-to-particle interaction within the corresponding tray model to further improve the supercomputing efficiency.
[0071] In an optional embodiment, if the distance between particles in a particle pair is less than or equal to a set distance, the interaction between particles can continue to be calculated, which is a valid calculation; if the distance between particles in a particle pair is greater than the set distance, there is no need to calculate the interaction between particles, which is an invalid calculation.
[0072] The inventor of this case found in the process of implementing the above embodiment that the distance between some subspaces in the tower and the subspaces in the disk is relatively far. If the particle interactions are still calculated according to the process of step S203, the amount of invalid calculation is high. For example, see Figure 6As shown, the distance d between the tower subspace "T1" and the disk subspace "P4" is much greater than the set distance R. At this time, if the particles contained in the tower subspace "T1" are still paired with the particles contained in the disk subspace "P4", the distances of the particle pairs calculated subsequently will inevitably be greater than the set distance, resulting in a high amount of invalid calculations. Based on this, the inventor of this case proposed another data processing method, which can be regarded as a further optimization of step S203 in the above embodiment. The optimization idea is: pair the tower subspace and the disk subspace. If the distance between the tower and disk subspace pairs obtained after pairing is less than or equal to the set distance, the distance between the particles contained in the tower subspace and the particles contained in the disk subspace is calculated, and the particle-particle interaction is calculated based on the calculated distance.
[0073] Next, see Figure 7 , shows a flow chart of another data processing method provided by an embodiment of the present application, the data processing method may include:
[0074] Step S701: construct a tray model corresponding to the first subspace according to the set distance.
[0075] Step S702: determine the second subspace set within the tower model as the in-tower subspace set, and determine the second subspace set within the disk model as the in-disk subspace set.
[0076] Steps S701 and S702 correspond to the above-mentioned steps S201 and S202 one by one, and details can be referred to the above-mentioned embodiment, which will not be described in detail here.
[0077] Step S703: Pair each tower subspace included in the tower subspace set with each disk subspace included in the disk subspace set to obtain a plurality of tower disk space pairs.
[0078] See also Figure 8 As shown in the left figure, in this step, the subspaces in each tower can be paired with the subspaces in each plate to obtain multiple tower plate space pairs.
[0079] Step S704, for each tower plate space pair: determine the distance of the tower plate space pair; if the distance of the tower plate space pair is less than or equal to the set distance, calculate the particle-to-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
[0080] In this step, the shortest distance of a tower plate space pair can be determined as the distance of the tower plate space pair. After determining the distance of the tower plate space pair, this step can determine whether it is necessary to calculate the interaction between the particles contained in the tower plate space pair (i.e., the interaction between the particles contained in the tower subspace in the tower plate space pair and the subspace in the plate in the tower plate space pair) according to the size relationship between the distance of the tower plate space pair and the set distance. Wherein, if the distance of the tower plate space pair is less than or equal to the set distance, then according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the subspace in the plate in the tower plate space pair, the interaction between the particles contained in the tower plate space pair is calculated by the calculation unit corresponding to the first subspace, and if the distance of the tower plate space pair is greater than the set distance, it is not necessary to calculate the interaction between the particles contained in the tower plate space pair.
[0081] It should be noted that the process of this step "calculating the interaction between particles contained in the tower plate space pair through the calculation unit corresponding to the first subspace" is similar to the above step S203. For details, please refer to the introduction in step S203, which will not be repeated here.
[0082] This step can execute the above process for each tower plate space pair. Specifically, in this step, when "executing the above process for each tower plate space pair", the distances of each tower plate space pair can be calculated respectively, and then the tower plate space pairs whose distances are less than or equal to the set distance can be selected from each tower plate space pair, and finally the interaction between particles contained in the selected tower plate space pairs can be calculated by the calculation unit corresponding to the first subspace. The tower plate space pairs before and after the selection are respectively referred to Figure 8 The left and right pictures in Figure 8 In the right figure in , the distance of each tower plate space pair screened out (after screening) is less than or equal to the set distance. Of course, this step can also perform the above process "sequentially" on each tower plate space pair, that is, first determine the distance of the first tower plate space pair, and determine whether it is necessary to calculate the interaction between the particles contained in the first tower plate space pair based on the size relationship between the distance of the first tower plate space pair and the set distance, then determine the distance of the second tower plate space pair, and determine whether it is necessary to calculate the interaction between the particles contained in the second tower plate space pair based on the size relationship between the distance of the second tower plate space pair and the set distance, and so on.
[0083] In summary, this embodiment can compare the distance between the tower plate space pair and the set distance, and perform subsequent particle distance calculation, particle distance comparison, interaction calculation and other steps when the distance between the tower plate space pair is less than or equal to the set distance. When the distance between the tower plate space pair is greater than the set distance, there is no need to perform subsequent particle distance calculation, particle distance comparison, interaction calculation and other steps, thereby reducing the amount of invalid calculation. In the simulation calculation process of tens of millions or even billions of rounds, the calculation time is greatly saved and the efficiency of supercomputing is improved.
[0084] In another optional embodiment, the inventor of this case conducted a detailed study of the prior art and found that the connection method of the computing units corresponding to each first subspace in the prior art is a one-dimensional series structure. This one-dimensional series structure causes the data transmission path between the computing units to be too long and the transmission is too complicated. For example, in a one-dimensional series structure, each computing unit is connected in series to form a chain. If two computing units that are far apart need to communicate, they must pass through multiple computing units in the middle, and the transmission path is long and the transmission is complicated.
[0085] Based on this, this embodiment can design the computing units corresponding to each first subspace contained in the simulation system space into a three-dimensional frame structure according to the three-dimensional property of the simulation system space, that is, each computing unit is stacked and connected in the three-dimensional space.
[0086] A schematic diagram of the three-dimensional framework can be found in Fig. 9 As shown in the right figure of , the process of step S201 and step S701 in the above embodiment of "dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units" can be: Fig. 9 , the simulation system space is divided into the same number of parts corresponding to the position of the calculation unit, each of which is a first subspace. The position information of the particles contained in the first subspace is stored under the calculation unit with the same position, so that the first subspace can correspond to the calculation unit one by one.
[0087] In this embodiment, the computing units corresponding to each first subspace contained in the simulation system space are designed as a three-dimensional framework structure, which optimizes the data transmission path and reduces the complexity of data transmission. For example, for 512 computing units, if they are designed as a three-dimensional framework structure, the data transmission between the two farthest computing units only needs to pass through 22 computing units. Compared with the prior art that needs to pass through 510 computing units, the data transmission path of this embodiment is better and the complexity of data transmission is lower.
[0088] In another optional embodiment, the present embodiment may design multiple sub-computing units in the computing unit corresponding to each first subspace, and each sub-computing unit may determine the interaction between particles contained in each tower plate space pair in parallel to improve the supercomputing efficiency.
[0089] Based on this, the process of "step S704, calculating the particle-particle interaction by the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair" may include:
[0090] Step S7041, determine the sub-computing unit corresponding to the tower plate space.
[0091] In this embodiment, the calculation unit corresponding to the first subspace is responsible for calculating the interaction between particles contained in each tower plate plate space pair whose tower plate space distance is less than or equal to the set distance. When the calculation unit corresponding to the first subspace includes multiple sub-calculation units, this embodiment can divide each tower plate plate space pair whose tower plate space distance is less than or equal to the set distance into each sub-calculation unit, so that the sub-calculation unit can calculate the interaction between particles contained in the corresponding tower plate plate space pair in subsequent steps.
[0092] Preferably, each tower plate space pair whose distance between tower plate spaces is less than or equal to the set distance is evenly distributed to each sub-computing unit. For example, assuming that there are 15 tower plate space pairs whose distance between tower plate space pairs is less than or equal to the set distance, respectively recorded as tower plate space pairs 1 to 15, and the computing unit corresponding to the first subspace includes 3 sub-computing units, respectively recorded as sub-computing units A to C, then every 5 tower plate space pairs correspond to one sub-computing unit, for example, tower plate space pairs 1 to 5 correspond to sub-computing unit A, tower plate space pairs 6 to 10 correspond to sub-computing unit B, and tower plate space pairs 11 to 15 correspond to sub-computing unit C.
[0093] Step S7042, calculating the particle-particle interaction through the sub-calculation unit corresponding to the tower plate space pair according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
[0094] The process of this step "calculating the particle interactions through the sub-calculation units corresponding to the tower plate space" is the same as the process of the above step S203. For details, please refer to the above introduction and will not be repeated here.
[0095] Preferably, in this step, each sub-computing unit can calculate the interaction between particles in parallel to improve the efficiency of supercomputing. For example, in the previous example, sub-computing unit A, sub-computing unit B and sub-computing unit C calculate the interaction between particles in parallel, that is, while sub-computing unit A calculates the interaction between particles contained in tower plate space pair 1, sub-computing unit B can calculate the interaction between particles contained in tower plate space pair 6, and sub-computing unit C can calculate the interaction between particles contained in tower plate space pair 11.
[0096] In summary, in the design of this embodiment, each computing unit can include multiple sub-computing units, and the tasks in each computing unit can be divided into corresponding equal parts, which are processed simultaneously by each sub-computing unit. That is, multiple sub-computing units calculate the interactions between particles contained in the tower plate space pair in parallel, thereby optimizing the computing task allocation and data management, and improving the supercomputing efficiency.
[0097] An embodiment of the present application further provides a data processing device. The data processing device provided by the embodiment of the present application is described below. The data processing device described below and the data processing method described above can be referenced to each other.
[0098] See also Fig.10 , which shows a schematic diagram of the structure of a data processing device provided in an embodiment of the present application, such as Fig.10 As shown, the data processing device may include: a model building module 1001, a second subspace determination module 1002 and an interaction calculation module 1003.
[0099] The model building module 1001 is used to build a tower plate model corresponding to the first subspace according to the set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units, and the tower plate model corresponding to the first subspace includes a tower model and a plate model.
[0100] The second subspace determination module 1002 is used to determine the second subspace set within the tower model as the in-tower subspace set, and determine the second subspace set within the disk model as the in-disk subspace set, wherein the second subspace set includes multiple second subspaces, and the second subspace is a subspace obtained by performing three-dimensional equal-volume division on each first subspace included in the simulation system space, the in-tower subspace set includes multiple in-tower subspaces, and the in-tower subspace is the second subspace within the tower model, and the in-disk subspace set includes multiple in-disk subspaces, and the in-disk subspace is the second subspace within the disk model.
[0101] The interaction calculation module 1003 is used to calculate the interaction between particles through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, wherein the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk is determined according to the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk.
[0102] The data processing device provided by the present application first builds a tower plate model corresponding to the first subspace according to the set distance, then determines the second subspace set within the tower model range as the tower subspace set, and determines the second subspace set within the disk model range as the disk subspace set, and finally calculates the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace set and the particles contained in the disk subspace set. The data processing device provided by the present application will perform a more fine-grained spatial division on each first subspace contained in the simulation system space, and the range of the second subspace obtained by the division is much smaller than the range of the first subspace, so that compared with the number of particles contained in the first subspace set within the tower plate model range in the prior art, the total number of particles contained in the tower subspace set and the disk subspace set in the present application is less, so that less position information of the particles needs to be transmitted, and the amount of calculation is small, which improves the efficiency of supercomputing.
[0103] In a possible implementation, the interaction calculation module 1003 may include: a pairing module and a screening calculation module.
[0104] The pairing module is used to pair each tower subspace included in the tower subspace set with each disk subspace included in the disk subspace set to obtain a plurality of tower disk space pairs.
[0105] The screening calculation module is used to determine the distance of each tower plate space pair. If the distance of the tower plate space pair is less than or equal to the set distance, the particle-to-particle interaction is calculated through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
[0106] In a possible implementation, in the data processing device provided in the embodiment of the present application, the computing units corresponding to the first subspaces included in the simulation system space are three-dimensional framework structures.
[0107] In a possible implementation, the computing unit corresponding to the first subspace includes multiple sub-computing units.
[0108] Based on this, the above-mentioned screening calculation module, when calculating the particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair, can include: a sub-calculation unit determination module and a sub-calculation unit calculation module.
[0109] The sub-computing unit determination module is used to determine the sub-computing unit corresponding to the tower plate space pair.
[0110] The sub-computing unit calculation module is used to calculate the interaction between particles through the sub-computing unit corresponding to the tower plate space pair according to the set distance and the distance between the particles contained in the tower sub-space in the tower plate space pair and the particles contained in the disk sub-space in the tower plate space pair.
[0111] The embodiment of the present application also provides a data processing device. Optionally, Fig.11 The hardware structure diagram of the data processing device is shown in FIG. Fig.11 , the hardware structure of the data processing device may include: at least one processor 1101, at least one communication interface 1102, at least one memory 1103 and at least one communication bus 1104;
[0112] In the embodiment of the present application, the number of the processor 1101, the communication interface 1102, the memory 1103, and the communication bus 1104 is at least one, and the processor 1101, the communication interface 1102, and the memory 1103 communicate with each other through the communication bus 1104;
[0113] The processor 1101 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention;
[0114] The memory 1103 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory;
[0115] The memory 1103 stores a program, and the processor 1101 can call the program stored in the memory 1103, and the program is used to:
[0116] A tower plate model corresponding to the first subspace is constructed according to the set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units, and the tower plate model corresponding to the first subspace includes a tower model and a plate model;
[0117] Determine a second subspace set within the tower model as the in-tower subspace set, and determine a second subspace set within the disk model as the in-disk subspace set, wherein the second subspace set includes a plurality of second subspaces, and the second subspaces are subspaces obtained by performing three-dimensional equal-volume divisions on each of the first subspaces included in the simulation system space, the in-tower subspace set includes a plurality of in-tower subspaces, and the in-tower subspace is the second subspace within the tower model, and the in-disk subspace set includes a plurality of in-disk subspaces, and the in-disk subspace is the second subspace within the disk model;
[0118] According to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, the particle interaction is calculated by the calculation unit corresponding to the first subspace, wherein the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk is determined according to the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk.
[0119] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0120] In an optional embodiment, the memory 1103 can also store other information, such as particle position information, related data generated during the program running process, and other information; in another optional embodiment, the data processing device provided in the embodiment of the present application can also include other memories to store data such as particle position information.
[0121] An embodiment of the present application also provides a readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the data processing method as described above is implemented.
[0122] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0123] Optionally, the readable storage medium provided in the embodiment of the present application may also store other information, such as position information of particles, relevant data generated during the program running process, and other information.
[0124] Finally, it should be noted that, in this article, relational terms such as and second are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0125] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0126] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data processing method, characterized in that: include: A tray model corresponding to the first subspace is constructed according to the set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of computing units, and the tray model corresponding to the first subspace includes a tower model and a tray model; Determine a second subspace set within the tower model as the in-tower subspace set, and determine a second subspace set within the disk model as the in-disk subspace set, wherein the second subspace set includes a plurality of second subspaces, and the second subspaces are subspaces obtained by performing three-dimensional equal-volume division on each first subspace included in the simulation system space, the in-tower subspace set includes a plurality of in-tower subspaces, and the in-tower subspace is the second subspace within the tower model, and the in-disk subspace set includes a plurality of in-disk subspaces, and the in-disk subspace is the second subspace within the disk model; Transmitting the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk to the calculation unit corresponding to the first subspace, and calculating the particle-particle interaction by the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk, wherein the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk is determined according to the position information of the particles included in the subspace set in the tower and the position information of the particles included in the subspace set in the disk; The calculating the particle-particle interaction by a calculation unit corresponding to the first subspace according to the set distance and the distance between the particles included in the subspace set in the tower and the particles included in the subspace set in the disk includes: Pairing each of the tower subspaces included in the tower subspace set with each of the disk subspaces included in the disk subspace set to obtain a plurality of tower disk subspace pairs; For each of the tower plate space pairs: Determine the distance between the tower plate space pairs; If the distance between the tower plate space pair is less than or equal to the set distance, the particle interaction is calculated by the calculation unit corresponding to the first subspace based on the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair; the calculation units corresponding to each of the first subspaces contained in the simulation system space are three-dimensional frame structures, and each calculation unit is stacked and connected in three-dimensional space.
2. The data processing method according to claim 1, characterized in that: The computing unit corresponding to the first subspace includes a plurality of sub-computing units; The calculating the particle-to-particle interaction by a calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair comprises: Determine the sub-computing unit corresponding to the tower plate space pair; According to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair, the interaction between the particles is calculated by the sub-calculation unit corresponding to the tower plate space pair.
3. A data processing device, characterized in that: include: Model building module, second subspace determination module, interaction calculation module; The model building module is used to build a tray model corresponding to the first subspace according to the set distance, wherein the first subspace is a subspace obtained by dividing the simulation system space into three-dimensional equal volumes based on the number of calculation units, and the tray model corresponding to the first subspace includes a tower model and a tray model; The second subspace determination module is used to determine a second subspace set within the tower model as an in-tower subspace set, and to determine a second subspace set within the disk model as an in-disk subspace set, wherein the second subspace set includes a plurality of second subspaces, and the second subspaces are subspaces obtained by performing three-dimensional equal-volume division on each of the first subspaces included in the simulation system space, the in-tower subspace set includes a plurality of in-tower subspaces, and the in-tower subspaces are the second subspaces within the tower model, and the in-disk subspace set includes a plurality of in-disk subspaces, and the in-disk subspaces are the second subspaces within the disk model; The interaction calculation module is used to transmit the position information of the particles contained in the subspace set in the tower and the position information of the particles contained in the subspace set in the disk to the calculation unit corresponding to the first subspace, and calculate the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the subspace set in the tower and the particles contained in the subspace set in the disk, wherein the distance between the particles contained in the subspace set in the tower and the particles contained in the subspace set in the disk is determined according to the position information of the particles contained in the subspace set in the tower and the position information of the particles contained in the subspace set in the disk; The interaction calculation module includes: a pairing module and a screening calculation module; The pairing module is used to pair each of the tower subspaces included in the tower subspace set with each of the disk subspaces included in the disk subspace set, so as to obtain a plurality of tower disk subspace pairs; The screening calculation module is used to determine the distance of each tower plate space pair, and if the distance of the tower plate space pair is less than or equal to the set distance, calculate the particle-to-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the plate subspace in the tower plate space pair; The computing units respectively corresponding to the first subspaces contained in the simulation system space are three-dimensional frame structures, and the computing units are stacked and connected in the three-dimensional space.
4. The data processing device according to claim 3, characterized in that: The computing unit corresponding to the first subspace includes a plurality of sub-computing units; The screening calculation module, when calculating the particle-particle interaction through the calculation unit corresponding to the first subspace according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the plate subspace in the tower plate space pair, comprises: a sub-calculation unit determination module and a sub-calculation unit calculation module; The sub-computing unit determination module is used to determine the sub-computing unit corresponding to the tower plate space pair; The sub-computing unit calculation module is used to calculate the particle-to-particle interaction through the sub-computing unit corresponding to the target subspace pair according to the set distance and the distance between the particles contained in the tower subspace in the tower plate space pair and the particles contained in the disk subspace in the tower plate space pair.
5. A data processing device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the data processing method according to any one of claims 1 to 2.
6. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the data processing method according to any one of claims 1 to 2 is implemented.
