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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 2, 2016, 08: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: 11
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, 09:58
Default
  #2
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 11
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, 13:07
Default
  #3
Member
 
Join Date: Jun 2016
Posts: 37
Rep Power: 6
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, 13:46
Default
  #4
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 11
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, 02:59
Default
  #5
New Member
 
Simon Johansson
Join Date: Sep 2011
Posts: 15
Rep Power: 11
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

Reply

Tags
mpirun

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 13 April 17, 2017 16:27
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


All times are GMT -4. The time now is 14:55.