Title of Invention  LOAD BALANCING BY SPATIAL PARTITIONING OF INTERACTION CENTERS 

Abstract  A method (100) for creating a load balanced spatial partitioning of a structured, diffusing system of particles with pairwise interactions, comprises steps of: assigning a weight corresponding to a computational cost for a pair interaction of particles to a simulation space distance between the particles (106); performing a spatial partitioning (108) of the simulation space; and assigning computation of pair interaction to any node that has the positions of both particles (110). The method can also be implemented as machine executable instructions executed by a programmable information processing system or as hard coded logic in a specialized computing apparatus (200) such as an applicationspecific integrated circuit (ASIC). 
Full Text  LOAD BALANCING BY SPATIAL PARTITIONING OF INTERACTION CENTERS FIELD OF THE INVENTION [0001] The invention disclosed broadly relates to the field of information processing systems and methods and more particularly relates to supercomputer systems and methods used for nbody simulations including biomolecular simulations and processing such as protein and DNA folding. BACKGROUND OF THE INVENTION [0002] Biotechnology has substantially advanced with the use of powerful information processing systems. One such system is the Blue Gene Project announced in 1999. At that time, the Blue Gene Project had two high level goals: to build the world's fastest super computer and to use this unprecedented computational resource to solve the grand challenge life sciences problems such as advancing our understanding of biologically important processes, in particular, the mechanisms behind protein folding. [0003] As a step on the way to achieving the first of these goals, the first member of the Blue Gene family, Blue Gene/L, was designed and built. See N.R. Adiga et al An overview of the Blue Gene/L supercomputer. In Supercomputing 2002 Proceedings, November 2002. http://www.sc2002.org/paperpdfs/pap.pap207.pdf. In order to address the second of these goals, a research project was begun create a classical molecular dynamics software package targeted at the Blue Gene/L architecture and to use that package for longtime and largescale biomolecular simulations. See F. Allen et al. Blue Gene: a vision for protein science using a petaflop supercomputer. IBM Systems Journal, 40(2):310327. 2001. [0004] Classical molecular dynamics is predominantly an Nbody problem. A standard definition of an nbody problem is as follows: The nbody problem is the problem of finding, given the initial positions, masses, and velocities of n bodies, their subsequent motions as determined by classical mechanics. [0005] An Nbody problem, for example molecular dynamics (MD), proceeds as a sequence of simulation time steps. At each time step, forces on particles, in MD atoms, are computed; and then the equations of motion are integrated to update the velocities and positions of the particles. In order to compute the forces on the particles, nominally the force between each particle and every other particle is computed, a computational burden of 0(n"). [0006] Practically speaking, molecular dynamics programs reduce the 0 (n~) by cutting off pair interactions at some distance. However for many scientifically relevant molecular systems, the computational burden due to the particle pair interactions remains large. In order to reach scientifically relevant simulation times, parallel computers are required to compute particle pair interactions rapidly. See B.G. Fitch, R.S. Germain, M. Mendell, J. Pitera, M. Pitman, A. Rayshubskiy, Y. Sham, F Suits, W. Swope, T.J.C. Ward, Y. Zhestkov, and R. Zhou, "Blue Matter, an application framework for molecular simulation on Blue Gene" Journal of Parallel and Distributed Computing, 63:759773, 2003. [0007] Note that the Blue Gene/L parallel computational platform does interprocessor communication primarily using a 3D torus network. Processor space is defined by the location of processors on the 3D torus network and communication costs between processors increase with distance. There is a need for a system and method to enable the geometric nbody problem to be efficiently mapped (e.g., to a machine with a fundamentally geometric processor space such as Blue Gene/L). SUMMARY OF THE INVENTION [0008] Briefly, according to an embodiment of the invention, a method for creating a load balanced spatial partitioning of a structured, diffusing system of particles with pairwise interactions, includes steps of: assigning a weight, corresponding to a computational cost for a pair interaction' of particles, to a point in simulation space between the two particles (where the preferred implementation is to assign this cost to the midpoint of the two particle positions); performing a spatial partitioning of the simulation space; and assigning computation of pair interaction to any node that has the positions of both particles. [0009] The method can also be implemented as machine executable instructions executed by a programmable information processing system or as hard coded logic in a specialized computing apparatus such as an applicationspecific integrated circuit (ASIC). BRIEF DESCRIPTION OF THE DRAWINGS [0010] FIG. 1 is a flowchart of a method according to an embodiment of the invention. [0011] FIG. 2 is a high level block diagram showing an information processing system according to another embodiment of the invention. [0012] FIG. 3 is a view of a twodimensional system with both particle positions and interaction centers shown. [0013] FIG. 4 shows a spatial decomposition showing the broadcast zones for two nodes superimposed on the spatial decomposition of the domain onto all nodes (twodimensional view for simplicity). DETAILED DESCRIPTION [0014] In the discussion that follows we will use the following definitions/conventions: [0015] For some nbody simulations, it is convenient to define a partitioning of the particles into groups of one or more particles that are treated as a unit for certain purposes. When this intended, the term "fragment" will be used to indicate such an entity that consists of one or more particles. [0016] The term "node" refers to the computational elements that form nodes in the graph defined by the interconnection network. Any "node" may include one or more processors. The internal operations of a node will not be addressed in this discussion. [0017] The term "simulation space" refers to the domain of the nbody simulation [0018] The term "node space" refers to the geometry of the interconnections between nodes of the machine. Typically we will be discussing a machine with a threedimensional torus/mesh interconnect geometry in which each node is coimected to its six nearest neighbors and is addressed by a triple of integers that represent its coordinates within the network. In a torus, periodic boundary conditions are implemented physically by connecting the nodes on opposite "faces" of the machine. [0019] Referring to FIG.l, there is shown a flow chart illustrating a method 100, according to an embodiment of the invention, for creating a load balanced spatial partitioning of a structured, diffusing system of particles with pairwise interactions that is scalable to a very large number of nodes and has favorable communications characteristics. Step 102 defines a simulation space comprising a plurality of particles and a plurality of processor nodes. This step 102 can be performed using a kd tree on the simulation space. See Volker Gaede and Oliver Gunther, Multidimensional Access Methods, ACM Computing Surveys, 30(2): 170231, June 1998. [0020] To deal with structural imbalance in the node space, step 104 determines a weight corresponding to the computational cost for a particular pair interaction of particles, or locally clustered groups of particles, to simulation space at a point between these fragments, such as the midpoint of the distance between the fragments. Each of the fragments can comprise a single particle. [0021] Step 106 assigns the determined weight to a point in simulation space between the locations of the two interacting particles. The point is preferably the midpoint between the interacting fragments. The position of each particle is broadcast to points in simulation space within a distance of onhalf of the cutoff radius. [0022] Step 108 performs a spatial partitioning of the volume of the simulation space such that all partitions have substantially the same weight. [0023] Step 110 assigns a computation of the fragment pair interaction to any node that has the positions of both fragments. [0024] To simplify the processing, pair interactions can be cutoff beyond a defined radius Re, therefore one can broadcast the position of a particle to the group of nodes containing a portion of the sphere of radius Rb > Re 12 in simulation space, ensuring the existence of at least one node containing the positions of both particles required to compute any interaction. When more than one node contains the positions required to compute an interaction, the computation can be assigned to any of those nodes, providing an opportunity for eliminating imbalances caused by short term local fluctuations in interaction workload. Because we are canying out the loadbalancing using interaction centers, there are many more geometrically distinct work objects that can be partitioned using an ORB strategy and this decomposition allows productive use of more nodes than there are particles in the system. [0025] Although in the embodiments discussed herein the method is performed with a processor node network comprising a toroidal shape, the method may be applied to other network topologies with good results. [0026] Referring to FIG. 2, there is shown a block diagram of an information handling system 200 according to an embodiment of the invention. The system 200 represents any processing node in a multi processor node network. The system 200 comprises a processor 202, a memory 204, and an input/output (I/O) subsystem 206. [0027] The memory 204 can be a volatile or nonvolatile randomaccess memory (RAM). The system 200 can also comprise readonly memory (ROM) 210 and a magnetic media mass storage device such as a hard disk drive 212. These are linked by a CPU bus 208. [0028] The I/O subsystem 206 may further comprise various end user interfaces such as a display, a keyboard, and a mouse. The I/O subsystem 206 may further comprise a connection to a network such as a localarea network (LAN) or sidearea network (WAN) such as the Internet, According to another embodiment of the invention, a computer readable medium, such as a CDROM 214 can include program instructions for operating the programmable computer 200 according to the invention. What has been shown an discussed is a highlysimplified depiction of a programmable computer apparatus. Those skilled in the art will appreciate that other lowlevel components and connections are required in any practical application of a computer apparatus. [0029] An embodiment of the invention efficiently solves the Nbody problem by geometrically mapping simulation space to a torus/mesh parallel computer's node space, a spatial decomposition. The essential mechanism for distributing the work is an ellipsoidal broadcast of particle positions followed possibly by an ellipsoidal reduction of forces on fragment home nodes. Ellipsoidal communication primitives. [0030] Ellipsoidal communication primitives are a basic requirement for this embodiment. These can be constructed using pointtopoint communications however, hardware may offer features to enhance the performance of these primitives such as multicast. For the purposes of this discussion, we will describe the functional requirements of ellipsoidal communication primitives but not the implementation. [0031] In our mapping of simulation space to node space, we divide simulation space into the same number of subvolumes as we have nodes and further, the simulation space will have the same extents (measured in voxels) in each dimension as node space (measured in nodes). The volume elements assigned to each processor (or voxels) may be of nonuniform size. [0032] Ellipsoidal communications patterns in node space arise when spherically bounded communication patterns in simulation space are carried out and when the voxels in simulation space are nonuniform in size or noncubical. The two operations of interest are: (1) Ellipsoidal broadcast: given a sphere in simulation space, broadcast data from the center to each node managing space in that sphere; and (2) Ellipsoidal reduce: given a sphere in simulation space, thetareduce data from each node managing space in that sphere to the root at the center. NBody Spatial Decomposition for Load Balance [0033] Nbody problems in a periodic simulation space nominally have a computational burden defined by the order 0(N ) pairwise particle interactions possible. In many applications, this computational burden is reduced to O(N) by cutting off (i.e., not computing) interactions between particles separated by more than a specified distance in periodic simulation space. [0034] A natural way to map a spatial problem on a spatial connected machine is with a direct mapping where the simulation space is uniformly assigned to the processors' space. For Nbody systems (assuming that all pair interactions have the same computational cost) with a uniform density of particles or where no cutoffs are imposed, this simple mapping will result in a balanced load across the machine since each node or region of nodes will have roughly the same interaction computation workload. [0035] Where particles are not evenly distributed in the simulation space and interaction cutoffs are in effect and/or interaction computation costs are not the same, a direct mapping results in load imbalance. There are techniques for locally averaging load imbalance between nodes. However, if the imbalance is severe enough, these regional averaging techniques can be ineffective. [0036] For any fixed distribution of particles, techniques such as optimal recursive bisection (ORB) can be used to balance computational burden on each node by assigning partitioning simulation space into nonuniform subvolumes that will be assigned to nodes. See L. Nyland, J. Prins, R.H. Yun, J. Hermans, H.C. Kum. and L. Wang. Achieving scalable parallel molecular dynamics using dynamic spatial decomposition techniques. Journal of Parallel and Distributed Computing, 47(2):125138, 1997, [0037] An ORB can be constructed from a distribution of points representing particle or fragment centers, or as discussed below, midpoints of pair interactions. Prior to ORB construction, a function estimating the work associated with each point is evaluated and stored with the point. In the case of pair interaction midpoints, this corresponds to the work required to evaluate the forces between the pair of particles or fragments. ORB construction begins with the periodic boundaries of the simulation cell as the initial volume, and the distribution of points with their associated work values. Application of the ORB technique partitions a unit cell into 2N smaller cells. For cases where N is divisible by 3, the number of subvolumes will be equal in each dimension (number of subvolumes — 8,64,512,4096, ... ). [0038] The simulation cell volume is partitioned recursively in cycles. Each cycle bisects a volume along each dimension in succession giving eight subvolumes at the end of the cycle. Each bisection begins by sorting the distribution of points within the volume along one of its dimensions and locating the nearest point to the median of the distribution of work values associated with each point. The volume is then divided with a plane orthogonal to the sorted dimension passing through the selected point. The points in the subvolumes on either side of the plane are then each separately sorted along another dimension, and partitioned according to the points near the median of the work distribution for their respective work value distributions. Each of the four resulting subvolumes are then sorted in the final dimension and partitioned, giving eight partitions of the original volume. This cycle repeats recursively for each of the eight subvolumes until the desired number of subvolumes is reached, which is equal to the number of nodes to be used in the simulation. For cases where N is not divisible by three, the initial cycle partitions along either one or two dimensions, rather than three. The remaining cycles will then partition along each of the three dimensions. [0039] The resulting ORB partitioning of simulation space greatly reduces the variance of work needed to compute the forces represented by the points in a given subvolume. The assignment of the work represented by the points in each subvolume to a node therefore provides an initial step in load balancing. A given Nbody problem may require multiple load balancing techniques. An ORB may be required to balance the global imbalance caused by the structure of the system being simulated and a local work exchange scheme may be required for imbalances caused by diffusion. See T.P. Straatsma and J. A. McCammon. Load balancing of molecular dynamics simulation with NWChem. IBM Systems Journal, 40(2);328341, 2001. Molecular Dynamics Decompositions Based on Ellipsoidal Communications Primitives Optimal Interaction Assignment Using ORBs and Dynamic Interaction Balancing. [0040] Molecular dynamics as applied to biomolecular simulation of fixed sized problems on very large, geometric node spaces requires a simulation space to node space mapping that maintains as much locality as possible while balancing workload. This is so that communication costs and computational costs are minimized in balance. [0041] Since our nbody problem has structural imbalance caused by inhomogeneities in the system, we create a partition of simulation space based on ORB that divides the workload evenly assuming a nominal weight for each pair interaction and a specified cutoff. In the limit that the ratio of the number of particles to node count is small, it may be desirable to start dividing simulation space using optimal recursive bisection and then switch to a strict volumetric bisection near the leaves to improve micro level balance of particle assignment. [0042] FIG. 3 contains a view of a twodimensional system with both particle positions and interaction centers shown. FIG. 3 illustrates the relationship of the particle positions (each shown as larger dots) and the interaction centers (each shown as a smaller dot) in simulation space. The interaction centers are placed at the midpoint between each pair of particles that fall within the cutoff radius. A dashed circle with radius equal to the cutoff radius (rc) chosen is drawn around one of the particles. Static or "structural" load balancing is carried out by using optimal recursive bisection to partition the simulation volume into subvolumes that contain approximately equal computational burdens. The computational burden of a subvolume is computed by summing the computational burden of each interaction center contained within that subvolume. [0043] Next, the minimal set of communicating nodes for a particular particle must be identified. The minimal set of communicating nodes is defined as all those nodes which contain any of the spherical volume of space (with radius greater than half the cutoff radius) centered about the particle. This defines a minimal volume in node space that ensures that there exists at least one node for every pair of particles within cutoff that can calculate the interaction between that pair. [0044] During each simulation step, each node sends all its particle positions to each of its communication partners and receives from each a set of particle positions. A node may be assigned to evaluate the interaction between any pair of particles in the set of positions it has received. [0045] Although pairs of particle positions in the simulation space separated by close to the cutoff distance might be received by only a single node creating a definitive assignment, generally the positions of any given pair of particles will be received by several nodes as shown in FIG. 4, any one of which may be assigned that pair's interaction. [0046] Interaction assignment may be accomplished by any method which results in the interaction between a pair of particles being done once on one node. An example of a simple algorithm is to specify that the interaction will be done on the node that has received both particle positions and has the minimum node id number. Such algorithms however have load balancing characteristics which reflect the spatial mapping technique used. [0047] In order to reduce micro load imbalance, dynamic deterministic interaction assignment can be employed. These techniques allow rapid overlapping regional averaging. To enable these techniques, each node must measure its current computational load and add this value to each message it sends to its communication partners. When a node receives its set of [load, position set] messages from its communicating partners, it now has enough information to deterministically assign itself a set of interactions. The set of interactions each node can contribute to load averaging among its communication partners. [0048] An example of an algorithm which allows deterministic, averaged interaction assignment is as follows: (1) Receive a complete set of [load, position set] messages from communicating partners; (2) For each pair of received messages, create a canonical interaction list including the effects of range cutoffs; (3) For each pair of messages received, determine the set of nodes that also received this pair of messages; (4) Using a deterministic algorithm, assign each interaction (appearing on the canonical interaction list) that could be computed by the above set of nodes to one of those nodes. [0049] Examples of such deterministic algorithms include: Using the loads reported on each of those nodes, assign interactions (which have been ordered in some canonical way) to attempt to equalize the new loads on each of the nodes. Randomizing the assignment of interactions to the node set using a hashing algorithm. Assigning each interaction to the node owning the voxel that contains the midpoint of the line connecting the interacting pair of particles. Do assigned particle pair interactions. Send each computed interaction force back to the pair of nodes that own the interacting particles. [0050] Note that this algorithm costs only interaction computation. The cost of returning the force should be added to reflect lower communication cost of computing an interaction on a node which owns one of the particles. [0051] For the purposes of increased scope for load balancing or in cases where communication costs are high relative to computation costs, it may be advantageous to increase the simulation space radius determining the communication partner set beyond Rd 2 to increase the number of nodes available for load balancing. [0052] Referring to FIG. 4, there is illustrated a spatial decomposition showing the broadcast zones for two nodes (Node A and Node B) superimposed in the spatial decomposition of the domain onto all nodes (a twodimensional view is shown for simplicity). The nodes that contain areas of simulation space within a distance Rb of the voxel assigned to Node B are within an area shown with back hatching in the figure. The nodes that contain areas of simulation space within a distance Rb of the voxel assigned to Node A are within an area with forward hatching. An overlap area comprises nodes also contain areas of simulation space within Rb of the voxels assigned to Nodes A and B. Radius Rb is shown by ellipses surrounding Nodes A and B, respectively. Radius Rb is greater than or equal to Rc 12, where Rc is the cutoff radius. The interaction between a particle stored on Node A and a particle stored on Node B can be computed on any of the nodes within the cross hatched area. [0053] Therefore, while there has been described what is presently considered to be the preferred embodiment, it will understood by those skilled in the art that other modifications can be made within the spirit of the invention. [0054] We claim: CLAIMS We Claim: 1. A method for assigning a pairwise fragment interaction computation to a processing network comprising a plurality of processor nodes, the method comprising: defining a simulation space comprising a plurality of fragments and the plurality of processor nodes; determining a weight for a given pairwise fragment interaction computation, the weight corresponding to a computational cost; assigning the weight to the simulation space at a point between two interacting fragments; performing a spatial partitioning of the simulation space volume such that all partitions have substantially same weight; determining nodes that have the positions of both of the interacting fragments; and assigning the pairwise fragment interaction computation to any node that has the positions of both fragment. 2. The method of claim 1, wherein the step of performing a spatial partitioning comprises using a kd tree on the simulation space and/or an optimal recursive bisection of the simulation space. 3. The method of claim 1, wherein the step of assigning a weight comprises assigning a weight to the midpoint between the pair of fragments. 4. The method of claim 1, wherein each of the fragments comprises a single particle and/or a cluster of particles 5. The method of claim 1 comprising cutting off each pair interaction beyond a defined radius. 6. The method of claim 5 comprising broadcasting the position of a particle to a group of nodes containing a portion of a sphere having a radius Rb that is greater than Rc/2, where Rc is the defined radius to ensure the existence of at least one node containing the positions of both particles required to compute any interaction. 7. The method of claim 6 wherein when more than one node contains the positions required to compute a particle interaction, the computation is assigned to any of those nodes, providing an opportunity for eliminating imbalances caused by short term local fluctuations in interaction workload. 8. The method of claim 1, comprising creating a load balanced spatial partitioning of a structured by diffusing particles with pairwise interactions. 9. The method of calm 8, wherein creating a load balanced spatial portioning comprises: assigning a weight corresponding to a computational cost for a pair interaction of particles to a simulation space distance between the particles; performing a spatial partitioning of the simulation space; and assigning computation of pair interaction to any node that has the positions of both particles. 10. An information processing system comprising a processor configured to perform the method as claimed in any of the preceding claims 1 to 9. 11. A storage device comprising instructions tangibly embodied therein, the instruction when executed configured to perform the method as claimed in any of the preceding claims 1 to 9. Dated this 26 day of November 2007 

5340CHENP2007 AMENDED CLAIMS 04112010.pdf
5340CHENP2007 AMENDED PAGES OF SPECIFICATION 04112010.pdf
5340CHENP2007 EXAMINATION REPORT REPLY RECIEVED 04112010.pdf
5340chenp2007 form3 04112010.pdf
5340CHENP2007 OTHER PATENT DOCUMENT 04112010.pdf
5340chenp2007 other patent document 22112010.pdf
5340CHENP2007 CORRESPONDENCE OTHERS 23112010.pdf
5340CHENP2007 CORRESPONDENCEOTHERS 18122009.pdf
5340chenp2007correspondneceothers.pdf
5340chenp2007description(complete).pdf
Patent Number  245293  

Indian Patent Application Number  5340/CHENP/2007  
PG Journal Number  2/2011  
Publication Date  14Jan2011  
Grant Date  12Jan2011  
Date of Filing  26Nov2007  
Name of Patentee  INTERNATIONAL BUSINESS MACHINES CORPORATION  
Applicant Address  ARMONK, NEW YORK 10504.  
Inventors:


PCT International Classification Number  G06F9/45  
PCT International Application Number  PCT/US2006/002106  
PCT International Filing date  20060120  
PCT Conventions:
