|
[Sponsors] |
Installing OpenFOAM with SYSTEM MPI while using Third-Party libs |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 21, 2011, 04:31 |
Installing OpenFOAM with SYSTEM MPI while using Third-Party libs
|
#1 |
New Member
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
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 |
|
June 25, 2011, 08:57 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Best regards, Bruno
__________________
|
|
July 1, 2011, 09:07 |
|
#3 |
New Member
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
Hi Bruno,
and many thanks for the hint! Anyhow, I tried the patch and it does not seem to solve the problem. :-( |
|
July 1, 2011, 21:03 |
|
#4 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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 Best regards, Bruno
__________________
|
|
July 2, 2011, 04:51 |
|
#5 |
New Member
Massimiliano Culpo
Join Date: Jun 2011
Posts: 3
Rep Power: 15 |
The last solution works perfectly!
Many thanks, Massimiliano |
|
July 3, 2011, 04:48 |
|
#6 |
Senior Member
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36 |
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 |
|
|
|
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 |