|June 26, 2015, 18:12||
Issues with OpenMPI compilation
Join Date: Jan 2012
Posts: 12Rep Power: 6
I just built OpenFOAM 2.4.0 but I’m having issues setting up the OpenMPI (1.8.5). I have an old working version of OpenFOAM installed as well so I’m able to compare some directories more easily.
I executed OpenFOAM’s Allwmake which calls ThirdParty’s Allwmake which “build the MPI libraries if required”. At first, nothing related to OpenMPI had been built, because I didn’t fall into any of the cases for building OpenMPI specified at ThirdParty’s Allwmake. Then, I changed WM_MPILIB to OPENMPI instead of SYSTEMOPENMPI in $WM_PROJECT_DIR/etc/bashrc in order to fall into the “if required”. I haven’t changed anything with respect to MPI in settings.sh. The logfile for the ThirdParty’s Allwmake is attached.
Looking at the openmpi makefile, I can see that, in fact, the prefix path appears to be correct: $WM_THIRD_PARTY_DIR/platforms/linux64Gcc/openmpi-1.8.5.
My problem is that I cannot use mpirun to run OpenFOAM’s applications in parallel. The directory ThirdParty-2.4.0/platforms/linux64Gcc/openmpi-1.8.5 still doesn’t exist after the compilation; ThirdParty-2.4.0/platforms/linux64GccDPOpt/lib/openmpi-1.8.5 exists, but it is empty. Comparing with the old OpenFOAM I have installed, the first folder I mentioned is populated with bin, lib, include and others.
I tried compiling again just the openMPI (not using ThirdParty’s Allwmake, but rather configure and make from ThirdParty/openmpi-1.8.5), specifying a different path, like $HOME/foo, and the directories bin, lib and so on were created, but not populated as I was expecting (again, comparing with the old OpenFOAM installation).
All the paths in $PATH and $LD_LIBRARY_PATH seems to be correct, that is, they are pointing to the directories that should exist inside ThirdParty/platforms.
Before posting, I looked for similar problems and tried to follow whatever people replied, but I haven’t been successful. Any help or suggestion is greatly appreciated.
PS.: I’m not having any issues regarding having more than one installation of OpenFOAM (I actually have 3). All the paths were correctly adjusted and I’m sourcing the bashrc’s I need to.
|June 26, 2015, 19:42||
Join Date: May 2010
Blog Entries: 1Rep Power: 8
I am on too slow a machine, thus not reading the log. But: Did you already try with compiling the OpenMPI into the ThirdParty folder?
Nevertheless there might be a real bug in the software, with my approach being just a workaround.
Please feel free to recheck what you have installed and issuing a bug report afterwards via the mantis bugtracker. The last times the people at OpenCFD seemed to react quickly there...
|June 28, 2015, 03:21||
Join Date: Jan 2012
Posts: 12Rep Power: 6
The ThirdParty’s Allwmake tries to compile it within the ThirdParty directory:
./configure \ --prefix=$MPI_ARCH_PATH \ # […]
So I’m not sure if it is valid to try to recompile it again specifying similar paths, but I don’t think this will work. Just as a side note, comparing with the old installation I have, openMPI files were created inside both platforms/linux64Gcc/openmpi-x.y.z (lib, bin, include…) and platforms/linux64GccDPOpt/lib/openmpi-x.y.z (shared objects).
I don’t want to submit a bug yet because the probability of me doing something wrong is higher than this being a real bug. I appreciate if you or someone else could take a look at the logfile.
|July 5, 2015, 15:31||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 39Rep Power: 103
Greetings to all!
@Regis: Since you've opened a bug report, I'll answer there, since it does seem to be a bug: http://www.openfoam.org/mantisbt/view.php?id=1770
edit: I've also provided the bug fix there, namely that the "openmpi-1.8.5" folder that is in "ThirdParty-2.4.0" is missing a few files.
Last edited by wyldckat; July 5, 2015 at 15:54. Reason: see "edit:"
|2.4.0, compilation, openmpi|
|Thread||Thread Starter||Forum||Replies||Last Post|
|Multigrid Stability Issues||ThomasHermann||SU2||1||November 5, 2014 17:18|
|Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3)||floydfan||OpenFOAM Installation||7||December 20, 2011 06:56|
|Compilation Order and Single Precision Issues||gocarts||OpenFOAM Bugs||1||October 14, 2009 17:19|
|InterFoamPressure compilation issues||jack||OpenFOAM Running, Solving & CFD||3||May 14, 2008 11:38|
|Changes in OF 14 and compilation issues||alberto||OpenFOAM Running, Solving & CFD||13||May 13, 2007 15:21|