|
[Sponsors] |
mpirun start second run on same processor as the already running |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 13 ![]() |
I've my cases running nice and smooth as long as I run them one by one.
mpirun -np 2 interFoam -parallel >log.interFoam But when I start multiple simulations from different case directories. I get all my jobs started on the very same processor ID. Each process then allocate 50% of the processor ID. I guess it has to do with my mpi installation rather then with my openfoam installation. But I know a lot of you guys knows a lot about mpirun. I followed this walktrough to install openfoam 3.0.1 on ubuntu 16.04 https://openfoamwiki.net/index.php/Installation/Linux/OpenFOAM-3.0.1/Ubuntu Thanks for any help or pointer! |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 13 ![]() |
I kind of solved this problem with --cpu-set flag.
mpirun -np 2 --cpu-set 4-5 interFoam -parallel I use a intel i7 5820k with 6 cores and hyperthreading turned off. If you use a quad core you would need to chang 4-5. I think that mpirun should be able to to manage to do this by itself and is therefor not satisfied with my solution. Hope someone finds this useful anyway. /Simon |
|
![]() |
![]() |
![]() |
![]() |
#3 |
Member
Join Date: Jun 2016
Posts: 97
Rep Power: 8 ![]() |
Maybe you can try with '-bind-to core'. With that you can even turn on hyper threading without any trouble.
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 13 ![]() |
Thanks xuegy for your reply.
Will try your suggestion next time I'm at office. About hyper threading I heard a lot about it being of no use together with open foam. |
|
![]() |
![]() |
![]() |
![]() |
#5 |
New Member
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 13 ![]() |
||
![]() |
![]() |
![]() |
Tags |
mpirun |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error running simpleFoam in parallel | Yuby | OpenFOAM Running, Solving & CFD | 14 | October 7, 2021 04:38 |
Transient run continues from last time (when startover is desired) | bongbang | CFX | 2 | March 22, 2015 23:05 |
Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 15:25 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 18:56 |
Working directory via command line | Luiz | CFX | 4 | March 6, 2011 20:02 |