<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=BSUB_Job_Submission</id>
	<title>BSUB Job Submission - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=BSUB_Job_Submission"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=BSUB_Job_Submission&amp;action=history"/>
	<updated>2026-05-04T20:15:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=BSUB_Job_Submission&amp;diff=1388&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;===== Common BSUB Flags =====   &#039;&#039;&#039;MPI&#039;&#039;&#039; &lt;syntaxhighlight&gt; BSUB -n 2                        # 2 processes BSUB -R &#039;span[ptile=1]&#039;          # 1 process per node BSUB -R &#039;span[hosts=1]&#039;  ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=BSUB_Job_Submission&amp;diff=1388&amp;oldid=prev"/>
		<updated>2012-12-06T16:35:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;===== Common BSUB Flags =====   &amp;#039;&amp;#039;&amp;#039;MPI&amp;#039;&amp;#039;&amp;#039; &amp;lt;syntaxhighlight&amp;gt; BSUB -n 2                        # 2 processes BSUB -R &amp;#039;span[ptile=1]&amp;#039;          # 1 process per node BSUB -R &amp;#039;span[hosts=1]&amp;#039;  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;===== Common BSUB Flags =====&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MPI&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -n 2                        # 2 processes&lt;br /&gt;
BSUB -R &amp;#039;span[ptile=1]&amp;#039;          # 1 process per node&lt;br /&gt;
BSUB -R &amp;#039;span[hosts=1]&amp;#039;          # all processors allocated to the job must be on the same execution host&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;MPI Placement&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -R &amp;#039;cu[pref=minavail]&amp;#039;      # run the job across the minimal amount of enclosures available&lt;br /&gt;
BSUB -R &amp;#039;cu[pref=maxcus=1]&amp;#039;      # force the job to run within the same enclosure&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Exclusive&amp;#039;&amp;#039;&amp;#039; this requires EXCLUSIVE = Y to be defined in the queue (lsb.queue)&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -x                          # exclusive mode, job runs on host by itself&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Output&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -o IMB.%J.%I.out            # standard output, appended&lt;br /&gt;
BSUB -oo IMB.%J.%I.out           # standard output, create new file &lt;br /&gt;
BSUB -e IMB.%J.%I.err            # error output, appended&lt;br /&gt;
BSUB -ee IMB.%J.%I.err           # error output, create new file&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Jobs Arrays&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -J Job_Name&lt;br /&gt;
BSUB -J IMB[1-110]               # job array, launch 110 jobs as part of this job array&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Checkpoint&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -q chkpnt_rerun_queue                               # specify a queue to run on &lt;br /&gt;
BSUB -k &amp;quot;/home/viglen/siesta/sbench-2009 method=blcr&amp;quot;    # -k for a shared checkpoint dir and use blcr&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Resources&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
BSUB -M memlimit&lt;br /&gt;
BSUB -v swap/virt memlimit&lt;br /&gt;
BSUB -m comp000&lt;br /&gt;
BSUB -m &amp;quot;comp000 comp001&amp;quot;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Move Files&amp;#039;&amp;#039;&amp;#039; across clusters/nodes not sharing a common user space&lt;br /&gt;
* Pay close attention to the redirects&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
# Copy input.inp from submission host to execution host&lt;br /&gt;
BSUB -f &amp;quot;/data/clustertest/case-03/input.inp &amp;gt; /home/user/app/input.inp&amp;quot;&lt;br /&gt;
&lt;br /&gt;
# Copy back results file&lt;br /&gt;
BSUB -f &amp;quot;/data/clustertest/case-03/result.out &amp;lt; /home/user/app/result.out&amp;quot; &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== Interactive Jobs =====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# X forwarding&lt;br /&gt;
bsub -XF xterm&lt;br /&gt;
&lt;br /&gt;
# Interactive Shell&lt;br /&gt;
bsub -Ip bash -l&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== IMB =====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#BSUB -n 2                        # 2 processes&lt;br /&gt;
#BSUB -R &amp;#039;span[ptile=1]&amp;#039;          # 1 process per node&lt;br /&gt;
#BSUB -R &amp;#039;cu[pref=minavail]&amp;#039;      # run the job across the minimal amount of enclosures available&lt;br /&gt;
#BSUB -R &amp;#039;cu[maxcus=1]&amp;#039;           # force the job to run within the same enclosure&lt;br /&gt;
#BSUB -x                          # exclusive mode, job runs on host by itself&lt;br /&gt;
#BSUB -o IMB.%J.%I.out            # standard output, appended&lt;br /&gt;
#BSUB -e IMB.%J.%I.err            # error output, appended&lt;br /&gt;
#BSUB -J IMB[1-110]               # Job array, launch 110 jobs as part of this job array&lt;br /&gt;
##BSUB -L /bin/bash&lt;br /&gt;
&lt;br /&gt;
#. /etc/profile&lt;br /&gt;
&lt;br /&gt;
#module add PMPI/modulefile&lt;br /&gt;
mpirun -np $LSB_DJOB_NUMPROC /home/mbptmp/imb/src/IMB-MPI1&lt;br /&gt;
&lt;br /&gt;
# Or if your running without platform mpi&lt;br /&gt;
mpirun -np $LSB_DJOB_NUMPROC -hostfile $LSB_DJOB_HOSTFILE /path/to/mpi-app&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===== xHPL =====&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#BSUB -n 8&lt;br /&gt;
#BSUB -R &amp;#039;span[ptile=8]&amp;#039;&lt;br /&gt;
#BSUB -o xhpl.%I.%J.out&lt;br /&gt;
#BSUB -e xhpl.%I.%J.err&lt;br /&gt;
#BSUB -J xhpl[10-600:10]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#BSUB -L /bin/bash&lt;br /&gt;
&lt;br /&gt;
. /etc/profile&lt;br /&gt;
&lt;br /&gt;
export OMP_NUM_THREADS=1&lt;br /&gt;
export NCPUS=1&lt;br /&gt;
&lt;br /&gt;
cd /home/mbptmp/hpl-2.0/bin/Nehalem/&lt;br /&gt;
mkdir $LSB_JOBINDEX&lt;br /&gt;
cd $LSB_JOBINDEX&lt;br /&gt;
sed &amp;quot;s/REPLACE_ME/$LSB_JOBINDEX/&amp;quot; /home/mbptmp/hpl-2.0/bin/Nehalem/HPL.dat &amp;gt; HPL.dat&lt;br /&gt;
&lt;br /&gt;
module add PMPI/modulefile&lt;br /&gt;
mpirun -np $LSB_DJOB_NUMPROC /home/mbptmp/hpl-2.0/bin/Nehalem/xhpl&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>