Examine the local host information:

$ hostname n2

Examine the job information:

$ bjobs

No unfinished job found

Run the LSF bsub -Iscommand to launch the interactive shell:

$ bsub -Is -n1 /bin/bash

Job <120> is submitted to default queue <normal>. <<Waiting for dispatch ...>>

<<Starting on lsfhost.localdomain>>

Note the output when hostname is again issued:

$ hostname n16

Note the FROM_HOST when bjobs is again issued:

$ bjobs

 

 

 

 

 

 

JOBID

USER

STAT

QUEUE

FROM_HOST

EXEC_HOST

JOB_NAME

SUBMIT_TIME

120

smith

RUN

normal

n2

lsfhost.loc

/bin/bash

date and time

Note the output when srun hostname is issued:

$ srun hostname n10

Exit from the shell:

$ exit exit

Running LSF-HPC Jobs with a SLURM Allocation Request

Example 1. Two cores on Any Two Nodes

This example submits a job that requests two cores on any two nodes, on an HP XC system that has three compute nodes.

Submit the job:

$ bsub -n2 -ext "SLURM[nodes=2]" -I srun hostname Job <8> is submitted to default queue <normal>. <<Waiting for dispatch ...>>

<<Starting on lsfhost.localdomain>> n13

n14

View the job:$ bjobs -l 8

Job <8>, User <smith>, Project <default>, Status <DONE>, Queue <normal>, Interactive mode, Extsched <SLURM[nodes=2]>, Command <srun hostname>

date and time stamp: Submitted from host <lsfhost.localdomain>, CWD <$HOME>, 2 Processors Requested;

date and time stamp: Started on 2 Hosts/Processors <2*lsfhost.localdomain>;

date and time stamp: slurm_id=24;ncpus=4;slurm_alloc=n[13-14];

date and time stamp: Done successfully. The CPU time used is 0.0 seconds.

100 Examples