next up previous
Next: Geometric Based Algorithms Up: Load Balancing for Unstructured Previous: Graph Theory Notation


The Static Load Balancing Problem

The static load balancing problem for a mesh based application involves partitioning the mesh into subdomains. The subdomains can then be distributed over the processors and calculation carried out in parallel. Different partitions of the mesh may result in different times to completion for the calculation. It is therefore necessary to examine the quality of the partitioning based on its effect on the application code. There are a number of factors.

The first factor is that of the load balance. The computational work of each processor should be balanced, so that no processor will be waiting for others to complete. Assuming that the computational work per processor is proportional to the number of mesh nodes in the subdomain, then to achieve load balance it is necessary for the number of nodes in each subdomain to be the same.

The second factor is that of the communication cost. When forming the discretized equations on a node of the mesh, the contributions from its nearest neighbor nodes will usually be needed. Depending on the order of the discretization scheme, contributions from more distant neighboring nodes may be necessary. On a parallel computer, accumulating the contributions from nodes that are not on the current processor will incur communication cost. It is known that on distributed memory parallel computers the cost of accessing remote memory is far higher than that of accessing local memory (typically a ratio of between 10 to 1000). It is therefore important to minimize the communication cost.

There are other factors that affect the time to completion of a parallel calculation. Often, to maximize the parallelism, the solver algorithm implemented on a parallel computer is not chosen to be mathematically equivalent to the sequential algorithm. Therefore the number of iterations needed for a parallel code to converge on multi-processors may not be the same as that on a single-processor. This is particularly true when implicit algorithms are used, and the way a mesh is partitioned can affect the rate of convergence considerably. However for now, we will in essence assume that a linear explicit solver is being used and seek to meet two criteria

It is useful to introduce the idea of a communication graph, and to distinguish the computational mesh from its communication graph. The communication graph characterizes the data dependency of the computation on the mesh. For instance, when constructing a communication graph for the purpose of partitioning a finite element mesh,

The partitioning of a mesh is usually based on the partitioning of its corresponding communication graph. The number of edges of the communication graph cut by a partitioning is called the number of edges-cut (or edge-cut for short) of the partitioning. The communication cost of a subdomain is a function of its edge-cut as well as the number of neighboring subdomains that share edges with it. In practice the edge-cut of a partitioning is usually used as an important indicator of the quality of the partitioning. Figure 2 shows a mesh of 788 elements for an element based finite element calculation, and the dual graph of the mesh. The partitioning of the dual graph (Figure 2 (right)) into 4 subdomains, using the recursive coordinate bisection (RCB) algorithm described in Section 3.1.1, results in the partitioning of the mesh shown in Figure 2 (left).

Figure 2: A mesh of 788 elements (left), and its dual graph with 788 vertices (right)
\begin{figure}
\epsfxsize =0.16\vsize
\epsfysize =0.16\vsize
\hfil\epsffile {mes...
...epsfxsize =0.16\vsize
\epsfysize =0.16\vsize
\epsffile {0.ps}\hfil
\end{figure}

When there are only two subdomains or processors, the graph partitioning problem becomes a graph bisection problem, where given a graph $G=(V,E)$ with vertices $V$ and edges $E$, it is required to find a partition $V=V_1\bigcup V_2$ such that $V_1\bigcap V_2=\emptyset$, $\vert V_1\vert\simeq \vert V_2\vert$ and the edge-cut $\vert E_c\vert$:

\begin{displaymath}\vert E_c\vert=\vert\{h\ \vert\ h\in E; h=(v_1\ v_2);\ v_1\in V_1,\ v_2\in V_2\}\vert\end{displaymath}

is minimized. Here for a set $S$, one denotes $\vert S\vert$ as the number of elements in the set.

The graph bisection problem has been studied in the past by many authors (see, e.g., [53,63,11]) in the context of graph theory as well as VLSI circuit layout. Advances in parallel computing hardware and software has renewed interest in the problem. The graph bisection problem is an NP hard problem, so there are no known algorithms that can find the exact solution to the problem in polynomial time. Most of the graph bisection methods therefore seek a good approximation to the optimal partitioning that can be calculated efficiently.

In the following a number of partitioning algorithms are described. Many of them are bisection based. A partitioning for an arbitrary number of processors requires the recursive use of the bisection algorithm (for a number that is not a power of two, the bisection will give two subdomains of different sizes, see [42]). We shall denote $n=\vert V\vert$ the number of vertices of the graph, and $p$ the number of processors (subdomains).



Subsections
next up previous
Next: Geometric Based Algorithms Up: Load Balancing for Unstructured Previous: Graph Theory Notation

2000-03-21
1