blueCFD-Core-2016 user compiled solvers not running in parallel
Dear All,
I am facing the issue, that the solvers I compile in blueCFD-Core-2016 are not running in parallel. E.g. running the pitzDaily example with the original simpleFoam solver works: Code:
$ mpirun -np 4 simpleFoam.exe -parallel Code:
user@machine MINGW64 OpenFOAM-4.x e/TESTS/OPENFOAM/mpi/pitzDaily Has any of you experienced this issue? With Best Regards, Bence |
Quick answer:
|
Dear Bruno,
This does not help. Code:
foamJob -p -s testSimpleFoam Code:
runParallel testSimpleFoam Code:
mpirun -np 4 testSimpleFoam.exe -parallel BR, Bence |
What happens if you simply run:
Code:
testSimpleFoam |
Yes, it runs as expected:
Code:
user@machine MINGW64 OpenFOAM-4.x /e/TESTS/OPENFOAM/mpi/pitzDaily |
Greetings Bence,
OK, now I remember what might be making this problem. It's possible that you have at least 2 MPI libraries installed, where the one installed in your system is in conflict with the one that blueCFD-Core uses. If you run the following commands: Code:
where msmpi.dll Code:
C:\Program Files\blueCFD-Core-2016\ThirdParty-4.x\platforms\mingw_w64Gcc\MS-MPI-7.1\bin\msmpi.dll In your case, I suspect that the second one has a different size, implying that it's another version. The solution for this is explained on this FAQ: http://bluecfd.github.io/Core/FAQ/mp...y-the-dll-file - see section "Solution 1 - Simply copy the DLL file". If this doesn't solve the issue, then the other possibility is that the Windows Firewall might be getting in the way. Although this is a bit strange, because if that were the case, Windows should have complained about it and asked for permissions... On the other hand... I've tested just now to go through the same steps you've described, but I've gotten the following error message: Code:
ERROR: Failed RpcCliCreateContext error 1722 Edit: OK, the problem was that I had an old "machines" file that was referencing a machine that isn't turned on, hence the problem. Please let me know if the descriptions above help and/or if you now get on this same error message. Best regards, Bruno |
Hello Bruno,
Thanks, copying the dll solved the issue! I have seen this FAQ, but it did not look relevant. :( Sorry about that! BR, Bence |
I'm very glad that solved the problem! I don't remember ever getting the symptom you had, which was why I wasn't at first thinking about it either.
I've created a report to document this situation sometime in the near future: https://github.com/blueCFD/Core/issues/95 |
parallel compilation with BlueCFD-core 2017
Hi Bruno, I have a question.
I have used the BlueCFD terminal to compile c++ code before (compile codes independently of OpenFOAM) using: Code:
c++ myCode.c Code:
mpic++ myParallelCode.c, mpicxx myParallelCode.c Thanks. |
Quick answer:
Code:
app Code:
Making dependency list for source file Test-parallelMin.C OK, pretty lengthy and hard to sift through, but here is the summary command you need, based on your example: Code:
g++ -I/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/include -L/home/ofuser/blueCFD/ThirdParty-5.x/platforms/mingw_w64Gcc/MS-MPI-7.1/lib myParallelCode.c -lmpi And yes, the "-lmpi" has to come last, so that the compiler knows the list of dependencies on a need basis. |
It worked. I was able to compile and run my code in parallel from the BlueCFD-core's terminal.
Thanks Bruno. |
All times are GMT -4. The time now is 11:49. |