CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Unable to run parallel cases with OF 2.3.x in openSUSE 12.3

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By zfaraday

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2015, 16:50
Exclamation Unable to run parallel cases with OF 2.3.x in openSUSE 12.3
  #1
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
As the title suggests, I can't run parallel cases although the last week I could do it without any problem... :S

This is the error message provided:
Code:
--------------------------------------------------------------------------
Open RTE was unable to open the hostfile:
    /usr/lib64/mpi/gcc/openmpi/etc/openmpi-default-hostfile
Check to make sure the path and filename are correct.
--------------------------------------------------------------------------
[linux-cfd:05355] [[64188,0],0] ORTE_ERROR_LOG: Not found in file base/ras_base_allocate.c at line 200
[linux-cfd:05355] [[64188,0],0] ORTE_ERROR_LOG: Not found in file base/plm_base_launch_support.c at line 99
[linux-cfd:05355] [[64188,0],0] ORTE_ERROR_LOG: Not found in file plm_rsh_module.c at line 1167
I checked the path of the filename and, as expected it doesn't exist. Actually, etc/ directory within /usr/lib64/mpi/gcc/openmpi/ doesn't even exist, so I don't know where to find the openmpi-default-hostfile file. The point is that I run my last parallel case the last week and everything was fine! The only thing I did these days, that I remember, that may have broken something is a git pull and recompilation, but I did it before without a problem, so I don't know what to do now...

I will appreciate any advice.

Regards,

Alex
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   February 2, 2015, 17:42
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 Alex,

I know I saw a solution for this just a few days ago... let's see if I'm lucky and I can easily find it again...
OK, one I saw back then was this: http://www.openfoam.org/archive/2.2.2/download/suse.php
Quote:
Note: There is a problem with mpirun on OpenSUSE 12.3 (https://svn.open-mpi.org/trac/ompi/ticket/3554) where a default file is not installed correctly. Where this problem exists, it is possible to run mpirun using the following flag:
Code:
mpirun --default-hostfile none
The other solution is here: https://forums.opensuse.org/showthre...76#post2604776 - namely, to run (as root) the following commands:
Code:
cd /usr/lib64/mpi/gcc/openmpi/
mkdir etc
cd etc
ln -s /etc/openmpi-default-hostfile openmpi-default-hostfile
Best regards,
Bruno
zfaraday likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 2, 2015, 18:07
Default
  #3
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Dear Bruno,

Many thanks for your quick response. After having opened this thread I kept searching in the net for a solution and I got to this page. Where a method it is explained. Firstly, Alberto Passalacqua says:

Quote:
usually this error happens when MPI wasn’t compiled properly or it is not set up properly. You may check if the MPI setup for your user is correct with the command mpi-selector-menu, and see if both your user and the system have the same version of openmpi selected. If not, mpi-selector-menu lets you change this setting. Note that you must logout and login again to see the effect of any changes you make.

Other question: did you re-compile OpenFOAM on this installation of GeekoCFD? Knowing this would help me to debug.
I run on the terminal the command mpi-selector-menu as suggested and found out that, obviously, something wasn't going well...

Code:
Current system default: openmpi-1.6
Current user default:   <none>

    "u" and "s" modifiers can be added to numeric and "U"
    commands to specify "user" or "system-wide".

1. openmpi-1.6
U. Unset default
Q. Quit
I changed the Current user default to openmpi-1.6 but it kept crashing...

I kept reading the conversation of Alberto till the end till I found this:

Quote:
Try to create this symbolic link. It used to be required:

ln -s /etc /usr/lib64/mpi/gcc/openmpi/
Which I guess it does exactly the same that the second option you gave me:

Quote:
Originally Posted by wyldckat View Post

Code:
cd /usr/lib64/mpi/gcc/openmpi/
mkdir etc
cd etc
ln -s /etc/openmpi-default-hostfile openmpi-default-hostfile
Am I right? I did what Alberto says in his page because I saw it first...

Well, the problem is that now it keeps crashing but the error shown the following:
Code:
--> FOAM FATAL ERROR: 
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function 

--> FOAM FATAL ERROR: 
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting



--> FOAM FATAL ERROR: 
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting


UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting


--> FOAM FATAL ERROR: 
Trying to use the dummy Pstream library.
This dummy library cannot be used in parallel mode

    From function UPstream::init(int& argc, char**& argv)
    in file UPstream.C at line 37.

FOAM exiting

--------------------------------------------------------------------------
mpirun noticed that the job aborted, but has no info as to the process
that caused that situation.
--------------------------------------------------------------------------
Am I doing anything wrong?

Many thanks for your insight Bruno.
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   February 2, 2015, 21:42
Default
  #4
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Ok, finally solved!

I just recompiled Pstream within $FOAM_SRC as it's said here in the 4th point and now I can run in parallel again!

I wonder if it happened because of the update I did a couple of days ago, because the last week I had no problem in running parallel cases...

Thanks for your tip Bruno (althoug I just almost-solved a few minutes ago )

Regards,

Alex
wyldckat likes this.
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Reply

Tags
mpirun, openmpi, parallel error, parallel execution


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
[swak4Foam] swak4foam-0.3.0 make parallel run crash on foam-extend-3.0 Aleksey_R OpenFOAM Community Contributions 12 March 22, 2019 08:57
Case running in serial, but Parallel run gives error atmcfd OpenFOAM Running, Solving & CFD 18 March 26, 2016 13:40
The results difference between parallel and serial run. Hkp OpenFOAM Running, Solving & CFD 2 April 17, 2014 03:26
TestCases parallel run Emily1412 SU2 3 March 27, 2014 20:28
parallel Grief: BoundaryFields ok in single CPU but NOT in Parallel JR22 OpenFOAM Running, Solving & CFD 2 April 19, 2013 17:49


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