-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathRbatch.sh
executable file
·54 lines (35 loc) · 1.29 KB
/
Rbatch.sh
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash
##################
#### Slurm preamble
#### #### #### These are the most frequently changing options
#### Job name
#SBATCH --job-name=Rbatch
#### Request resources here
#### These are typically, number of processors, amount of memory,
#### an the amount of time a job requires. May include processor
#### type, too.
#SBATCH --nodes=1
#SBATCH --ntasks-per-node=1
#SBATCH --cpus-per-task=1
#SBATCH --mem-per-cpu=1000m
#SBATCH --time=10:00
#### Slurm account and partition specification here
#### These will change if you work on multiple projects, or need
#### special hardware, like large memory nodes or GPUs.
#SBATCH --account=test
#SBATCH --partition=standard
#### #### #### These are the least frequently changing options
#### Your e-mail address and when you want e-mail
#SBATCH --mail-user=
#SBATCH --mail-type=BEGIN,END
# Add a note here to say what software modules should be loaded.
# for this job to run successfully.
# It will be convenient if you give the actual load command(s), e.g.,
#
# module load R
#### End Slurm preamble
##################
#### Commands your job should run follow this line
echo "Running from $(pwd)"
R CMD BATCH --no-restore --no-save --quiet Rbatch.R Rbatch.out
## If you copied any files to /tmp, make sure you delete them here!