|
[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: 16 ![]() |
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: 16 ![]() |
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 |
|
Senior Member
Join Date: Jun 2016
Posts: 103
Rep Power: 11 ![]() |
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: 16 ![]() |
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: 16 ![]() |
||
|
|
|
|
|
|
|
#6 |
|
Member
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 78
Rep Power: 16 ![]() |
Hi all,
For those who ended up here I recommend this material about running OpenFOAM in parallel which approachs the hyperthreading issues. Module 4 | Running in parallel #openfoamtraining http://www.wolfdynamics.com/wiki/parallel.pdf At the playlist below you can see the videos of Module 4. https://www.youtube.com/playlist?lis...mDChejiwm846Wl Hope it helps. Regards.
__________________
Field of interest: heat transer. OpenFOAM Foundation's distribution user. |
|
|
|
|
|
![]() |
| Tags |
| mpirun |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Error running simpleFoam in parallel | Yuby | OpenFOAM Running, Solving & CFD | 14 | October 7, 2021 05:38 |
| Transient run continues from last time (when startover is desired) | bongbang | CFX | 2 | March 23, 2015 00:05 |
| Can not run OpenFOAM in parallel in clusters, help! | ripperjack | OpenFOAM Running, Solving & CFD | 5 | May 6, 2014 16:25 |
| CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
| Working directory via command line | Luiz | CFX | 4 | March 6, 2011 21:02 |