5 Submitting Jobs

This chapter describes how to submit jobs on the HP XC system; it addresses the following topics:

Overview of Job Submission (page 45)Submitting a Serial Job Using Standard LSF (page 46)Submitting a Serial Job Using LSF-HPC (page 46)Submitting a Non-MPI Parallel Job (page 48)

Submitting a Parallel Job That Uses the HP-MPI Message Passing Interface (page 48)

Submitting a Batch Job or Job Script (page 49)Running Preexecution Programs (page 51)

Overview of Job Submission

On an HP XC system, a job is submitted to LSF-HPC, which places the job in a queue and allows it to run when the necessary resources become available. The LSF bsub command is the primary method for submitting jobs on the HP XC system.

"Summary of the LSF bsub Command Format" provides a summary of the LSF bsub command format.

The format of the bsub command depends on the type of the job, as listed here:Serial job; that is, a job that runs on a single coreNon-MPI parallel jobHP-MPI parallel jobA batch job script

The remaining sections describe how to submit a job for each of these job types.

The examples in this section submit the hostname command or a variation of a "hello, world" program. Most examples are run as interactive jobs to display the output.

The examples in this chapter are run on an HP XC system configuration in which lsfhost.localdomain is the virtual IP name of the LSF execution host and nodes n[1-16]are compute nodes in the lsf partition. All nodes contain 2 cores, providing 32 cores for use by LSF-HPC jobs.

Some examples, particularly those that launch parallel jobs, employ the LSF-SLURM External Scheduler to specify SLURM options that specify the minimum number of nodes required for the job, specific nodes for the job, and so on. "LSF-SLURM External Scheduler" provides additional information on the LSF-SLURM External Scheduler. The format of this option is shown here:

-ext"SLURM[slurm-arguments]"

The slurm-argumentscan consist of one or more srun allocation options (in long format).

Refer to "LSF-SLURM External Scheduler" for additional information about using the LSF-SLURM external scheduler. The Platform Computing LSF documentation provides more information on general external scheduler support. Also see the lsf_diff(1) manpage for information on the specific srun options available in the external LSF-SLURM scheduler.

Note

The SLURM external scheduler is a plug-in developed by Platform Computing Corporation for LSF-HPC; it is not actually part of SLURM. This plug-in communicates with SLURM to gather resource information and request allocations of nodes, but it is integrated with the LSF-HPC scheduler.

Overview of Job Submission 45