beautypg.com

Submitting a serial job using standard lsf, Submitting a serial job using lsf-hpc, Submitting a serial job with the lsf bsub command – HP XC System 3.x Software User Manual

Page 46

background image

Submitting a Serial Job Using Standard LSF

Example 5-1

Submitting a Serial Job Using Standard LSF

Use the bsub command to submit a serial job to standard LSF.

$ bsub hostname

Job <61> is submitted to default queue .

<>

<>

n1

Submitting a Serial Job Using LSF-HPC

There are various methods for submitting a serial job on the HP XC system:

Using the LSF bsub command alone.

Using the LSF bsub command in conjunction with the SLURM srun command.

Using the LSF bsub command in conjunction with the SLURM srun command and the LSF-SLURM
External Scheduler.

Using the SLURM srun command alone.

These methods are explored in this section.

For most instances, the recommended method for submitting a job is to use the LSF bsub command in
conjunction with the SLURM srun command.

Submitting a Serial Job with the LSF bsub Command

Use the bsub command to submit a serial job on the LSF execution host using the following format:

bsub [bsub-options ] [ srun [srun-options]] jobname [job-options]

The bsub command launches the job.

Use the bsub command's -I option to launch an interactive serial job.

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 argument is the name of an executable file.

The SLURM srun job launch command is only needed if the LSF-HPC 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

"Notes on LSF-HPC"

for information on the bqueues command.

Example 5-2

shows the submission and launch of a serial interactive job and its output.

Example 5-2 Submitting a Serial Job Using LSF-HPC

$ bsub -I srun hostname

Job <20> is submitted to default queue .

<>

<>

n1

Example 5-3

shows the submission of an interactive serial job without the SLURM srun command and the

job output.

46

Submitting Jobs