User Tools

Site Tools


torque_tutorial

This is an old revision of the document!


Overview

Jobs on Hopper execute on one or more “compute” nodes dedicated to that job. These nodes are distinct from the shared “login” nodes that host interactive sessions. Typically, users write the batch script with a text editor and submit it to the system using the “qsub” command. The batch script contains a number of job control directives and also the “aprun” command that actually runs the program in parallel on the compute nodes.

Batch Jobs

Sample Batch Script

#PBS -q regular
#PBS -l mppwidth=48
#PBS -l walltime=00:10:00
#PBS -N jobname

cd $PBS_O_WORKDIR
aprun -n 48 ./my_executable

http://www.nersc.gov/users/computational-systems/hopper/running-jobs/batch-jobs/

Submit a Batch Script

$ qsub mybatchscript

Check the Progress of a Job

$ qstat -u username
torque_tutorial.1441993876.txt.gz · Last modified: 2022/07/21 06:59 (external edit)