|October 22, 2010, 11:54||
Running OpenFOAM from Platform LSF
Join Date: Jul 2010
Posts: 11Rep Power: 8
Does anyone have any experience running OF from LSF? If so, could you share an example shell script to submit the job to bsub?
|June 27, 2011, 13:25||
Join Date: Jan 2010
Posts: 23Rep Power: 8
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"
for i in $LSB_HOSTS
do echo $i >> machineFile
mpirun -n 20 --hostfile machineFile simpleFoam -parallel > foam.log
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.
|June 3, 2013, 15:52||
Join Date: Oct 2012
Posts: 2,209Rep Power: 19
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.
|June 8, 2013, 16:22||
Join Date: Mar 2009
Location: Lisbon, Portugal
Blog Entries: 39Rep Power: 103
Greetings to all!
|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|