-
Notifications
You must be signed in to change notification settings - Fork 271
/
imperial.config
113 lines (97 loc) · 3.26 KB
/
imperial.config
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
//Profile config names for nf-core/configs
params {
// Config Params
config_profile_description = 'Imperial College London - HPC Profile -- provided by nf-core/configs.'
config_profile_contact = 'Nurun Fancy (@nfancy)'
config_profile_url = 'https://www.imperial.ac.uk/admin-services/ict/self-service/research-support/rcs/'
// Resources
max_memory = 920.GB
max_cpus = 256
max_time = 1000.h
}
process {
resourceLimits = [
memory: 920.GB,
cpus: 256,
time: 1000.h
]
}
profiles {
imperial {
process {
executor = 'pbspro'
// Update amount of max retries and set "retry" as the error strategy for all error codes
errorStrategy = 'retry'
maxRetries = 5
maxErrors = '-1'
// General resource requirements
cpus = { 1 * task.attempt }
memory = { 6.GB * task.attempt }
time = { 4.h * task.attempt }
// Process-specific resource requirements
withLabel: process_single {
cpus = 1
memory = { 6.GB * task.attempt }
time = { 4.h * task.attempt }
}
withLabel: process_low {
cpus = { 2 * task.attempt }
memory = { 48.GB * task.attempt }
time = { 8.h * task.attempt }
}
withLabel: process_medium {
cpus = { 8 * task.attempt }
memory = { 64.GB * task.attempt }
time = { 12.h * task.attempt }
}
withLabel: process_high {
cpus = { 12 * task.attempt }
memory = { 120.GB * task.attempt }
time = { 12.h * task.attempt }
}
withLabel: process_long {
cpus = 9
memory = 100.GB
time = { 24.h * task.attempt }
}
withLabel: process_high_memory {
cpus = { 10 * task.attempt }
memory = { 200.GB * task.attempt }
time = { 24.h * task.attempt }
}
withLabel: with_gpus {
time = 24.h
clusterOptions = '-l select=1:ncpus=4:mem=24gb:ngpus=1:gpu_type=RTX6000'
maxForks = 1
containerOptions = {
workflow.containerEngine == "singularity"
? '--nv --env CUDA_VISIBLE_DEVICES=$CUDA_VISIBLE_DEVICES'
: (workflow.containerEngine == "docker" ? '--gpus all' : null)
}
beforeScript = 'module load tools/prod'
}
}
}
medbio {
process {
executor = 'pbspro'
}
}
}
executor {
'$pbspro' {
queueSize = 49
submitRateLimit = '10 sec'
maxForks = 49
}
'$local' {
cpus = 2
queueSize = 1
memory = '6 GB'
}
}
singularity {
enabled = true
autoMounts = true
runOptions = "-B /rds/,/rds/general/user/${USER}/ephemeral/tmp/:/tmp,/rds/general/user/${USER}/ephemeral/tmp/:/var/tmp"
}