This is an old revision of the document!
You use bsub to submit a job to the LSF batch system.
There are some important parameters that are always required or at least recommended to use:
| || The queue your job should run in.
| ||The number of job slots you need (=cores, if no affinity request is given).|
| || Request to always get 64 processor together on one node, i.e. full nodes.
If you use 64 processors or less, use
| ||Set the runtime limit of your job (up to the maximum allowed by the selected queue). See the description for host model considerations.|
| || Use an application profile to request an amount of memory for each process.
More details on memory reservation.
| ||Run the job interactively, showing you its output directly in your shell session. Useful for debugging or short runs.|
| || Sets an arbitrary name for your job that is used for Email notifications and listing of jobs through
See also our policy on jobnames.
To specify files for output, error and input consider the following:
| ||Will direct stdout, stderr and the LSF job summary into one file.|
| ||Will direct stdout and the job summary to the log file and stderr to the error log file.|
| || In addtition to
| ||Specifies additional input data.|
Other important parameters / features on mogon include:
There are two ways to supply parameters and commands to bsub: Using the command line or using a bsub script.
On the command line, you simply attach all parameters to the bsub command and finish with your program:
$ bsub -q short -n 128 -R 'span[ptile=64]' -app Reserve1800M <mpirun/mpiexec> ./cpi
In a bsub script, you list all your bsub parameters in a file as special comments like this:
#BSUB -q short #BSUB -n 128 #BSUB -R 'span[ptile=64]' #BSUB -app Reserve1800M <mpirun/mpiexec> ./cpi
And then you pipe that file into the bsub command like this:
$ bsub < job