Changes between Version 35 and Version 36 of AdaptParallelization


Ignore:
Timestamp:
May 20, 2025, 2:00:10 PM (2 weeks ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdaptParallelization

    v35 v36  
    2424
    2525Like 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
    2627As 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.
    2728
     
    3233 * In this case we need to add parallelization
    3334
     35== Adaptions for a parallelized model ==
    3436
    35 == The adaptions in short ==
     37If 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 ===
    3640
    3741If you are experienced with MPI, the steps are the following:
     
    4549
    4650
    47 == Adapting a parallelized model ==
     51=== Details on adapting a parallelized model ===
    4852
    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
    5054
    5155Any 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: