PBS to Slurm Command tables
User Commands | PBS | Slurm |
Job Submission | qsub [script_file] | sbatch [script_file] |
Job Deletion | qdel [job_id] | scancel [job_id] |
Jobs Status (by Job) | qstat [job_id] | squeue [job_id] |
Job Status (by user) | qstat -u [user_name] | squeue -u [user_name] |
Job Deletion by user (all) | qdel `qselect -u [user_name]` | scancel -u [user_name] |
Job Hold | qhold [job_id] | scontrol hold [job-id] |
Job Release | qrls [job_id] | scontrol release [job_id] |
Queue list | qstat -Q | squeue |
Node list | pbsnodes -l | sinfo -N |
Cluster status | qstat -a | sinfo |
Environment | PBS | Slurm |
Job ID | $PBS_JOBID | $SLURM_JOBID |
Submit Directory | $PBS_O_WORKDIR | $SLURM_SUBMIT_DIR |
Submit Host | $PBS_O_HOST | $SLURM_SUBMIT_HOST |
Node List | $PBS_NODEFILE | $SLURM_JOB_NODELIST |
Job Array Index | $PBS_ARRAYID | $SLURM_ARRAY_TASK_ID |
Job Specification | PBS | Slurm |
Script directive | #PBS | #SBATCH |
Queue | -q [queue] | -p [queue] |
Node Count | -l nodes=[count] | -N [min[-max]] |
CPU Count | -l ppn=[count]
OR -l mppwidth=[PE_count] |
-c [count] |
Wall Clock Limit | -l walltime=[hh:mm:ss] | -t [min]
OR -t [days-hh:mm:ss] |
Standard Output File | -o [file_name] | -o [file_name] |
Standard Error File | -e [file_name] | -e [file_name] |
Combine std out/er | -j oe (both to stdout)
OR -j eo (both to stderr) |
(use -o without -e) |
Copy Environment | -V | –export=[ALL | NONE | variables] |
Event Notification | -m abe | –mail-type=[events] |
Email Address | -M [address] | –mail-user=[address] |
Job Name | -N [name] | –job-name=[name] |
Job Restart | -r [y|n] | –requeue
OR –no-requeue (NOTE:configurable default) |
Working Directory | N/A | –workdir=[dir_name] |
Memory Size | -l mem=[MB] | –mem=[mem][M|G|T]
OR –mem-per-cpu=[mem][M|G|T] |