.. role:: raw-html(raw)
:format: html
.. _Antwerp Slurm_convert_from_PBS:
Converting PBS/Torque options to Slurm
======================================
**This is preliminary documentation for the pilot users. It will be further refined as the pilot progresses.**
See also the `Slurm Rosetta Stone of Workload Managers (PDF document) `_.
Common tasks in Torque/Moab and Slurm
-------------------------------------
========================================== ================== =======================
Task Torque/Moab Slurm equivalent
========================================== ================== =======================
Submit a job qsub sbatch
Cancel a job qdel scancel
List jobs in the queue qstat, showq squeue
========================================== ================== =======================
#PBS / qsub command line options
--------------------------------
When specified in a Torque job script, the line specifying the option should start with ``#PBS``.
In Slurm, such lines start with ``#SBATCH``.
=================================== =====================
PBS/Torque Slurm equivalent
=================================== =====================
-L tasks=\ ****:lprocs=\ **** --ntasks=\ **** --cpus-per-task=\ ****
-l walltime=\ **