- Home
- Research Computing
- High Performance Computing
- Ghpcc Scripts
GHPCC Scripts
Jobs can be submitted using the 'bsub' command, generally followed by the submission script redirected to stdin, i.e:
bsub < script.sh
Common command line options are included in the sample scripts. A full listing can be found in the man pages ('man bsub'). Status of queued or running jobs can be obtained via the 'bjobs' command.
Additional information on submitting jobs to the GHPCC cluster is available on the GHPCC wiki site at http://wiki.umassrc.org/wiki/index.php/Submitting_Cluster_Jobs.
The sample script is also available on the GHPCC at /project/umb_rc/training/sample/job.sh. You can copy it from there to your working directory.
#!/bin/bash
#
# Sample submission script for LSF job submission on the
# GHPCC cluster.
#
# Lines starting with '#' are comments in bash
# Lines starting with '#BSUB' are scheduler directives
# Lines starting with '##BSUB' are comments and not interpreted
# by the scheduler. Change to '#BSUB' to activate them.
#
# set the number of slots (cores) requested:
#BSUB -n 4
#
# specify the amount of memory needed, per core:
#BSUB -R rusage[mem=1024]
#
# include a span request if you need to limit to a single
# node (e.g. for shared memory jobs):
##BSUB -R span[hosts=1]
#
# Specify which queue to use:
#BSUB -q short
#
# Specify the wall time requested. Jobs that exceed this time
# will be terminated. In minutes, or [hour:]minute.
#BSUB -W 30
#
# Specify the filename for stderr (-e appends to file if exists,
# -eo overwrites):
#BSUB -e sample.%J.err
##BSUB -eo sample.err
#
# Specify the filename for stdout (-o appends to file if exists,
# -oo overwrites):
#BSUB -o sample.%J.out
##BSUB -oo sample.out
#
# Turn on email notification, -B when job is dispatched, -N when
# job is finished:
##BSUB -u first.last@umb.edu
##BSUB -B
##BSUB -N
#
# set the job name, or if desired, specify job array limits:
#BSUB -J sample
#
# Put your job commands here. Include any module commands or
# diagnostic echos needed.
#
module load openmpi/4.0.1
echo "this is a sample job on LSF"
echo "hostname is/are:"
mpiexec hostname
# this is not normally needed, but is included here for training
# purposes. Sleep for 2 minutes to allow job to remain in queue
# long enough to be seen.
sleep 120
Healey Library, Lower Level
UMass Boston
100 Morrissey Blvd.
Boston, MA 02125
Book a Consultation
617.287.5399
It-rc@umb.edu