Simple Submission

Simple command line submission

Submitting a job is as easy as typing the following on the command line:
$ bsub -q short -n 128 -R 'span[ptile=64]' -app Reserve1800M ./cpi
Now, what does this do? It asks LSF to run the binary ./cpi on 128 job slots distributed on 2 nodes and 1800M of RAM per jobslot in the queue short. But note, this job will exit after 15 minutes because this is the default run time for the queue and an individual run time limit wasn't set using -W.

Simple submission by script

The same can be achieved by using a bsub script. Here, you list all your bsub parameters in a file as special comments like this:

And then you type
$ bsub < job