Changes between Version 11 and Version 12 of AdaptParallelization


Ignore:
Timestamp:
Aug 24, 2010, 12:08:17 PM (14 years ago)
Author:
lnerger
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdaptParallelization

    v11 v12  
    6363== Compiling the extended program ==
    6464
    65 This completes the adaptation of the parallelization. The compilation of the model has to be adjusted for the added files holding the routine `init_parallel_pdaf` and the module `mod_parallel`. One can test the extension by running the compiled model. It should run as without these changes, because `mod_parallel` defines by default that a single model task is executed (`n_modeltasks=1`).
     65This completes the adaptation of the parallelization. The compilation of the model has to be adjusted for the added files holding the routine `init_parallel_pdaf` and the module `mod_parallel`. One can test the extension by running the compiled model. It should run as without these changes, because `mod_parallel` defines by default that a single model task is executed (`n_modeltasks=1`). If `screen` is set to 1 in the call to init_parallel_pdaf, the standard output should include lines like
     66{{{
     67 PDAF: Initializing communicators
     68
     69                  PE configuration:
     70   world   filter     model        couple     filterPE
     71   rank     rank   task   rank   task   rank    T/F
     72  ----------------------------------------------------------
     73     0       0      1      0      1      0       T
     74     1       1      1      1      2      0       T
     75     2       2      1      2      3      0       T
     76     3       3      1      3      4      0       T
     77}}}
     78These lines show the configuration of the communicators. This example was executed using 4 processes and `n_modeltasks=1`.
     79
    6680
    6781To test parallel model tasks one has to set the variable `n_modeltasks` to a value larger than one. Now, the model will execute parallel model tasks. This can result in the following effects: