Open MPI error
Hi!
I get this error message if I try to run parallel stuff: Code:
vituki@VHDT08:/mnt/d/griva_modellek/wavebreak$ mpirun -np 8 snappyHexMesh -parallel |
Have you checked whether the multi-threading function is on?
Check how many CPU you have got with command 'htop' |
Thank you, I have fixed it:
Newer versions of mpi detect wrong input by users, if they declare 8 cores when there are only 4 available. You have 2 options: - switch to 4 threads and gain more performance - add the option --use-hwthread-cpus and run your simulation on lower performance with 8 threads |
Hello
I had the same error before. My computer has 8 cores and I was not able to run the simulation in parallel for more than 4 cores. I used "-oversubscribe" flag which allows processes on a node than processing elements (from mpirun man page), and it solved my problem. Here is the example: Code:
I hope it is also a convenient way of solving this issue. Best regards |
multithreading with runParallel
in OpenFOAM-v2206/bin/tools/RunFunctions,
I added --use-hwthread-cpus to the lines starting $mpirun, like this: $mpirun --use-hwthread-cpus -n $nProcs $appRun $appArgs "$@" </dev/null >> $logFile 2>&1 |
Quote:
|
Guess that --oversubscribe does not throw an error if you use more threads as provided by your CPUs. --use-hwthread-cpus will still limit to the CPU provided threads. I do prefer this because I want to avoid overprovisioning above the hardware capabilities as this reduces efficency.
|
All times are GMT -4. The time now is 20:38. |