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

MPI version issues with SUSE 12.1

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2012, 07:36
Default MPI version issues with SUSE 12.1
  #1
New Member
 
Thomas Clark
Join Date: Mar 2009
Location: Cambridge, UK
Posts: 10
Rep Power: 17
t_clark is on a distinguished road
Hi all,

I have a fresh install of OpenSUSE 12.1 and am trying to install a few pieces of software - particularly OpenFOAM ( The OpenFOAM&#174 Foundation ).

I've tracked down the RPMs required (the link from their website was broken but I found a mirror) and successfully installed scotch and paraview (easily; clicked on the RPMs and apper installed them for me, no troubles).

However, when I try to install OpenFOAM with apper I get an error that a dependency on OpenMPI 1.5 (.x) is unresolvable. The SUSE repositories only contain up to 1.4.x. So, I download an RPM of OpenMPI 1.5 from pbone, and attempted to install at the same time. This time, the version of glibc (2.15) that OpenMPI 1.5 requires isn't available (only glibc 2.14 on the OpenSUSE repos).

You see where I'm heading (down a rabbit hole). I don't want to manually resolve dependencies for my entire system (figuring that by the time I'm messing with glibc, this could be a very deep hole).

BUT...

I can't find the right repositories to add to allow apper to do it's job.

There's a potential solution using 'GeekoCFD' appliance from the SUSE Studio, which says they've used Third Party OpenMPI - but I have partitions I want to retain and therefore don't want to wipe the entire drive to install one of their images. I've googled for Third Party OpenMPI and can't find the packages they're mentioning.

--
Can anybody guide me in the best practice to use in this kind of situation please? (By 'best' I mean most user friendly to achieve a robust result...).

Thanks for any help, and best regards

Tom Clark
t_clark is offline   Reply With Quote

Old   July 20, 2012, 09:27
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Thomas,

By what I've tested now (following these instructions), it seems that you've made some very strange twists and turns on installing those packages.
You didn't mention one particular detail: are you using openSUSE 32bit (i686) or 64bit (x86_64)?

The scotch package is indeed missing and I've reported this issue here: http://www.openfoam.org/mantisbt/view.php?id=592
Nonetheless, you can use this command (it will retrieve the library for openSUSE 11.4):
Code:
sudo rpm -i http://www.openfoam.org/download/suse/11.4/x86_64/OpenFOAM-scotch-5.1.12-1.x86_64.rpm
If you're already in the terminal as root, then you don't need the sudo command.

And what do you mean by a missing dependency on Open-MPI 1.5? I've tested installing this just now and only have Open-MPI 1.4.5 installed from openSUSE's normal repositories! And had no complains by rpm!?
I'm using openSUSE 12.1 x86_64 and fully up-to-date and rebooted machine.

As for Open-MPI, for it to work as intended, you'll need to run these commands:
Code:
mpi-selector --list
mpi-selector --set openmpi-1.4.5
The second is assuming the first told you 1.4.5 was the existing version.
Then logout.
After logging back in, simply run:
Code:
mpirun --version
This should show you which version is ready to be used!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 10:14
Default
  #3
New Member
 
Thomas Clark
Join Date: Mar 2009
Location: Cambridge, UK
Posts: 10
Rep Power: 17
t_clark is on a distinguished road
Hi wyldcat, thank you for your help; that has got me a little further.

The missing scotch link is what caused my problem with the OpenCFD site instructions; so I retrieved RPMs from elsewhere and tried to install them using the same procedure. The RPM I used must have been custom built by someone using OpenMPI 1.5 (it wasn't a typo), rather than a mirrored version of the OpenCFD one.

So, now I have OpenFOAM installed properly, although the latest OpenMPI version available on the repositories is 1.4.3 (see http://software.opensuse.org/package/openmpi which is consistent with the latest available version showing in my YAST) - so I don't know where you're getting 1.4.5 from!

The packages are missing a dependency on lam, which contains mpirun - so users may have to do:
sudo zypper install lam
which worked for me.

Then I got the issue described on this post:
http://www.cfd-online.com/Forums/ope...te-so-0-a.html
Which is easily fixed following those instructions.

Thanks for your help, I think the problem is now solved!

Tom Clark
t_clark is offline   Reply With Quote

Old   July 20, 2012, 10:22
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Tom,

Quote:
Originally Posted by t_clark View Post
So, now I have OpenFOAM installed properly, although the latest OpenMPI version available on the repositories is 1.4.3 (see http://software.opensuse.org/package/openmpi which is consistent with the latest available version showing in my YAST) - so I don't know where you're getting 1.4.5 from!
Open-MPI 1.4.5 is the latest one available for openSUSE 12.1. If you update openSUSE, you'll get that version: http://en.opensuse.org/YaST_Online_Update
Keep in mind that the updater needs to update in two stages:
  1. The first one is for updating YaST itself.
  2. The second one is for updating everything else!
By the way, the page has been fixed in the mean time: http://www.openfoam.org/download/suse.php

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   July 20, 2012, 10:35
Default
  #5
New Member
 
Thomas Clark
Join Date: Mar 2009
Location: Cambridge, UK
Posts: 10
Rep Power: 17
t_clark is on a distinguished road
Bruno,

Thanks for your clear explanations and patient help.

Despite several years and quite a lot of programming experience during my PhD, I still find linux administration extremely frustrating. Desperately keeping a huge rant on the SUSE forums inside me.

Thanks again, and best regards

Tom Clark
t_clark 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
MPI issues with my own solver davide_c OpenFOAM Running, Solving & CFD 1 March 23, 2012 08:57
OpenCFD mantis does not allow to submit issues due to empty product version list alberto OpenFOAM Bugs 2 September 7, 2010 02:42
OpenCFD release OpenFOAMŪ version 1.7.1 opencfd OpenFOAM Announcements from ESI-OpenCFD 0 August 26, 2010 11:40
Is Testsuite on the way or not lakeat OpenFOAM Installation 6 April 28, 2008 11:12
MPI and parallel computation Wang Main CFD Forum 7 April 15, 2004 11:25


All times are GMT -4. The time now is 21:07.