HP XC System 3.x Software User Manual
Page 61
Example 5-15 Submitting a Batch Script with the LSF-SLURM External Scheduler Option
$ bsub -n4 -ext "SLURM[nodes=4]" -I ./myscript.sh
Job <79> is submitted to default queue
<
<
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
and
show how the jobs inside the script can be manipulated within
the allocation.
Example 5-16 Submitting a Batch Job Script That Uses a Subset of the Allocation
$ bsub -n4 -ext "SLURM[nodes=4]" -I ./myscript.sh
Job <80> is submitted to default queue
<
<
n1
n2
Hello world! I'm 0 of 2 on n1
Hello world! I'm 1 of 2 on n2
Example 5-17 Submitting a Batch job Script That Uses the srun --overcommit Option
$ bsub -n4 -I ./myscript.sh
Job <81> is submitted to default queue
<
<
n1
n1
n1
n1
n2
n2
n2
n2
Hello world! I'm 0 of 8 on n1
Hello world! I'm 1 of 8 on n1
Hello world! I'm 2 of 8 on n1
Hello world! I'm 3 of 8 on n1
Hello world! I'm 4 of 8 on n2
Hello world! I'm 5 of 8 on n2
Hello world! I'm 6 of 8 on n2
Hello world! I'm 7 of 8 on n2
shows some of the environment variables that are available in a batch script. The
LSB_HOSTS
and LSB_MCPU_HOSTS environment variables are defined in Platform LSF Reference.
The SLURM_JOBID and SLURM_NPROCS environment variables are defined in the SLURM
Reference Manual.
5.4 Submitting a Batch Job or Job Script
61