CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04 (https://www.cfd-online.com/Forums/openfoam-installation/112783-openfoam-1-7-1-using-openmpi-ubuntu-12-04-a.html)

dasMopo February 5, 2013 09:37

OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04
 
Hi there.

We're trying to get OF running using on a Ubuntu 12.04 (x86) system.
Following the installation instructions from openfoamwiki gave us a running installation of OF, but it gives errors, when we try to run it in parallel operation:

Code:

Sorry!  You were supposed to get help about:
    find-available:not-valid
But I couldn't open the help file:
    /home/*****/OpenFOAM/ThirdParty-1.7.1/openmpi-1.4.1/share/openmpi/help-mca-base.txt: No such file or directory.  Sorry!
--------------------------------------------------------------------------
[eurex1:23625] *** Process received signal ***
[eurex1:23625] Signal: Segmentation fault (11)
[eurex1:23625] Signal code: Address not mapped (1)
[eurex1:23625] Failing at address: 0x28
[eurex1:23625] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f3dbe327cb0]
[eurex1:23625] [ 1] /usr/lib/libopen-pal.so.0(mca_base_select+0x108) [0x7f3dbe557518]
[eurex1:23625] [ 2] /usr/lib/libopen-pal.so.0(opal_crs_base_select+0x7e) [0x7f3dbe56990e]
[eurex1:23625] [ 3] /usr/lib/libopen-pal.so.0(opal_cr_init+0x31e) [0x7f3dbe5480ee]
[eurex1:23625] [ 4] /usr/lib/libopen-pal.so.0(opal_init+0x159) [0x7f3dbe547a59]
[eurex1:23625] [ 5] /usr/lib/libopen-rte.so.0(orte_init+0x4d) [0x7f3dbe799a0d]
[eurex1:23625] [ 6] mpirun() [0x402fe5]
[eurex1:23625] [ 7] mpirun() [0x402b34]
[eurex1:23625] [ 8] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f3dbdf7a76d]
[eurex1:23625] [ 9] mpirun() [0x402a59]
[eurex1:23625] *** End of error message ***

The path mentioned in the error message (/home/*****/OpenFOAM/ThirdParty-1.7.1/openmpi-1.4.1/share/openmpi/help-mca-base.txt ) doesn't exist.

(I also noticed the compiler complaining about missing mpi.h in Allwmake of OF 1.7.1, which is somewhat weird, as we'd manage to get a recent OF 2.1.1 running parallel without any problems.)

Can anyone help ?

[Isn't there a recent howto out there, describing how to build OF 1.7.1 with mpi support ? Most of the docs I read were unfortunately severely out of date :( ]

wyldckat February 5, 2013 11:16

Greetings dasMopo and welcome to the forum!

I believe you are talking about this page: http://openfoamwiki.net/index.php/In...M-1.7.1/Ubuntu

Since you have more than one OpenFOAM installed, how are you keeping the two installations separated, shell-wise?
If you don't know what I mean, see: http://www.cfd-online.com/Forums/blo...vironment.html

Also, try running Allwmake in OpenFOAM-1.7.1 once again, and check what errors is gives you.

Best regards,
Bruno

dasMopo February 5, 2013 11:52

Wyldckat, thanks for your reply.

Actually - after some additional tries and a fresh install - I managed to get it to work. The problem was that in the howto there was the include of systemopenmpi, which wouldn't work.

Code:

source $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=SYSTEMOPENMPI
Changing this to openmpi [which is supplied in the ThirdParty package, as far as i understood] solved the problem - parallel processing is now available and running flawlessly.

Code:

source $HOME/OpenFOAM/OpenFOAM-1.7.1/etc/bashrc WM_NCOMPPROCS=4 WM_MPLIB=OPENMPI
Regarding your question - we managed to run different versions of OF by individually sourcing the environments using a script instead of placing the source command in the user's home .bashrc

This works quite well.

wyldckat February 5, 2013 16:51

Hi dasMopo,

Many thanks for the feedback! I'll update the wiki page accordingly and give this page as a reference for future support!

I've been writing on these wiki pages to use the Ubuntu's version of Open-MPI, because (at least in theory) it should be the most stable and tested version... but then again, I didn't fully test the resulting build. So feedback is always welcome!

Best regards,
Bruno

dasMopo February 11, 2013 07:12

Well, you're very welcome. :)

Another issue I encountered in using the 1.7.1 Ubuntu installation guide: the getQt script (in section 6 - building paraView) still points to the Trolltech servers, which are no longer available.

Correct link should point to the project's new home at http://releases.qt-project.org/qt4/source/ (Nokia).

wyldckat February 17, 2013 10:14

Hi dasMopo,

Once again, many thanks for the feedback! I've implemented the changes you suggested.

Best regards,
Bruno


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