====== Commands ====== \\ ===== Common Commands ===== - slurm (introduction) - launching jobs: **salloc** (resource reservation for jobs) && **srun** (jobs and job steps running tasks) - batch jobs: **sbatch** (batch jobs to queue) - **scancel** (signal/stop running jobs) - **sstat** (infos wrt. running jobs) - **squeue** (show queues) - sinfo (show node infos) ==== STUBL Tools ==== - snodes (list node features; wrapper for sinfo) - sqstat (list job queues and cluster status information) \\ ===== Manpages ===== * ''man 1 sbatch'' * ''man 1 srun'' * ''man 1 salloc'' * ''man 1 scancel'' * ''man 1 squeue'' * ''man 1 sinfo'' \\ ===== Important switches for sbatch/srun/salloc ===== - ''-a '' job array with index range, e.g. ''-a 0,1,4-6'' or ''-a 0-8:2'' (environment variables available: **SLURM_ARRAY_TASK_ID**, **SLURM_ARRAY_JOB_ID**, **SLURM_ARRAY_TASK_COUNT** etc.) - '' -d '' define dependencies on other jobs (dependency_list: **after:job_id[:job_id]** or **afterok:job_id[:job_id]** and so on) - --''begin='' (absolute/relative) start time of job (see ''man 1 sbatch'') - --''deadline='' job only scheduled as long as it finishes before deadline - --''mem='' amount of **virtual memory per node** to allocate, e.g. 1G (1 Gibibyte) - ''-t