multiple -parallel cases on single node with single mpirun
OpenMPI allows execution of programs in Multiple Programs Multiple Data (MPMD) setup. The required syntax is
Code:
Code:
Code:
Each case folder has 2 processor* directories (and hence a total of 4 processors needed). If I run multiple SERIAL cases in this manner, there is no issue. Individually, both the cases run properly. Why is this miscommunication happening with the solver with -parallel and how to resolve it? If I understand correctly, OMPI is supposed to launch one solver and then the other according to its default processor allotment policy (--map-by core). Otherwise, if I use two separate mpirun commands, it seems that the two programs compete for resources on the same node (wallTime is almost exactly 2*executionTime) Details: OpenFOAM-6 running on HPC cluster with OpenMPI-1.10.4 I used the following for reference: https://www.open-mpi.org/faq/?category=running#mpmd-run |
One possible way I have managed to do this is using multiple mpirun commands:
Code:
mpirun --bind-to none -np 2 interFoam -parallel -case $PBS_O_WORKDIR/2pIFaxis> $PBS_O_WORKDIR/2pIFaxis/log2pIF & However, the method mentioned in my first post seems more elegant with possibilities to bind processes to sockets, while the lifeblood of this second method is the fact that things can float around. I'll appreciate any help to make the first method work (or the best way to go about this). |
All times are GMT -4. The time now is 22:37. |