-
Notifications
You must be signed in to change notification settings - Fork 0
/
SUBM_SIMULATION_H1-mE.slurm
27 lines (21 loc) · 1.52 KB
/
SUBM_SIMULATION_H1-mE.slurm
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
27
#!/bin/bash
#SBATCH --job-name=SIMULATION_H1-mE # Job name
#SBATCH --array=1-200 # Number of jobs
#SBATCH --partition=standard # Queue. Use long for run time >8h and standard otherwise
#SBATCH --mem=1G # Memory limit, e.g. reserve 1 GB memory
#SBATCH --output=output/SIMULATION_H1-mE/slurm-%x-%a-%J.out # Direct output to subdirectory
#SBATCH --error=output/SIMULATION_H1-mE/slurm-%x-%a-%J.out # Same file for output and error
R CMD BATCH --vanilla BATCH_SIMULATION_H1-mE.R output/SIMULATION_H1-mE/R-$SLURM_JOB_NAME-$SLURM_ARRAY_TASK_ID-$SLURM_JOB_ID.Rout
## go to directory ## cd p:/Cluster/GPC/Article-inference-Ustatistic-Rao/
## clean outputs ## rm -r ./output/SIMULATION_H1-mE/*
## clean results ## rm -r ./Results/SIMULATION_H1-mE/*
## submission command ## sbatch SUBM_SIMULATION_H1-mE.slurm
## submission output ## Submitted batch job 45419 (time using C-c t: 04/09/21 7:40 )
## commands ## squeue : view current jobs
## squeue -u id : view current jobs for user id
## scancel : delete the job with job id 1034 from the queue type
## sinfo : view state of the queues
## sshare : check own usage of the server
## documentation ## from SLURM: https://slurm.schedmd.com/pdfs/summary.pdf: key functions
## : https://slurm.schedmd.com/sbatch.html (filename pattern)
## from KU : https://hpc.ku.dk/documentation/slurm.html