beautypg.com

A.5 submitting a simple job script with lsf-hpc, Exit from the shell, Examine the finished job's information – HP XC System 3.x Software User Manual

Page 117: Show the environment

background image

date and time stamp: Submitted from host ,
to Queue , CWD <$HOME>,4 Processors Requested,
Requested Resources ;

date and time stamp: Dispatched to 4 Hosts/Processors
<4*lsfhost.localdomain>;
date and time stamp: slurm_id=22;ncpus=8;slurm_alloc=n[5-8];
date and time stamp: Starting (Pid 4785);

Summary of time in seconds spent in various states by date and time
PEND PSUSP RUN USUSP SSUSP UNKWN TOTAL
11 0 124 0 0 0 135

Exit from the shell:

$ exit
exit

Examine the finished job's information:

$ bhist -l 124
Job <124>, User , Project ,
Interactive pseudo-terminal shell mode,
Extsched , Command
date and time stamp: Submitted from host ,
to Queue , CWD <$HOME>,
4 Processors Requested, Requested Resources ;

date and time stamp: Dispatched to 4 Hosts/Processors
<4*lsfhost.localdomain>;
date and time stamp: slurm_id=22;ncpus=8;slurm_alloc=n[5-8];
date and time stamp: Starting (Pid 4785);
date and time stamp: Done successfully.
The CPU time used is 0.1 seconds;
date and time stamp: Post job process done successfully;

Summary of time in seconds spent in various states by date and time
PEND PSUSP RUN USUSP SSUSP UNKWN TOTAL
11 0 220 0 0 0 231

A.5 Submitting a Simple Job Script with LSF-HPC

This example submits a job script (myjobscript.sh) with the bsub -I option. Inside the script, there
are two srun commands. The first command displays the host name and second command displays
system information.
In this example, the run-time environment is first explored. Next, the contents of the myjobscript.sh
script is displayed. Then an example of a command to launch the script is shown. Finally, the resulting
output of the script is provided.

Show the environment:

$ lsid
Platform LSF HPC version number for SLURM, date and time stamp
Copyright 1992-2006 Platform Computing Corporation

My cluster name is penguin
My master name is lsfhost.localdomain

$ sinfo
PARTITION AVAIL TIMELIMIT NODES STATE NODELIST
lsf up infinite 4 alloc n[13-16]

Exit from the shell:

117