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

Running OpenFOAM from Platform LSF

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Display Modes
Old   October 22, 2010, 11:54
Question Running OpenFOAM from Platform LSF
  #1
New Member
 
Join Date: Jul 2010
Posts: 11
Rep Power: 7
phinallydone is on a distinguished road
Does anyone have any experience running OF from LSF? If so, could you share an example shell script to submit the job to bsub?

Many Thanks!
phinallydone is offline   Reply With Quote

Old   June 27, 2011, 13:25
Default
  #2
New Member
 
Join Date: Jan 2010
Posts: 23
Rep Power: 7
jdiorio is on a distinguished road
Posting this in response to a PM from member Linse. Sorry if this info is posted elsewhere but maybe others will find it helpful.

The key is the LSF environment variable $LSB_HOSTS which is the lists of machines assigned for your job. Create two files e.g. "parjobscript" and the "runparjob"

#script parjobscript
rm machineFile
for i in $LSB_HOSTS
do echo $i >> machineFile
done
mpirun -n 20 --hostfile machineFile simpleFoam -parallel > foam.log

#script runparjob
bsub -q limit150 -n 20 -e error.%J.log -o output.%J.log < parjobscript

The -n option in each of these files should be followed by the number of processors you want. In "runparjob" I'm submitting to the LSF scheduler using bsub, followed by the queue name (in this case limit150) and again the number of processors. The -e and -o options specify the error and log files respectively (using %J gives you the current job number).

Executing "runparjob" should assign the assigned LSF machines to OpenFOAM.

Hope this helps.

James
jdiorio is offline   Reply With Quote

Old   June 28, 2011, 09:30
Default
  #3
Senior Member
 
Bernhard Linseisen
Join Date: May 2010
Location: Magdeburg/Geneva
Posts: 178
Blog Entries: 1
Rep Power: 7
Linse is on a distinguished road
James, thank you very much for that information!
At the very least it points to ways how to solve the problems I have!
Linse is offline   Reply With Quote

Old   June 3, 2013, 15:10
Default
  #4
New Member
 
ehk
Join Date: Sep 2012
Posts: 21
Rep Power: 4
ehsankf is on a distinguished road
Does anyone have any experience running OF from LSF with mpirun.lsf?
ehsankf is offline   Reply With Quote

Old   June 3, 2013, 15:52
Default
  #5
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,205
Rep Power: 17
immortality is on a distinguished road
Hi
what is LSF?
__________________
Injustice Anywhere is a Threat for Justice Everywhere.Martin Luther King.
To Be or Not To Be,Thats the Question!
The Only Stupid Question Is the One that Goes Unasked.
immortality is offline   Reply With Quote

Old   June 8, 2013, 16:22
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,507
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings to all!

Quote:
Originally Posted by ehsankf View Post
Does anyone have any experience running OF from LSF with mpirun.lsf?
If you make a more specific question as to what problem you're having with LSF, it'll be easier for anyone to answer you.

Quote:
Originally Posted by immortality View Post
Hi
what is LSF?
I'm not 100% certain, but I think it's this: http://en.wikipedia.org/wiki/Load_Sharing_Facility

Best regards,
Bruno
immortality likes this.
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
How to Install OpenFOAM on 64 Ubuntu 9.04 hansel OpenFOAM Installation 62 March 19, 2010 15:43
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
OpenFOAM Training in Europe and USA hjasak OpenFOAM 0 August 8, 2008 05:33
Kubuntu uses dash breaks All scripts in tutorials platopus OpenFOAM Bugs 8 April 15, 2008 07:52


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