2021-11-02 08:15:01 +00:00
|
|
|
// UPPMAX Config Profile
|
2019-01-04 15:33:54 +00:00
|
|
|
params {
|
2021-11-02 12:32:19 +00:00
|
|
|
// Description is overwritten for other clusters below
|
|
|
|
config_profile_description = 'UPPMAX (Bianca) cluster profile provided by nf-core/configs.'
|
2019-01-04 15:33:54 +00:00
|
|
|
config_profile_contact = 'Phil Ewels (@ewels)'
|
|
|
|
config_profile_url = 'https://www.uppmax.uu.se/'
|
2021-03-26 14:20:32 +00:00
|
|
|
project = null
|
|
|
|
clusterOptions = null
|
2021-03-26 14:22:57 +00:00
|
|
|
schema_ignore_params = "genomes,input_paths,cluster-options,clusterOptions,project"
|
2021-11-02 08:15:01 +00:00
|
|
|
save_reference = true
|
2021-11-02 12:32:19 +00:00
|
|
|
// Defaults set for Bianca - other clusters set below
|
2021-11-02 08:15:01 +00:00
|
|
|
max_memory = 500.GB
|
|
|
|
max_cpus = 16
|
|
|
|
max_time = 240.h
|
|
|
|
// illumina iGenomes reference file paths on UPPMAX
|
|
|
|
igenomes_base = '/sw/data/igenomes/'
|
2019-01-04 15:33:54 +00:00
|
|
|
}
|
|
|
|
|
2018-11-23 15:56:34 +00:00
|
|
|
singularity {
|
|
|
|
enabled = true
|
2021-10-07 14:05:03 +00:00
|
|
|
envWhitelist = 'SNIC_TMP'
|
2018-11-23 15:56:34 +00:00
|
|
|
}
|
|
|
|
|
2021-04-08 07:49:42 +00:00
|
|
|
def hostname = "r1"
|
|
|
|
try {
|
2021-11-02 08:15:01 +00:00
|
|
|
hostname = "sinfo --local -N -h | grep -m 1 -F -v CLUSTER: | cut -f1 -d' ' ".execute().text.trim()
|
2021-04-08 07:49:42 +00:00
|
|
|
} catch (java.io.IOException e) {
|
|
|
|
System.err.println("WARNING: Could not run sinfo to determine current cluster, defaulting to rackham")
|
|
|
|
}
|
2021-04-07 15:07:49 +00:00
|
|
|
|
2021-04-08 07:45:29 +00:00
|
|
|
// closure to create a suitable clusterOptions
|
|
|
|
def clusterOptionsCreator = { m ->
|
|
|
|
String base = "-A $params.project ${params.clusterOptions ?: ''}"
|
|
|
|
// Do not use -p node on irma or if a thin node/core is enough
|
2021-11-02 08:15:01 +00:00
|
|
|
if (m <= 125.GB || hostname.startsWith("i")) {
|
2021-04-08 07:45:29 +00:00
|
|
|
return base
|
|
|
|
}
|
2021-04-07 15:07:49 +00:00
|
|
|
|
2022-03-23 14:29:40 +00:00
|
|
|
// cluster is miarka
|
|
|
|
if (hostname.startsWith("m")) {
|
|
|
|
// job will fit on a regular node
|
|
|
|
if (m <= 357.GB) {
|
|
|
|
return base
|
|
|
|
}
|
|
|
|
// job requires at least a 2TB node
|
|
|
|
if (m <= 2000.GB) {
|
|
|
|
return base + " --mem 2TB "
|
|
|
|
}
|
|
|
|
// job requires the largest node
|
2022-03-24 13:25:43 +00:00
|
|
|
return base + " -C mem4TB "
|
2022-03-23 14:29:40 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 06:55:52 +00:00
|
|
|
if (m <= 250.GB) {
|
2021-04-08 07:45:29 +00:00
|
|
|
return base + " -p node -C mem256GB "
|
|
|
|
}
|
2021-04-07 15:07:49 +00:00
|
|
|
|
2021-04-12 17:34:28 +00:00
|
|
|
|
|
|
|
// Use mem1TB for remaining cases on rackham (no 512 Gbyte nodes)
|
2021-11-02 08:15:01 +00:00
|
|
|
if (hostname.startsWith("r")) {
|
2021-04-08 07:45:29 +00:00
|
|
|
return base + " -p node -C mem1TB "
|
|
|
|
}
|
2021-04-12 17:34:28 +00:00
|
|
|
|
|
|
|
if (m > 500.GB) {
|
|
|
|
// Special case for snowy very fat node (only remaining case that's above 500 GB)
|
|
|
|
return base + " -p veryfat "
|
|
|
|
}
|
|
|
|
|
|
|
|
// Should only be cases for mem512GB left (snowy and bianca)
|
2021-04-08 07:45:29 +00:00
|
|
|
return base + " -p node -C mem512GB "
|
|
|
|
}
|
|
|
|
|
2018-11-23 15:56:34 +00:00
|
|
|
process {
|
|
|
|
executor = 'slurm'
|
2021-04-07 15:07:49 +00:00
|
|
|
clusterOptions = { clusterOptionsCreator(task.memory) }
|
2021-10-07 14:05:03 +00:00
|
|
|
// Use node local storage for execution.
|
|
|
|
scratch = '$SNIC_TMP'
|
2018-11-23 15:56:34 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 12:32:19 +00:00
|
|
|
// Cluster: Snowy
|
|
|
|
// Caution: Bianca nodes will be project name-nodenumber, e.g. sens2021500-001
|
|
|
|
// so cannot rely on just starting with 's'
|
2021-11-02 22:55:27 +00:00
|
|
|
if (hostname.matches("^s[0-9][0-9]*")) {
|
2021-04-07 15:07:49 +00:00
|
|
|
params.max_time = 700.h
|
2021-04-12 17:34:28 +00:00
|
|
|
params.max_memory = 3880.GB
|
2021-11-02 08:15:01 +00:00
|
|
|
params.config_profile_description = 'UPPMAX (Snowy) cluster profile provided by nf-core/configs.'
|
2019-12-05 11:45:30 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 12:32:19 +00:00
|
|
|
// Cluster: Irma
|
2021-11-02 08:15:01 +00:00
|
|
|
if (hostname.startsWith("i")) {
|
2019-12-05 11:41:18 +00:00
|
|
|
params.max_memory = 250.GB
|
2021-11-02 08:15:01 +00:00
|
|
|
params.config_profile_description = 'UPPMAX (Irma) cluster profile provided by nf-core/configs.'
|
2019-12-05 11:41:18 +00:00
|
|
|
}
|
|
|
|
|
2022-03-23 14:29:40 +00:00
|
|
|
// Cluster: Miarka
|
|
|
|
if (hostname.startsWith("m")) {
|
|
|
|
params.max_memory = 357.GB
|
|
|
|
params.max_cpus = 48
|
|
|
|
params.max_time = 480.h
|
|
|
|
params.config_profile_description = 'UPPMAX (Miarka) cluster profile provided by nf-core/configs.'
|
|
|
|
}
|
|
|
|
|
2021-11-02 12:32:19 +00:00
|
|
|
// Cluster: Rackham
|
2021-11-02 08:15:01 +00:00
|
|
|
if (hostname.startsWith("r")) {
|
2019-12-05 14:18:01 +00:00
|
|
|
params.max_cpus = 20
|
2021-04-12 17:21:58 +00:00
|
|
|
params.max_memory = 970.GB
|
2021-11-02 12:32:19 +00:00
|
|
|
params.config_profile_description = 'UPPMAX (Rackham) cluster profile provided by nf-core/configs.'
|
2019-12-05 14:18:01 +00:00
|
|
|
}
|
|
|
|
|
2021-11-02 12:32:19 +00:00
|
|
|
// Cluster: Bianca - set in initial params block above
|
|
|
|
|
|
|
|
// Additional devel profile for running in devel queue
|
|
|
|
// Run with `-profile upppmax,devel`
|
2019-12-05 10:49:44 +00:00
|
|
|
profiles {
|
|
|
|
devel {
|
|
|
|
params {
|
|
|
|
config_profile_description = 'Testing & development profile for UPPMAX, provided by nf-core/configs.'
|
|
|
|
// Max resources to be requested by a devel job
|
|
|
|
max_memory = 120.GB
|
|
|
|
max_time = 1.h
|
|
|
|
}
|
|
|
|
executor.queueSize = 1
|
|
|
|
process.queue = 'devel'
|
|
|
|
}
|
2019-12-06 09:31:56 +00:00
|
|
|
}
|