|
[Sponsors] |
problem with mpi when trying to run parallel. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 5, 2023, 03:11 |
problem with mpi when trying to run parallel.
|
#1 |
New Member
Join Date: Mar 2023
Posts: 4
Rep Power: 3 |
Dear All,
I am trying to run OpenFoam(OF4Win 20.09) on windows 10 in parallel mode, first copied decomposeParDict to my system folder with 3 Subdomains and simple method then executed decomposePar in terminal and after that executed <mpi run -np 3 simpleFoam -parallel> in terminal but it shows me <-bash: mpi: command not found> and it doesn't run. Your any comments on my problem would be great helpful for me like OpenFoam beginner. Best wishes, |
|
March 5, 2023, 17:37 |
OpenFOAM parallel processing no longer working
|
#2 |
New Member
Vaughan Thompson
Join Date: Mar 2023
Posts: 5
Rep Power: 3 |
I believe I may have a similar issue. I have been using OpenFOAM v2206 on my Windows 10 PC since Dec 2022 via FreeCAD CfdOF using multiple cores. But recently these runs have failed resulting in the follow error message:
--> FOAM FATAL ERROR: (openfoam-2206) attempt to run parallel on 1 processor From static bool Foam::UPstream::init(int&, char**&, bool) in file UPstream.C at line 286. FOAM aborting I can still run simulations with parallel set to false but would like to restore parallel running. Looking around on the forums, I think the problem may be due to a recent operating system update on my pc, and may be cured by adjusting environment variables. I would appreciate any advise here as most of the information I have seen relates to linux os. Many thanks. |
|
March 6, 2023, 04:31 |
|
#3 | |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,207
Rep Power: 28 |
Quote:
The proper command is mpirun (without space between mpi and run): Code:
mpirun -np 3 simpleFoam -parallel Yann |
||
March 7, 2023, 02:12 |
|
#4 | |
New Member
Join Date: Mar 2023
Posts: 4
Rep Power: 3 |
Quote:
Hello, I tried <mpirun -np 3 simpleFoam -parallel> but it still doesn't work. and I am still having <-bash: mpi: command not found> when I execute for parallel computation. |
||
March 7, 2023, 05:40 |
|
#5 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,207
Rep Power: 28 |
Hello,
It looks like a MPI libraries matter. I didn't notice you were using OF4Win (provided by CFD support). Have you tried running: Code:
mpiexec -np 3 simpleFoam -parallel Regards, Yann |
|
March 7, 2023, 13:52 |
Running OpenFOAM from FreeCAD
|
#6 |
New Member
Vaughan Thompson
Join Date: Mar 2023
Posts: 5
Rep Power: 3 |
I am running OpenFOAM via FreeCAD CfdOF. FreeCAD gives a console with Python commands, but I do not use these directly so far. I believe the issue may be associated with Microsoft MPI being affected by a recent Windows 10 update but I am not sure. Any suggestions for working around this issue would be much appreciated.
Thanks. |
|
March 8, 2023, 04:23 |
|
#7 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,207
Rep Power: 28 |
I am sorry but I have no experience with FreeCAD CfdOF so I cannot really suggest any solution.
The only thing I can tell is that the error seems to be related to MPI libraries (either a missing library, or an issue with mpi library defined in the OpenFOAM environment setup) Let us know if you find a solution, it might help other people using FreeCAD CfdOF! Regards, Yann |
|
March 8, 2023, 06:07 |
CfdOF
|
#8 |
New Member
Vaughan Thompson
Join Date: Mar 2023
Posts: 5
Rep Power: 3 |
Many thanks for the comments Yann. I think my next move should be to uninstall and reinstall OpenFOAM which should do a refresh of Microsoft MPI. I could also try to run OpenFOAM via the command line, rather that via CfdOF in FreeCAD but don't normaly use this so would appreciate any guidance on how to do this.
And, of course, I will report back any useful results. |
|
March 12, 2023, 03:19 |
|
#9 |
New Member
Join Date: Mar 2023
Posts: 4
Rep Power: 3 |
I solved the problem, but I didn't know anything about environment variables with just copping my case to run folder and tried to execute <mpiexec -np 3 simpleFoam -parallel> in run folder and now openFoam detects the true MPI everywhere in computer.
|
|
March 13, 2023, 14:40 |
Windows for Ubuntu
|
#10 |
New Member
Vaughan Thompson
Join Date: Mar 2023
Posts: 5
Rep Power: 3 |
Thanks for the information Siavash. I presume that you and Yann are using OpenFOAM linux version via Unbuntu LTS or similar on a Windows machine? I have been able to install Ubuntu 20.04.05 LTS on my Windows 10 machine but I will hang back on installing the Linux version of OpenFOAM to avoid having both Linux and Windows OpenFOAM on my PC. I may revisit this later if I run into problems using just one core (so far this has not been a significant problem) and I don't get a resolution with the Windows version.
Thanks Again Vaughan |
|
April 19, 2023, 05:11 |
Issue with mpiexec
|
#11 |
New Member
Alkan Sahin
Join Date: Mar 2023
Posts: 2
Rep Power: 0 |
In my pc is running Windows 10 and OpenFOAM v2212 is installed. Before I was able to run with the command "mpiexec" parallel simulations. I don't know if it is really related to this but after the last update 2023-04 Cumulative Update for Windows 10 Version 21H2 for x64-based Systems (KB5025221) I am not able to run parallel simulations with "mpiexec" since mpiexec command cannot be found:
$ mpiexec -np 8 simpleFoam -parallel bash: mpiexec: Kommando nicht gefunden. I've reinstalled OpenFOAM and nothing has changed. Could anybody help me? Regards |
|
April 19, 2023, 06:59 |
|
#12 | |
New Member
Alkan Sahin
Join Date: Mar 2023
Posts: 2
Rep Power: 0 |
Quote:
I copied the executable file <mpiexec.exe> under <Programm Files\Microsoft MPI\Bin> into the folder <~\OpenFOAM\v2212\msys64\usr\bin>. Then it has worked as before. In this case i cannot understand/explain why it worked before. Regards |
||
October 9, 2024, 12:45 |
Worked for Me Also!
|
#13 |
New Member
Vaughan Thompson
Join Date: Mar 2023
Posts: 5
Rep Power: 3 |
Many thanks Agi, the loss of parallel processing has really been bugging me and your suggestion worked a treat. Analyses are going through like lightning again now with 4 prosessors!
Thanks again. |
|
Tags |
mpi command not found, parallel, windows 10 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sloshingTank3D6DoF failed to run in parallel | phsieh2005 | OpenFOAM Running, Solving & CFD | 1 | May 19, 2023 00:51 |
[snappyHexMesh] SnappyHexMesh Parallel run - face ordering problem | DaveR | OpenFOAM Meshing & Mesh Conversion | 8 | November 9, 2016 11:53 |
Run Mode:Platform MPI Local Parallel core problem | mztcu | CFX | 0 | October 13, 2016 04:14 |
[snappyHexMesh] Problem with parallel run of snappyHexMesh | Lorenzo92 | OpenFOAM Meshing & Mesh Conversion | 5 | April 15, 2016 05:12 |
Explicitly filtered LES | saeedi | Main CFD Forum | 16 | October 14, 2015 12:58 |