This page describes the translation of the most common commands and job options between MOAB/Torque and LSF. For more details on the LSF options and commands, see the LSF User Guides pages.
LSF vs MOAB/Torque commands
Queuing system | LSF | MOAB/Torque |
---|---|---|
Submit a job script | bsub < script_name Note the "<"! | qsub script_name |
Job status | bjobs | qstat |
Delete a job | bkill JOB_ID | qdel JOB_ID |
LSF vs MOAB/Torque options
Queuing system | LSF | MOAB/Torque |
---|---|---|
Directive sentinel | #BSUB | #PBS |
number of cores | -n <#cores> | -l nodes=<#n>:ppn=<#c> total number of #cores = #n*#c |
core distribution: multiple nodes, e.g. for MPI | -R "span[ptile=m]" places m cores per node - number of nodes given by #cores/m | -l nodes=<#n>:ppn=<#c> #c cores on #n nodes |
core distribution: single node, e.g. for OpenMP | -R "span[hosts=1]" places all cores on a single node | -l nodes=1:ppn=<#cores> |
Wallclock limit | -W hh:mm (mandatory option) | -l walltime=hh:mm:ss |
Memory requirements: | -R "rusage[mem=xGB]" x is the memory per core! (mandatory option) | -l mem=Ygb Y is the total memory of the job |
Queue | -q queue_name | -q queue_name |
E-mail notification: - when a job starts: - at the end of the job: | -B -N | -m b -m e |
E-mail address | -u email_address | -M email_address |
job initial directory | default: submission directory | default: $HOME |
change to submission directory | not needed | cd $PBS_O_WORKDIR |
Job name | -J job_name (mandatory option) | -N job_name |
STDOUT | -o file_name (mandatory option) | -o file_name |
STDERR | -e file_name | -e file_name |
STDOUT & STDERR to the same file | use -o without -e | -j oe (both to STDOUT) -j eo (both to STDERR) |
Job ID variable | $LSB_JOBID | $PBS_JOBID |
Job name variable | $LSB_JOBNAME | $PBS_JOBNAME |
Pass on variable(s) to job script | -env VAR1=value1,VAR2=value2 | -v VAR1=value1,VAR2=value2 |