|
[Sponsors] |
Run multiple cases simultaneously in parallel? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 16, 2020, 22:14 |
Run multiple cases simultaneously in parallel?
|
#1 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
Hi FOAMers!
I have 16 cores available, and would like to run 4 different cases simultaneously, each on 4 cores. Is this possible? Is it as simple as simply running Code:
mpirun -np 4 interFoam -parallel |
|
April 17, 2020, 05:31 |
|
#2 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
I guess you can. Just open four terminals run each case simultaneously.
Of course you have to partition the grids first for parallel processing. |
|
April 17, 2020, 18:50 |
|
#3 |
Senior Member
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8 |
||
April 18, 2020, 04:26 |
|
#4 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
I made a test and understood that my guess is wrong!
|
|
April 19, 2020, 18:13 |
|
#5 |
Senior Member
Join Date: Mar 2014
Posts: 112
Rep Power: 12 |
Well, just found the solution. An additional command "cpu-set" is needed:
mpirun -np 2 --cpu-set 0-3 pisoFoam -parallel (for assigning fist four cores) mpirun -np 2 --cpu-set 4-7 pisoFoam -parallel (for assigning second four cores) so on... Last edited by mzzmrt; April 20, 2020 at 04:14. |
|
April 20, 2020, 12:13 |
|
#6 |
Member
Luis Eduardo
Join Date: Jan 2011
Posts: 85
Rep Power: 15 |
You can also use the "--bind-to socket" or "--bind-to core" option, it works fine!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SimpleFoam cannot open include file | Marija | OpenFOAM Running, Solving & CFD | 1 | October 28, 2020 10:35 |
how to automatically run multiple cases in batch mode | breezeyu | STAR-CCM+ | 1 | June 11, 2018 06:45 |
Parallel run: bool ipstream::init attempt to run parallel on 1 processor | SarahLee | OpenFOAM Running, Solving & CFD | 2 | January 11, 2017 03:24 |
simpleFoam parallel | AndrewMortimer | OpenFOAM Running, Solving & CFD | 12 | August 7, 2015 18:45 |
Change parameter and run cases parallel | lingdeer | ANSYS | 0 | July 29, 2011 10:27 |