Consider an HP XC system configuration in which lsfhost.localdomain is the LSF execution host and nodes
Example
$ cat ./myscript.sh #!/bin/sh
srun hostname mpirun
$ bsub
Job <78> is submitted to | default queue <normal>. | ||||
<<Waiting for | dispatch | ...>> |
| ||
<<Starting on | lsfhost.localdomain>> | ||||
n1 |
|
|
|
|
|
n1 |
|
|
|
|
|
n2 |
|
|
|
|
|
n2 |
|
|
|
|
|
Hello world! | I’m 0 | of | 4 | on | n1 |
Hello world! | I’m 1 | of | 4 | on | n1 |
Hello world! | I’m 2 | of | 4 | on | n2 |
Hello world! | I’m 3 | of | 4 | on | n2 |
|
|
|
|
|
|
Example
$ bsub
Job <79> is submitted to | default queue <normal>. | ||||
<<Waiting for | dispatch | ...>> |
| ||
<<Starting on | lsfhost.localdomain>> | ||||
n1 |
|
|
|
|
|
n2 |
|
|
|
|
|
n3 |
|
|
|
|
|
n4 |
|
|
|
|
|
Hello world! | I’m 0 | of | 4 | on | n1 |
Hello world! | I’m 1 | of | 4 | on | n2 |
Hello world! | I’m 2 | of | 4 | on | n3 |
Hello world! | I’m 3 | of | 4 | on | n4 |
|
|
|
|
|
|
Example
$ bsub
<<Starting on lsfhost.localdomain>> n1
n2
Hello world! I’m 0 of 2 on n1 Hello world! I’m 1 of 2 on n2
Using LSF