Changes between Version 35 and Version 36 of AdaptParallelization
- Timestamp:
- May 20, 2025, 2:00:10 PM (2 weeks ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AdaptParallelization
v35 v36 24 24 25 25 Like many numerical models, PDAF uses the MPI standard for the parallelization. For the case of a parallelized model, we assume in the description below that the model is parallelized using MPI. If the model is parallelized using OpenMP, one can follow the explanations for a non-parallel model below. 26 26 27 As explained on the page on the [wiki:ImplementationConceptOnline Implementation concept of the online mode], PDAF supports a 2-level parallelization. First, the numerical model can be parallelized and can be executed using several processors. Second, several model tasks can be computed in parallel, i.e. a parallel ensemble integration can be performed. We need to configure the parallelization so that more than one model task can be computed. 27 28 … … 32 33 * In this case we need to add parallelization 33 34 35 == Adaptions for a parallelized model == 34 36 35 == The adaptions in short == 37 If the online mode is implemented with a parallelized model, one has to ensure that the parallelization can be split to perform the parallel ensemble forecast. For this, one has to check the model source code and potentially adapt it. 38 39 === The adaptions in short === 36 40 37 41 If you are experienced with MPI, the steps are the following: … … 45 49 46 50 47 == Adapting a parallelized model==51 === Details on adapting a parallelized model === 48 52 49 If the online mode is implemented with a parallelized model, one has to ensure that the parallelization can be split to perform the parallel ensemble forecast. For this, one has to check the model source code and potentially adapt it. 53 50 54 51 55 Any program parallelized with MPI will need to call `MPI_Init` for the initialziation of MPI. Frequently, the parallelization of a model is initialized in the model by the lines: