TIME-X https://time-x.eu Thu, 23 May 2024 14:31:04 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 217534930 MLMC-PinT4Data (Inno4Scale project) https://time-x.eu/mlmc-pint4data-inno4scale-project/ Thu, 23 May 2024 14:31:03 +0000 https://time-x.eu/?p=2677 Building on Time-X results, the Inno4Scale project MLMC-PinT4Data will develop parallel-in-time micro-macro Monte Carlo methods for uncertainty quantification and data assimilation.

With the exponential increase of computational power, numerical simulation has become a routine tool in many scientific domains. However, the shift towards massive parallelism poses numerous challenges for algorithm design: parallelization must be considered from the outset of algorithm design. Recent successes have established the potential of parallel-in-time (PinT) integration as a powerful algorithmic paradigm, in addition to other forms of parallelism, to unlock the performance of Exascale systems. The parallel efficiency of PinT methods, however, is currently limited by two factors: (i) they are iterative, which increases the total computation time (even if the parallelism reduces wall-clock time); and (ii) their serial step forms a scaling bottleneck.

In this project, we will tackle these problems for systems that are described by high-dimensional multiscale partial differential equations and simulated with a Monte Carlo method. We will alleviate the serial bottleneck of PinT methods by considering approximate, low-dimensional models during the serial step. Moreover, we will design PinT methods for uncertainty quantification and data assimilation, which in themselves already require an iterative procedure. By combining those iterations, we will significantly reduce computational overhead.

The project focuses on algorithm design and analysis, further developing conceptual ideas that have been conceived by the project partners in a collaboration that started within the context of the EuroHPC Time-X project on time-parallel time integration methods. By implementing these ideas into prototype software, we will advance them from TRL1 to TRL5, replying to the specific request of the Inno4Scale. To maximize impact, the developed methods will be applied to an application with high societal relevance: the design of electrical machines and be made available in open-source software libraries. This open-source software will both allow including a non-intrusive wrapper around existing simulation codes, and serve as a guide to implement the methods into existing simulation software.

]]>
2677
TiPOFlow (Inno4Scale project) https://time-x.eu/tipoflow-inno4scale-project/ Thu, 23 May 2024 14:28:17 +0000 https://time-x.eu/?p=2671 Building on Time-X results, the Inno4Scale project TiPOFlow will enable time-parallel optimization of turbulent flows in wind energy applications such as wind turbine farms.

Current HPC hardware enable optimal control and data assimilation of computational fluid dynamics with applications in wind energy and micrometeorology. However, the size of the PDE constrained optimization problems remains extremely challenging for real applications. Especially, real-time simulations and control are out of reach. The current in-house software simulation tool SP-Wind scales efficiently up to 200,000 compute cores. Recently, we started developing time-parallel multiple shooting methods in SP-Wind, showing good speed-ups in simple 2D and 3D tracking problems. However, generalization to turbulent boundary layers and windfarms remains challenging.

The goal of the project is to make an important step towards real time simulation and control of wind farms. Matrix-free optimization is required to enable many constraints, and parallelization both in space and time levels is used to fully exploit the capacity of large supercomputers. In addition, current state-of-the art numerical libraries are not easily accessible, as they do not work with the complex (and efficiently parallelized) data structures of SP-Wind. The current project aims at closing these gaps, leading to a potential order of magnitude speed-up of LES-based optimal control of wind farms, and enabling real-time use.

To achieve the goals, we will develop a matrix-free parallel multiple shooting method for large-scale nonlinear PDEs, efficiently coupled with optimization libraries, and develop an easy-to-use software interface between the optimization, time-parallelisation, and simulation software layers. The project relies on the complementary expertise of three research groups at KU Leuven, each renowned for their respective expertise.  The proof-of-concept demonstrator in the current project is based on SP-Wind with a focus on wind-farm control. The project will also impact computational speed-up of other applications by parallelization of any PDE problem that relies on a time marching approach. Such applications are turbulence resolving simulations in various applications, magneto-hydrodynamics, but may also include finite-element methods for structural or electromagnetic problems when formulated in the time domain.

]]>
2671
NeuralPint (Inno4Scale project) https://time-x.eu/neuralpint-inno4scale-project/ Tue, 23 Apr 2024 07:30:07 +0000 https://time-x.eu/?p=2517 By combining results from Time-X with state-of-the-art machine learning techniques for the solution of differential equations, our Inno4Scale project NeuralPint will develop new, more efficient parallel-in-time algorithms.

Parallel-across-the-steps methods like Parareal, MGRIT or PFASST require a coarse level solver to handle the unavoidable serial information transport in time. However, devising good coarse level models is hard and there is still only limited theoretical insight into how to design them. The key challenge is that since the coarse level constitutes a computational bottleneck, it needs to be computationally very fast. At the same time, it must be accurate enough to ensure rapid convergence of the iteration.

Within Time-X, we published a demonstrator study that showed that ML-based techniques like physics-informed neural networks (PINNs) or physics-informed neural operators (PINO) are promising approaches to build coarse models. They are generic, do no require much training data since they use the PDE in the loss function, provide reasonable accuracy and are very fast to evaluate once trained.

The NeuralPinT project will build on these achievements and further develop the combination of parallel-in-time and machine learning techniques. Jülich Supercomputing Centre and TU Hamburg will jointly develop distributed Neural Operators that work efficiently alongside PDE-solvers using large-scale space-time parallelism. Furthermore, we will scale up the complexity of our benchmarks by modelling turbulent, three-dimensional Rayleigh-Benard convection, a challenging benchmark problem with relevance for many scientific domains. All algorithms developed within NeuralPinT will be integrated into the pySDC package, which already saw significant development as part of the Time-X project.


Publications

]]>
2517
Educational Website for first performance analysis of PinT algorithms https://time-x.eu/educational-website-for-first-performance-analysis-of-pint-algorithms/ Sun, 15 Oct 2023 19:55:38 +0000 https://time-x.eu/?p=1783 Main innovation: provide an interactive website which can be used and developed for first performance analysis of PinT algorithms.

We have developed different educational web applications (WebApps), which each consists of three columns (see also figure below):

  1. Documentation: displays some quick insights on what the webapp does, eventually with some illustrating formulas
  2. Parameters: control the parameter values that have to be set to run the webapp
  3. Results: shows some plots and values computed for the given parameters

Below is an example of the webapp that can be used to estimate the parallel speedup and efficiency of the Parareal algorithms, knowing the number of time sub-intervals, the number of iterations, and the computation cost of the fine and the coarse solver. Using the webapp, several parallelization strategies can be investigated, assisting HPC software developers to find the one that fits a given application best.

WebApp access

  1. Source code: can be found at https://github.com/Parallel-in-Time/time4apint
  2. Website: can be found at https://jupyterhub.mat.tu-harburg.de/blockops/
]]>
1783
PinT 2023: 12th Workshop on Parallel-in-time Integration https://time-x.eu/pint-2023-12th-workshop-on-parallel-in-time-integration/ Wed, 09 Aug 2023 13:50:56 +0000 https://time-x.eu/?p=1585 Main innovation: Lots of interesting talks, exciting discussions and educational training events around parallel-in-time integration methods.

From 17 to 21 July 2023, Hamburg University of Technology (TUHH) together with Helmut-Schmidt University (HSU) hosted the 12th workshop on parallel-in-time (PinT) integration. For five days, 53 researchers from 9 different countries presented their research in 4 plenary talks, 22 contributed presentations and 8 posters. Presentations were also live streamed via Zoom.

Training sessions for the pySDC and XBraid software provided hands-on introductions to two of the most widely used PinT software packages. The plenary talks included a presentation by Dr. Iryna Kulchytska-Ruchka from Bosch GmbH, illustrating her research on accelerating simulations of E-machines (i.e., electrical machines such as e-bikes) and discussing potential use-cases in industry for parallel-in-time integration algorithms.

All presentations were recorded and will be published via https://av.tib.eu/ in due time to provide an up-to-date repository of recent research in the field to the wider academic community, adding to the material provided by the 2016 workshop in Banff and the 2021 virtual workshop hosted by Michigan Tech.

We thankfully acknowledge support from the European High-Performance Computing Joint Undertaking (JU) under grant agreement No 955701. The JU receives support from the European Union’s Horizon 2020 research and innovation programme and Belgium, France, Germany, and Switzerland. The workshop also received funding from the German Federal Ministry of Education and Research (BMBF) grant 16HPC048. We also gratefully acknowledge financial support from Lawrence Livermore National Laboratory (LLNL) and funding by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation) – 525695584

]]>
1585
CERN investigates PinT for superconducting magnet simulation https://time-x.eu/cern-investigates-pint-for-superconducting-magnet-simulation/ Tue, 20 Jun 2023 14:24:40 +0000 https://time-x.eu/?p=1485 Main innovation: Demonstrate that parallel-in-time algorithms such as Parareal can lead to a decreased solution time for the simulation of complex transient phenomena that occur in superconducting accelerator magnets which are used, for example, in the Large Hadron Collider at the European Organization for Nuclear Research (CERN).

Thanks to superconducting accelerator magnets, generating a high magnetic field to steer or focus particle beams in circular accelerators is achieved with relatively low energy consumption. In superconducting magnets, local transition to a normal-conducting state, for instance due to local heat generation, can lead to a thermal runaway called quench. The latter can lead to catastrophic, irreversible damage. In order to avoid this, the quench behavior of superconducting magnets is studied in detail to design protection methods to avoid a destructive thermal runaway. 

Numerical tools such as the finite element (FE) method are crucial to obtain an accurate, quantitative estimation of the quench behaviour. These simulations are intrinsically multi-physics problems involving coupled electromagnetism, thermodynamics, and, eventually, solid mechanics. As a local, transient phenomenon, a quench generally requires three-dimensional simulation in time with many degrees of freedom. Furthermore, as material properties over a wide temperature range must be considered, the problem is highly non-linear. For this reason, it typically requires small time steps over a large time interval to capture the thermal runaway properly. In order to reduce the solution time, the contribution in [1] suggests using parallel-in-time (PinT) algorithms such as Parareal to decrease the solution time of FE-based quench simulations. Special focus is paid to aspects of practicability for using PinT methods on complex problems such as quench: i) the choice of time windows which is crucial for achieving load-balancing, ii) the treatment of the non-linear constitutive relations on the coarse level, and iii) the black-box usage of PinT algorithms for non-expert users. In preliminary results, a reduction of solution time of around factor 1.85 has been achieved using 16 time windows for the thermal sub-problem and 1.55 for the electromagnetic sub-problem using 8 time windows. The implementation is fully open-source using a Python implementation of Parareal, the FE solver GetDP and mesher Gmsh. The research will be continued on the coupled magneto-thermal quench problem using more computational resources. Parameter choices tailored to quench problems are expected to reduce the achieved solution time further. The authors hope to summarize the findings in a research article soon. 

Publication

  1. E. Schnaubelt, M. Wozniak, J. Dular, I. Cortes Garcia & S. Schöps. Parallel-in-Time Integration of Transients in Superconducting Accelerator Magnets. In: 93rd Annual Meeting of the International Association of Applied Mathematics and Mechanics (GAMM 2023), Dresden, Germany.

]]>
1485
Combining Parareal and Machine Learning https://time-x.eu/combining-parareal-and-machine-learning/ Thu, 04 May 2023 10:36:09 +0000 https://time-x.eu/?p=1434 Main innovation: Demonstration that physics-informed neural networks (PINNs) can be used to build coarse propagators for Parareal and that this can improve performance over numerical coarse method.

A key challenge to achieving speedup with Parareal (and other across-the-steps time parallel methods) is the design of a good coarse propagator. It needs to be accurate enough to make Parareal converge quickly but also computationally cheap, as it forms the serial part of the method. While many different strategies have been explored to build coarse propagators, for example using reduced models or algorithms of reduced precision, building effective coarse models remains difficult. A recent Time-X funded paper explores the use of physics-informed neural networks (PINNs) to build a coarse propagator for the Black-Scholes partial differential equations, a model used in computational finance. PINNs have the advantage that they include the PDE itself in the loss function and therefore can be trained without requiring large amounts of data.

In benchmark results using up to 16 MPI processes on a single core, Parareal with a PINN coarse propagator managed to achieve about double the speedup than Parareal with a numerical coarse propagator of comparable accuracy. Furthermore, the different computing patterns of the PINN allowed for the effective use of a GPU attached to the node: running the numerical fine model on the CPU while moving the coarse propagator PINN to the GPU was considerably faster than running both on either only the CPU or only the GPU.

The results will be presented at the Euro-Par 2023 conference in August 2023.

Publication

]]>
1434
Multigrid preconditioners for linear FDEs https://time-x.eu/medicine-second-line-of-research/ Fri, 31 Mar 2023 09:28:14 +0000 https://time-x.eu/?p=957 Main innovation: it results in a speed up for solving space fractional diffusion equations. Also, it enables a seamless and efficient extension to handle time-dependent cases.

This work deals with space/time multigrid preconditioners for fractional diffusion equations (FDEs). We started by considering an FDE with non-smooth solutions and built tailored multigrid preconditioners. Then, we considered the case of tempered FDEs. We provided a spectral study and exploited it to build tailored multigrid solvers. Finally, we dealt with a new method for solving time-dependent n-dimensional PDEs through a particular approach, which consists in computing the solution in parallel over many coarse anisotropic meshes and merging everything together to form a solution over a finer mesh.


Publications

]]>
957
PinT multirate explicit stabilised method for cardiac electrophysiology https://time-x.eu/medicine/ Fri, 31 Mar 2023 09:26:17 +0000 https://time-x.eu/?p=945 Main innovation: first multirate fully explicit method with no step size restriction (even for stiff problems)

We accomplished the design of a PinT explicit stabilised method with applications to cardiac electrophysiology. The method has a multirate and a non multirate version, is used in combination with the multilevel spectral deferred correction framework, is fully explicit, and does not have any step size restrictions. Preliminary results are promising. However, more time is needed to analyse the method and, eventually, optimise it. We are currently implementing the methods in the pySDC library, where we plan to employ the PFFAST technology for efficient PinT integration. Finally, for the cardiac electrophysiology applications, we are tightly cooperating with another EuroHPC project (MICROCARD).

In the example below, we solve the monodomain equation for electrophysiology with our two explicit stabilised methods (non multirate and multirate) and compare their efficiency against a standard explicit method: explicit Euler (EE). In the left figure we remark that the new non multirate method HSRKU based on Chebshev polynomials achieves similar errors as EE, but progressively and at a significantly lower cost. In the right picture we compare the same method HSRKU against its multirate version mHSRKU and see that the cost is reduced even further.


Publication

  • G. Rosilho de Souza, S. Pezzuto, R. Krause, “Parallel-in-Time Multirate explicit stabilized method for the monodomain model in cardiac electrophysiology”, Proceedings of the CMBE2021 conference, 27–29 June 2022, Italy. ISSN 2227-9385.
]]>
945
PinT for Molecular Dynamics https://time-x.eu/pint-for-molecular-dynamics/ Fri, 31 Mar 2023 09:22:21 +0000 https://time-x.eu/?p=924 Main innovation: the developed Parareal variant ensures stability for long-time simulations (for which standard Parareal is unstable). In addition, it results in a significant efficiency gain.

We designed an adaptive variant of the parareal algorithm. When considering long-time simulations of molecular systems, we have observed that the standard parareal algorithm is unstable. In collaboration with U. Sharma (Freie Universitat Berlin, Germany), we introduced an adaptive variant of the parareal algorithm, specifically tailored to molecular dynamics simulations. The algorithm is adaptive in the sense that the time horizon of the simulation is iteratively adjusted, in order to prevent the algorithm from simulating parts of the trajectory where the accuracy is deemed to be insufficient. A significant gain in efficiency is obtained in comparison to the standard parareal algorithm.

A natural follow-up of this work is to implement this algorithm in LAMMPS (a very well distributed software in the material science community), that will open the way to the simulation of realistic physical systems. This work has been completed in collaboration with D. Perez (Los Alamos Nat. Lab., USA). We combined there a family of machine-learned force fields (for the reference propagator) with classical force fields (for the coarse propagator) and studied the diffusion of atomistic defects in tungsten lattices. On this system of physical interest, we again obtained significant efficiency gains.

The figure below shows that our adaptive parareal algorithm always outperforms, in terms of wall-clock time gain, the vanilla version of parareal. In addition, the gain is robust and independent of the length of the trajectory. This opens the way to using this variant of the algorithm for large-scale MD applications.

The figure below shows the results obtained with our variant for the computation of average residence times of defects in tungsten lattices. These results (in blue) are consistent with the reference results (in orange) and are obtained at a much smaller computational cost.


Publications

  • F. Legoll, T. Lelièvre, U. Sharma, An adaptive parareal algorithm: application to the simulation of molecular dynamics trajectories, SIAM Journal on Scientific Computing, vol. 44 (1), B146-B176 (2022).
  • O. Gorynina, F. Legoll, T. Lelièvre, D. Perez, Combining machine-learned and empirical force fields with the parareal algorithm: application to the diffusion of atomistic defects, Comptes Rendus Mécanique, vol. 351 (1) (special issue on the scientific legacy of Roland Glowinski), in press (2023).
]]>
924