Launching Code_Saturne Solver MPI Processes
Posted: Wed Feb 03, 2021 5:31 pm
When using the command line interface provided by the code_saturne executable, multiple CS solver processes can be started with the `--nprocs` parameter, e.g.,
The command used by code_saturne to launch multiple processes can be changed in /etc/code_saturne.cfg.
Is it possible to call mpirun/srun/oarsub manually while still using the code_saturne executable (instead of calling cs_solver directly)?
For example, on a Slurm cluster it would be convenient if one could call
This does not work because, e.g., the preprocessor is fully sequential. The code_saturne executable supports the flags --initialize, --execute, --finalize which might solve my problem but it is not clear how to use them.
Code: Select all
code_saturne run --nprocs=4 --param=case1.xml
Is it possible to call mpirun/srun/oarsub manually while still using the code_saturne executable (instead of calling cs_solver directly)?
For example, on a Slurm cluster it would be convenient if one could call
Code: Select all
srun --ntasks 4 code_saturne run --param=case1.xml
This does not work because, e.g., the preprocessor is fully sequential. The code_saturne executable supports the flags --initialize, --execute, --finalize which might solve my problem but it is not clear how to use them.