Torque-slurm-sge

Torque - SLURM Queuing System Conversions

Commands

User Command PBS/Torque Slurm SGE
Job submission qsub script_file sbatch script_file qsub script_file
Job deletion qdel job_id scancel job_id qdel job_id
Job status (by job) qstat job_id squeue job_id qstat -u \* -j job_id
Job status (by user) qstat -u user_name squeue -u user_name qstat -u user_name
Job hold qhold job_id scontrol hold job_id qhold job_id
Job release qrls job_id scontrol release job_id qrls job_id
Queue list qstat -Q squeue qconf -sql
Node list pbsnodes -l sinfo -N OR scontrol show nodes qhost
Cluster status qstat -a sinfo qhost -q
GUI xpbsmon sview qmon

Environment

Environment PBS/Torque Slurm SGE
Job ID $PBS_JOBID $SLURM_JOBID $JOB_ID
Submit Directory $PBS_O_WORKDIR $SLURM_SUBMIT_DIR $SGE_O_WORKDIR
Submit Host $SLURM_SUBMIT_HOST $SLURM_SUBMIT_HOST $SGE_O_HOST
Node List $PBS_NODEFILE $SLURM_JOB_NODELIST $PE_HOSTFILE
Job Array Index $PBS_ARRAYID $SLURM_ARRAY_TASK_ID $SGE_TASK_ID

Job submission directives

Job Specification PBS/Torque Slurm SGE
Script directive #PBS #SBATCH #$
Queue -q queue -p partition -q queue
Node Count -l nodes=count -N min[-max] N/A
CPU Count -l ppn=count OR -l mppwidth=PE_count -n count -pe PE count
Wall Clock Limit -l walltime=hh:mm:ss -t min OR -t days-hh:mm:ss -l h_rt=seconds
Standard Output FIle -o file_name -o file_name -o file_name
Standard Error File -e file_name -e file_name -e file_name
Combine stdout/err -j oe (both to stdout) OR -j eo (both to stderr) (use -o without -e) -j yes
Copy Environment -V --export=[ALL | NONE | variables] -V
Variables -v ... --export=variable[=value] -v ...
Event Notification -m abe --mail-type=events -m abe
Email Address -M address --mail-user=address -M address
Job Name -N name --job-name=name -N name
Job Restart -r [y|n] --requeue OR --no-requeue (NOTE: configurable default) -r [yes|no]
Working Directory N/A --workdir=dir_name -wd directory
Resource Sharing -l naccesspolicy=singlejob --exclusive OR--shared -l exclusive
Memory Size -l mem=MB --mem=mem[M|G|T] OR --mem-per-cpu= mem[M|G|T] -l mem_free=memory[K|M|G]
Account to charge -W group_list=account --account=account -A account
Tasks Per Node -l mppnppn PEs_per_node --tasks-per-node=count (Fixed allocation_rule in PE)
CPUs Per Task --cpus-per-task=count
Job Dependency -d job_id --depend=state:job_id -hold_jid [job_id | job_name
Job Project --wckey=name -P name
Job host preference --nodelist=nodes AND/OR --exclude=nodes -q queue@node OR -q queue@@hostgroup
Quality Of Service -l qos=name --qos=name
Job Arrays -t array_spec --array=array_spec -t array_spec
Feature Request -l feature --constraint=feature -l feature=value
Generic Resources -l other=resource_spec --gres=resource_spec -l resource=value
Licenses --licenses=license_spec -l license=count
Begin Time -A "YYYY-MM-DD HH:MM:SS" --begin=YYYY-MM-DD[THH:MM[:SS]] -a [YYMMDDhhmm]
Page last modified on February 05, 2021, at 02:53 PM
Powered by PmWiki