CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.org] Issues with OpenMPI compilation

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 2 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2015, 18:12
Default Issues with OpenMPI compilation
  #1
New Member
 
Regis
Join Date: Jan 2012
Posts: 22
Rep Power: 11
Regis_ is on a distinguished road
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.
Attached Files
File Type: zip allwmake3rdParty.log.zip (25.3 KB, 5 views)
Regis_ is offline   Reply With Quote

Old   June 26, 2015, 19:42
Default
  #2
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Heilbronn
Posts: 183
Blog Entries: 1
Rep Power: 13
Linse is on a distinguished road
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...
Linse is offline   Reply With Quote

Old   June 28, 2015, 03:21
Default
  #3
New Member
 
Regis
Join Date: Jan 2012
Posts: 22
Rep Power: 11
Regis_ is on a distinguished road
Bernhard,

The ThirdParty’s Allwmake tries to compile it within the ThirdParty directory:
Code:
./configure \
            --prefix=$MPI_ARCH_PATH \
# […]
and $MPI_ARCH_PATH is $WM_THIRD_PARTY/platforms/linux64Gcc/openmpi-1.8.5.

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.
Regis_ is offline   Reply With Quote

Old   July 5, 2015, 15:31
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,962
Blog Entries: 45
Rep Power: 125
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Regis_ and pbarc like this.

Last edited by wyldckat; July 5, 2015 at 15:54. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   July 7, 2015, 22:27
Default
  #5
New Member
 
Regis
Join Date: Jan 2012
Posts: 22
Rep Power: 11
Regis_ is on a distinguished road
Thanks Bruno. I'll reply there as well, but just for the sake of organization: Your suggestion worked.
Regis_ is offline   Reply With Quote

Old   July 15, 2015, 10:14
Default
  #6
Member
 
Join Date: Jan 2011
Posts: 45
Rep Power: 12
buffi is on a distinguished road
I had exactly the same problem and the suggested fix worked for me. I also had to recompile Pstream, though.
buffi is offline   Reply With Quote

Reply

Tags
2.4.0, compilation, openmpi

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Issues with EHDFoam Compilation Aicharem OpenFOAM Programming & Development 15 June 28, 2019 00:39
Personalization of mapFields and libsampling - Compilation issues saimat OpenFOAM Programming & Development 3 June 29, 2016 08:56
[waves2Foam] Tripping over several build issues with OpenFOAM 2.1.1 Yage OpenFOAM Community Contributions 18 February 15, 2016 02:02
Compilation Error (V 1.7.1; Icc 12.1.0, OpenMPI 1.4.3) floydfan OpenFOAM Installation 7 December 20, 2011 05:56
Compilation Order and Single Precision Issues gocarts OpenFOAM Bugs 1 October 14, 2009 17:19


All times are GMT -4. The time now is 15:55.