transition.rst 1.29 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
.. _slurm_transition:

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

=================================================   =====
Torque                                              Slurm
=================================================   =====
**Submit**
---------------------------------------------------------
``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``
-------------------------------------------------   -----
**Query**
---------------------------------------------------------
``qstat``                                           ``squeue``
``qstat -r``                                        ``squeue -u $USER --states R``
``qstat -q``                                        ``sinfo -s``
-------------------------------------------------   -----
**Manage**
---------------------------------------------------------
``qdel 1234``                                       ``scancel 1234``
``qdel all``                                        ``scancel -u $USER``
``qalter -l walltime=1:0:0 1234``                   ``scontrol update jobid=1234 TimeLimit=1:0:0``
=================================================   =====