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

OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By dasMopo
  • 1 Post By dasMopo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 5, 2013, 10:37
Default OpenFOAM 1.7.1. using openmpi on Ubuntu 12.04
  #1
New Member
 
Join Date: Feb 2013
Posts: 3
Rep Power: 13
dasMopo is on a distinguished road
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 ]
dasMopo is offline   Reply With Quote

Old   February 5, 2013, 12:16
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 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
__________________
wyldckat is offline   Reply With Quote

Old   February 5, 2013, 12:52
Default
  #3
New Member
 
Join Date: Feb 2013
Posts: 3
Rep Power: 13
dasMopo is on a distinguished road
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 likes this.
dasMopo is offline   Reply With Quote

Old   February 5, 2013, 17:51
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 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
__________________
wyldckat is offline   Reply With Quote

Old   February 11, 2013, 08:12
Default
  #5
New Member
 
Join Date: Feb 2013
Posts: 3
Rep Power: 13
dasMopo is on a distinguished road
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 likes this.
dasMopo is offline   Reply With Quote

Old   February 17, 2013, 11:14
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 dasMopo,

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

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


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
OpenFoam 1.7.1 in Ubuntu 10.04 won't start working Leech OpenFOAM Installation 8 August 10, 2014 21:42
Openfoam Ubuntu 12.04 Unmet dependencies slls33 OpenFOAM Installation 10 April 9, 2013 05:16
Installing OpenFOAM 2.1.1 and ParaView 3.12.0 on Ubuntu 12.10 wyldckat OpenFOAM Installation 14 February 12, 2013 05:43
OpenFoam 1.7.1 on Fedora 12 Help... Alphax OpenFOAM Installation 7 November 2, 2012 15:33
OpenFOAM vs Ubuntu 10.10 64 bit vkrastev OpenFOAM Installation 12 April 23, 2011 11:14


All times are GMT -4. The time now is 04:41.