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

Installing OpenFOAM with SYSTEM MPI while using Third-Party libs

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 21, 2011, 04:31
Default Installing OpenFOAM with SYSTEM MPI while using Third-Party libs
  #1
New Member
 
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 14
m.culpo is on a distinguished road
Hi,

I am trying to install OpenFOAM 1.7.1 on a linux cluster using the OpenMPI libraries installed on the system. Anyhow, I am not able to compile cleanly the Third party libraries (metis,scotch). In fact, while a complete installation with Gcc 4.5.2 and Third-party OpenMPI:

${WM_MPLIB:=OPENMPI}; export WM_MPLIB

produces in the subdirectory:

~/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-1.4.1

the following shared objects:

libmetis-parmetis.so libparMetisDecomp.so libparmetis.so libPstream.so libptscotcherrexit.so libptscotch.so

the same installation with:

${WM_MPLIB:=SYSTEMOPENMPI}; export WM_MPLIB

produces in the directory:

~/OpenFOAM/OpenFOAM-1.7.1/lib/linux64GccDPOpt/openmpi-system

only "libPstream.so", i.e. it seems that Third-party libraries are not built. Even though a bad-hack to make things work is to manually copy the missing shared objects from the first directory to the second, I would like to ask if anybody knows a clean way to compile and install OpenFOAM using SYSTEM OpenMPI. I apologize if the question is somehow trivial, but I am an OpenFOAM beginner and I was not able to find further clues on the subject on the web.

Many thanks in advance to anyone answering
m.culpo is offline   Reply With Quote

Old   June 25, 2011, 08:57
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
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 Massimiliano and welcome to the forum!

I think you should check this bug report: http://www.openfoam.com/mantisbt/view.php?id=79

To apply the patch, run:
Code:
foam3rdParty
gunzip ThirdParty_Allwmake.diff.gz
patch -p0 < ThirdParty_Allwmake.diff
Running Allwmake a second time before applying this patch might also fix the problem!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 1, 2011, 09:07
Default
  #3
New Member
 
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 14
m.culpo is on a distinguished road
Hi Bruno,

and many thanks for the hint!

Anyhow, I tried the patch and it does not seem to solve the problem. :-(
m.culpo is offline   Reply With Quote

Old   July 1, 2011, 21:03
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
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
Hi Massimiliano,

OK, I had to test this for myself... And came to the same problem! Then I remembered of another bug report I made a while back: http://www.openfoam.com/mantisbt/view.php?id=96

Basically, edit the file etc/settings.sh, search for the following block of code in the SYSTEMOPENMPI entry and add the line in bold:
Code:
    export FOAM_MPI_LIBBIN=$FOAM_LIBBIN/$mpi_version
    export MPI_ARCH_PATH="${libDir%/*}"
    unset mpi_version libDir
Start a new terminal or source etc/bashrc once again and run Allwmake. This should do the trick

Best regards,
Bruno
yanxiang and alsaeng like this.
__________________
wyldckat is offline   Reply With Quote

Old   July 2, 2011, 04:51
Default
  #5
New Member
 
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 14
m.culpo is on a distinguished road
The last solution works perfectly!

Many thanks,
Massimiliano
m.culpo is offline   Reply With Quote

Old   July 3, 2011, 04:48
Default
  #6
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by m.culpo View Post
The last solution works perfectly!

Many thanks,
Massimiliano
Changing settings.sh is going to potentially cause problems with git, if you use OpenFOAM 2.0.x, since if the file is changed in the repository, git won't fast-forward and it will ask you to merge.

Custom settings like this should go into the file "prefs.sh".
You find an example of this file in ~/OpenFOAM/OpenFOAM-2.0.x/etc/config/example/, and the file should be saved into ~/OpenFOAM/OpenFOAM-2.0.x/etc.

Simply uncomment "export WM_MPLIB=SYSTEMOPENMPI" in the example, and you are done.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.

Last edited by alberto; July 3, 2011 at 04:49. Reason: Corrected typo
alberto is offline   Reply With Quote

Reply

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
problems with installing OpenFOAM 1.6 su_junwei OpenFOAM Installation 8 September 10, 2009 13:54
Installing Open Foam and needed packages on shared disk for cluster environment k3di OpenFOAM Installation 1 July 8, 2009 08:06
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 05:48
Error using LaunderGibsonRSTM on SGI ALTIX 4700 jaswi OpenFOAM 2 April 29, 2008 11:54
MPI profiling OpenFOAM damBreak3D application mellanoxuser OpenFOAM Running, Solving & CFD 0 April 14, 2008 00:04


All times are GMT -4. The time now is 10:23.