Run multiple cases simultaneously in parallel?
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 |
I guess you can. Just open four terminals run each case simultaneously.
Of course you have to partition the grids first for parallel processing. |
Quote:
|
I made a test and understood that my guess is wrong!
|
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... |
You can also use the "--bind-to socket" or "--bind-to core" option, it works fine!
|
All times are GMT -4. The time now is 08:22. |