transition.rst 1.32 KB
Newer Older
1
2
3
4
5
.. _slurm_transition:

Torque Transition Table
-----------------------

6
7
8
===================================================   =====
Torque                                                Slurm
===================================================   =====
9
**Submit**
10
11
12
13
14
-----------------------------------------------------------
``qsub job.pbs``                                      ``sbatch job.sh``
``echo "Rscript foo.R" | qsub``                       ``sbatch --wrap "Rscript foo.R"``
``qsub -I -q testing``                                ``srun -p test --pty /bin/bash``
---------------------------------------------------   -----
15
**Query**
16
17
18
19
20
-----------------------------------------------------------
``qstat``                                             ``squeue``
``qstat -r``                                          ``squeue -u $USER --states R``
``qstat -q``                                          ``sinfo -s``
---------------------------------------------------   -----
21
**Manage**
22
23
24
25
26
-----------------------------------------------------------
``qdel 1234``                                         ``scancel 1234``
``qdel all``                                          ``scancel -u $USER``
``qalter -l walltime=24:0:0 1234``                    ``scontrol update jobid=1234 TimeLimit=24:0:0``
===================================================   =====