|
[Sponsors] |
[OpenFOAM.org] Issues with OpenMPI compilation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 26, 2015, 19:12 |
Issues with OpenMPI compilation
|
#1 |
New Member
Regis
Join Date: Jan 2012
Posts: 24
Rep Power: 14 |
Hi all,
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. Regis 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, 20:42 |
|
#2 |
Senior Member
|
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, 04:21 |
|
#3 |
New Member
Regis
Join Date: Jan 2012
Posts: 24
Rep Power: 14 |
Bernhard,
The ThirdParty’s Allwmake tries to compile it within the ThirdParty directory: Code:
./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, 16:31 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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. Best regards, Bruno Last edited by wyldckat; July 5, 2015 at 16:54. Reason: see "edit:" |
|
July 7, 2015, 23:27 |
|
#5 |
New Member
Regis
Join Date: Jan 2012
Posts: 24
Rep Power: 14 |
Thanks Bruno. I'll reply there as well, but just for the sake of organization: Your suggestion worked.
|
|
July 15, 2015, 11:14 |
|
#6 |
Member
Join Date: Jan 2011
Posts: 45
Rep Power: 15 |
I had exactly the same problem and the suggested fix worked for me. I also had to recompile Pstream, though.
|
|
Tags |
2.4.0, compilation, openmpi |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Issues with EHDFoam Compilation | Aicharem | OpenFOAM Programming & Development | 15 | June 28, 2019 01:39 |
Personalization of mapFields and libsampling - Compilation issues | saimat | OpenFOAM Programming & Development | 3 | June 29, 2016 09:56 |
[waves2Foam] Tripping over several build issues with OpenFOAM 2.1.1 | Yage | OpenFOAM Community Contributions | 18 | February 15, 2016 03:02 |
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 18:19 |