In Example
Example
$ cat myscript.sh #!/bin/sh
srun hostname mpirun -srun hellompi
$ bsub | myscript.sh |
|
| |
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 |
Example
Example
$ bsub -n4 -ext "SLURM[nodes=4]" -I ./myscript.sh
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
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
50 Submitting Jobs