CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

mpirun start second run on same processor as the already running

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2016, 09:40
Default mpirun start second run on same processor as the already running
  #1
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15
Simjoh is on a distinguished road
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!
Simjoh is offline   Reply With Quote

Old   November 2, 2016, 10:58
Default
  #2
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15
Simjoh is on a distinguished road
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
Simjoh is offline   Reply With Quote

Old   November 3, 2016, 14:07
Default
  #3
Senior Member
 
Join Date: Jun 2016
Posts: 102
Rep Power: 10
xuegy is on a distinguished road
Maybe you can try with '-bind-to core'. With that you can even turn on hyper threading without any trouble.
xuegy is offline   Reply With Quote

Old   November 3, 2016, 14:46
Default
  #4
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15
Simjoh is on a distinguished road
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.
Simjoh is offline   Reply With Quote

Old   November 9, 2016, 03:59
Default
  #5
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 15
Simjoh is on a distinguished road
Quote:
Originally Posted by xuegy View Post
Maybe you can try with '-bind-to core'. With that you can even turn on hyper threading without any trouble.
Tanks for the input but it didn't help. I'll stick to declaring processor myself until i get some other working suggestions..
Simjoh is offline   Reply With Quote

Old   February 21, 2024, 08:09
Lightbulb
  #6
Member
 
Thiago Parente Lima
Join Date: Sep 2011
Location: Diamantina, Brazil.
Posts: 65
Rep Power: 15
thiagopl is on a distinguished road
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.
__________________
Fields of interest: buoyantFoam, chtMultRegionFoam.
thiagopl is offline   Reply With Quote

Reply

Tags
mpirun


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 12:10.