Let us briefly describe a high-level implementation of a parallel
-factorization/solver of a quasiseparable matrix. The actual algorithm
was implemented in MATLAB, using thereby the MatlabMPI package, for
running the parallel algorithm on different machines.
We assume that we divided initially the work load of both machines,
and moreover we assume that the local processor contains the top
rows and the remote processor contains the bottom
rows.
The items in italics only need to be performed in case one wants to
solve a system of equations by the implemented
-factorization.
In case one wants to solve a system of equations, also the right-hand
side needs to be divided into two parts, the top part for the local
and the bottom part for the remote processor.
The main algorithm consists of the following steps.
- Perform in parallel:
- Perform the rank expanding, descending Givens transformations on the local
processor.
Perform the Givens transformations simultaneously on the right-hand side.
- Perform the rank annihilating, upgoing Givens transformations
on the remote processor.
Perform the Givens transformations simultaneously on the right-hand side.
- Send the top row of the matrix from the remote to the local
processor.
Send the top element from the right-hand side from the
remote to the local processor.
- Perform the intersecting Givens transformation.
Perform this Givens transformations also on the right-hand side.
- Send the row back from the local to the remote machine.
Send the bottom element from the right-hand side back.
- Perform in parallel:
- Perform the rank annihilating upgoing Givens transformations
on the local processor.
Perform this Givens transformations simultaneously on the right-hand side.
- Perform the rank expanding descending Givens transformations
on the remote processor.
Perform this Givens transformations simultaneously on the right-hand side.
- One has now computed the top part of the
factor on the local
and the bottom part of the
factor on the remote processor.
- Solve the bottom part of the system of equations on the
remote processor
- Transmit this solution to the local machine.
- Solve the top part of the remaining upper triangular
system on the local machine.
- The solution is now available at the local machine.
So one can clearly see that only the computation of the
-factorization can be done in parallel. Solving the system of
equations via backward substitution needs to be done first at the
remote processor, and then this result needs to be sent to the local
processor for computing the complete solution.
The backward substitution step is of the order
, just like
computing the
-factorization itself. Even though it is possible to
parallellize the backward substitution, we do not do so, because it
becomes too fine grained. To parallelize it, one has to send
immediately every computed value
from the remote processor to
the local processor, who can then already us this to compute the
solution of the upper part, by making the appropriate subtraction.
Being able to halve the complexity of computing the
-factorization
has an important impact on the complexity of the global solver, as the
computation of the
-factorization is the most time consuming
operation, as we will see in the numerical experiments.
Raphael Vandebril
2007-07-17