Example
Hello world! I’m 2 of 4 on host2
Hello world! I’m 3 of 4 on host3
Hello world! I’m 4 of 4 on host4
2.3.5.4 Submitting a Batch Job or Job ScriptSubmitting batch jobs is discussed in detail in Section 7.4.6. The bsub command format to submit a batch job or job script is:
bsub
The
The
The script will execute once on the first allocated node, and the srun or mpirun commands within the script will be run on the allocated compute nodes.
Consider an HP XC configuration where lsfhost.localdomain is the LSF execution host and nodes
In this example, the following simple script myjobscript.sh is launched. Two srun commands are specified within the script.
Example#!/bin/sh srun hostname
mpirun
The following command submits this script:
$ bsub
The
Job <29> is submitted to | default queue <normal>. | ||||
<<Waiting for | dispatch | ...>> |
| ||
<<Starting on | lsfhost.localdomain>> | ||||
n2 |
|
|
|
|
|
n2 |
|
|
|
|
|
n4 |
|
|
|
|
|
n4 |
|
|
|
|
|
Hello world! | I’m 0 | of | 4 | on | n2 |
Hello world! | I’m 1 | of | 4 | on | n2 |
Hello world! | I’m 2 | of | 4 | on | n4 |
Hello world! | I’m 3 | of | 4 | on | n4 |
Using the System