2 submitting a serial job through slurm only, Submitting a job from the standard input, Submitting a serial job using lsf – HP XC System 4.x Software User Manual
Page 50

The srun command is only necessary to launch the job on the allocated node if the HP XC JOB
STARTER
script is not configured to run a job on the compute nodes in the lsf partition.
The jobname parameter can be name of an executable or a batch script. If jobname is executable,
job is launched on LSF execution host node. If jobname is batch script (containing srun
commands), job is launched on LSF node allocation (compute nodes). LSF node allocation is
created by -n num-procs parameter, which specifies the number of cores the job requests.
The SLURM srun job launch command is only needed if the LSF JOB_STARTER script is not
configured for the intended queue, but it can be used regardless of whether or not the script is
configured. You can use the bqueues command to confirm whether or not the JOB_STARTER
script exists; see bqueues(1) for information on the bqueues command.
invoking the bsub command after which a job can be entered from the standard
input.
Example 5-1 Submitting a Job from the Standard Input
bsub
shows the submission and launch of a serial interactive job and its output.
Example 5-2 Submitting a Serial Job Using LSF
$ bsub -I srun hostname
Job <20> is submitted to default queue
<
<
n1
shows the submission of an interactive serial job without the SLURM srun command
and the job output.
Example 5-3 Submitting an Interactive Serial Job Using LSF only
$ bsub -I hostname
Job <73> is submitted to default queue
<
<
n1
uses the LSF-SLURM External Scheduler to submit a job to run on four cores on
two specific compute nodes.
Example 5-4 Submitting an Interactive Serial Job Using LSF and the LSF-SLURM External Scheduler
$ bsub -I -n4 -ext "SLURM[nodelist=n[14,16]]" srun hostname
Job <9> is submitted to default queue
<
<
n14
n14
n16
n16
5.2.2 Submitting a Serial Job Through SLURM Only
This section describes how to build a simple hello world application, called hw_hostname,
execute it on the login node, and launch it with the SLURM srun command.
The following is the C source code for this program; the file name is hw_hostname.c.
50
Submitting Jobs