Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions conf/sanger.config
Original file line number Diff line number Diff line change
Expand Up @@ -16,43 +16,6 @@ process {
// Set low values as defaults to have a default value
cpus = 1
memory = 6.Gb

// Currently a single set of rules for all clusters, but we could apply
// different rules to different clusters in their respective configs under ./sanger/
queue = {
if (task.time >= 15.day) {
if (task.memory > 680.GB) {
error "There is no queue for jobs that need >680 GB and >15 days"
} else {
return "basement"
}
} else if (task.memory > 720.GB) {
return "teramem"
} else if (task.memory > 350.GB) {
return "hugemem"
} else if (task.time > 7.day) {
return "basement"
} else if (task.time > 2.day) {
return "week"
} else if (task.time > 12.hour) {
return "long"
} else if (task.time > 1.min || !task.time) {
return "normal"
} else {
return "small"
}
}

withLabel: gpu {
clusterOptions = {
"-M "+task.memory.toMega()+" -R 'select[mem>="+task.memory.toMega()+"] rusage[mem="+task.memory.toMega()+"] span[ptile=1]' -gpu 'num=1:j_exclusive=yes'"
}
queue = { task.time > 12.h ? 'gpu-huge' : task.time > 48.h ? 'gpu-basement' : 'gpu-normal' }
containerOptions = {
workflow.containerEngine == "singularity" ? '--containall --cleanenv --nv':
( workflow.containerEngine == "docker" ? '--gpus all': null )
}
}
}

// Executor details
Expand Down
29 changes: 27 additions & 2 deletions conf/sanger/farm22.config
Original file line number Diff line number Diff line change
@@ -1,17 +1,42 @@
// farm22 cluster at Wellcome Sanger Institute

params {
max_memory = 2.9.TB
max_memory = 3.8.TB
max_cpus = 256
max_time = 43200.min // 30 days
}

process {
resourceLimits = [
memory: 2.9.TB,
memory: 3.8.TB,
cpus: 256,
time: 43200.min
]

queue = {
if (task.memory > 350.GB) {
return "hugemem"
} else if (task.time > 7.day) {
return "basement"
} else if (task.time > 2.day) {
return "week"
} else if (task.time > 12.hour) {
return "long"
} else {
return "normal"
}
}

withLabel: gpu {
clusterOptions = {
"-M "+task.memory.toMega()+" -R 'select[mem>="+task.memory.toMega()+"] rusage[mem="+task.memory.toMega()+"] span[ptile=1]' -gpu 'num=1:j_exclusive=yes'"
}
queue = { task.time > 7.d ? 'gpu-basement' : 'gpu' }
containerOptions = {
workflow.containerEngine == "singularity" ? '--containall --cleanenv --nv':
( workflow.containerEngine == "docker" ? '--gpus all': null )
}
}
}

singularity {
Expand Down
25 changes: 25 additions & 0 deletions conf/sanger/tol22.config
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// tol22 cluster at Wellcome Sanger Institute
// As opposite to the default farm22 settings, we don't mount any filesystem by default.
// Pipelines that need to see certain filesystems have to set singularity.runOptions themselves
// The queues also slightly differ.

params {
max_memory = 1.4.TB
Expand All @@ -14,4 +15,28 @@ process {
cpus: 64,
time: 89280.min
]

queue = {
if (task.time >= 15.day) {
if (task.memory > 680.GB) {
error "There is no queue for jobs that need >680 GB and >15 days"
} else {
return "basement"
}
} else if (task.memory > 720.GB) {
return "teramem"
} else if (task.memory > 350.GB) {
return "hugemem"
} else if (task.time > 7.day) {
return "basement"
} else if (task.time > 2.day) {
return "week"
} else if (task.time > 12.hour) {
return "long"
} else if (task.time > 1.min || !task.time) {
return "normal"
} else {
return "small"
}
}
}
Loading