GO-V.ORG
As seen in

Parareal

Parareal is a parallel algorithm from numerical analysis and used for the solution of initial value problems. It was introduced in 2001 by Lions, Maday and Turinici. Since then, it has become one of the most widely studied parallel-in-time integration methods. Source: e01 Encyclopedia. Licence: CC BY-SA 4.0.

Parareal is a parallel algorithm from numerical analysis and used for the solution of initial value problems. It was introduced in 2001 by Lions, Maday and Turinici. Since then, it has become one of the most widely studied parallel-in-time integration methods. ===The Problem=== The goal is to solve an initial value problem of the form \frac{\mathrm{d} u}{\mathrm{d}t} = f(t,u) \quad \text{over} \quad t \in [t_0,T] \quad \text{with} \quad u(t_0) = u^0. The right hand side f is assumed to be a smooth (possibly nonlinear) function. It can also correspond to the spatial discretization of a partial differential equation in a method of lines approach. We wish to solve this problem on a temporal mesh of N+1 equally spaced points (t_0,t_1,\ldots,t_N) , where t_{j+1} = t_j + \Delta T and \Delta T = (T-t_0)/N . Carrying out this discretisation we obtain a partitioned time interval consisting of time slices [t_j,t_{j+1}] for j = 0,\ldots,N-1 . The objective is to calculate numerical approximations U_j to the exact solution u(t_j) using a serial time-stepping method (e.g. Runge-Kutta) that has high numerical accuracy (and therefore high computational cost). We refer to this method as the fine solver \mathcal{F} , which propagates an initial value U_j at time t_j to a terminal value U_{j+1} at time t_{j+1} . The goal is to calculate the solution (with high numerical accuracy) using \mathcal{F} such that we obtain U_{j+1} = \mathcal{F}(t_j,t_{j+1},U_j), \quad \text{where} \quad U_0 = u^0. The problem with this (and the reason for attempting to solve in parallel in the first place) solution is that it is computationally infeasible to calculate in real-time. ===How it works=== Instead of using a single processor to solve the initial value problem (as is done with classical time-stepping methods), Parareal makes use of N processors. The aim to is to use N processors to solve N smaller initial value problems (one on each time slice) in parallel. For example, in a MPI based code, N would be the number of processes, while in an OpenMP based code, N would be equal to the number of threads. Parareal makes use of a second time-stepping method to solve this initial value problem in parallel, referred to as the coarse solver \mathcal{G} . The coarse solver works the same way as the fine solver, propagating an initial value over a time interval of length \Delta T , however it does so at much lower numerical accuracy than \mathcal{F} (and therefore at much lower computational cost). Having a coarse solver that is much less computationally expensive than the fine solver is the key to achieving parallel speed-up with Parareal. Henceforth, we will denote the Parareal solution at time t_j and iteration k by U^k_j . ====Zeroth Iteration==== Firstly, run the coarse solver serially over the entire time interval [t_0,T] to calculate an approximate initial guess to the solution: U^0_{j+1} = \mathcal{G}(t_j,t_{j+1},U^0_j), \quad j=0,\ldots,N-1. ====Subsequent Iterations==== Next, run the fine solver on each of the time slices, in parallel, from the most up-to-date solution values: U_{j+1}^{1} = \mathcal{F}(t_j, t_{j+1},U^{0}_j), \quad j=0, \ldots, N-1. Now update the parareal solution values sequentially using the predictor-corrector: U_{j+1}^{k} = \mathcal{G}(t_j, t_{j+1},U^{k}_j) + \mathcal{F}(t_j, t_{j+1},U^{k-1}_j) - \mathcal{G}(t_j, t_{j+1},U^{k-1}_j), \quad j=0, \ldots, N-1, k=2, 3, \ldots At this stage, one can use a stopping criterion to determine whether the solution values are no longer changing each iteration. For example, one may test this by checking if | U^{k}_j - U^{k-1}_j | and some tolerance \varepsilon > 0 . If this critertion is not satisfied, subsequent iterations can then be run by applying the fine solver in parallel and then the predictor-corrector. Once the criterion is satisfied, however, the algorithm is said to have converged in k \leq N iterations. Note that other stopping criterion do exist and have been successfully tested in Parareal. ====Remarks==== Parareal should reproduce the solution that is obtained by the serial application of the fine solver and will converge in a maximum of N iterations. For Parareal to provide speedup, however, it has to converge in a number of iterations significantly smaller than the number of time slices, i.e. k \ll N . In the Parareal iteration, the computationally expensive evaluation of \mathcal{F}(t_j, t_{j+1},U^{k-1}_j) can be performed in parallel on N processing units. By contrast, the dependency of U^{k}_{j+1} on \mathcal{G}(t_j, t_{j+1},U^{k}_j) means that the coarse correction has to be computed in serial order. Typically, some form of Runge-Kutta method is chosen for both coarse and fine integrator, where \mathcal{G} might be of lower order and use a larger time step than \mathcal{F} . If the initial value problem stems from the discretization of a PDE, \mathcal{G} can also use a coarser spatial discretization, but this can negatively impact convergence unless high order interpolation is used. ===Speedup=== Under some assumptions, a simple theoretical model for the speedup of Parareal can be derived. Although in applications these assumptions can be too restrictive, the model still is useful to illustrate the trade offs that are involved in obtaining speedup with Parareal. First, assume that every time slice [t_j, t_{j+1}] consists of exactly N_f steps of the fine integrator and of N_c steps of the coarse integrator. This includes in particular the assumption that all time slices are of identical length and that both coarse and fine integrator use a constant step size over the full simulation. Second, denote by \tau_f and \tau_c the computing time required for a single step of the fine and coarse methods, respectively, and assume that both are constant. This is typically not exactly true when an implicit method is used, because then runtimes vary depending on the number of iterations required by the iterative solver. Under these two assumptions, the runtime for the fine method integrating over P time slices can be modelled as c_{\text{fine}} = P N_{f} \tau_f. The runtime of Parareal using P processing units and performing k iterations is c_{\text{parareal}} = (k+1) P N_{c} \tau_c + k N_{f} \tau_f. Speedup of Parareal then is S_{p} = \frac{c_{\text{fine}}}{c_{\text{parareal}}} = \frac{1}{ (k+1) \frac{N_c}{N_f} \frac{\tau_c}{\tau_f} + \frac{k}{P}} \leq \min\left\{ \frac{N_f \tau_f}{N_c \tau_c}, \frac{P}{k} \right\}. These two bounds illustrate the trade off that has to be made in choosing the coarse method: on the one hand, it has to be cheap and/or use a much larger time step to make the first bound as large as possible, on the other hand the number of iterations k has to be kept low to keep the second bound large. In particular, Parareal's parallel efficiency is bounded by E_{p} = \frac{S_p}{P} \leq \frac{1}{k}, that is by the inverse of the number of required iterations. Early on it was recognised that for linear problems information generated by the fine method \mathcal{F}_{\delta t} can be used to improve the accuracy of the coarse method \mathcal{G}_{\Delta t} . Originally, the idea was formulated for the parallel implicit time-integrator PITA, a method closely related to Parareal but with small differences in how the correction is done. In every iteration k the result \mathcal{F}_{\delta t}(U^k_j) is computed for values u^k_j \in \mathbb{R}^d for j=0, \ldots, N-1 . Based on this information, the subspace S_k := \left\{ U^{k'}_j : 0 \leq k' \leq k, j=0, \ldots, N-1 \right\} is defined and updated after every Parareal iteration. Denote as P_k the orthogonal projection from \mathbb{R}^d to S_k . Then, replace the coarse method with the improved integrator \mathcal{K}_{\Delta t}(u) = \mathcal{F}_{\delta t}(P_k u) + \mathcal{G}_{\Delta t}((I-P_k)u) . As the number of iterations increases, the space S_k will grow and the modified propagator \mathcal{K}_{\Delta t} will become more accurate. This will lead to faster convergence. This version of Parareal can also stably integrate linear hyperbolic partial differential equations. An extension to nonlinear problems based on the reduced basis method exists as well. ==References==

source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Parareal". 1789331213. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1374748013

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·