-
Notifications
You must be signed in to change notification settings - Fork 356
[WIP] Update Cambridge config for current CSD3 partitions #1102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
RaqManzano
merged 12 commits into
nf-core:master
from
RaqManzano:update-cambridge-config
May 5, 2026
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
3439f0b
Update Cambridge config for current CSD3 partitions
RaqManzano 26327a3
Add Cambridge profile owner to CODEOWNERS
RaqManzano 65f2465
Modified Cambridge resource selection to a partition map and refined …
RaqManzano 5528e15
Added Cambridge module setup and SLURM executor tuning
RaqManzano d4ce305
prettier
RaqManzano f1eb218
Update Cambridge docs to use scratch paths
RaqManzano 47b2a78
Refined Cambridge beforeScript logic and polished partition documenta…
RaqManzano 31cc0df
Update docs/cambridge.md
RaqManzano aa15fe2
Updated Cambridge documentation
RaqManzano 88790b5
Refine Cambridge config defaults and expand runtime documentation
RaqManzano b8ab4c9
Merge branch 'master' into update-cambridge-config
RaqManzano 9325477
Merge branch 'master' into update-cambridge-config
RaqManzano File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,28 +1,73 @@ | ||
| // Description is overwritten with user specific flags | ||
| // nf-core/configs: Cambridge CSD3 cluster profile | ||
| // Available partitions: | ||
| // - icelake : 76 CPUs, 256 GB RAM | ||
| // - icelake-himem : 76 CPUs, 512 GB RAM | ||
| // - sapphire : 112 CPUs, 512 GB RAM | ||
| // | ||
| // The profile defaults to the broadly available `icelake` partition but allows | ||
| // users to override it with `--partition`. Walltime is inferred from the SLURM | ||
| // account name when possible: projects containing `-SL3-` use a 12 h cap, | ||
| // otherwise the profile assumes the common SL1/SL2 36 h limit. | ||
|
|
||
| params { | ||
| config_profile_description = 'Cambridge HPC cluster profile.' | ||
| // FIXME EmelineFavreau was the last to edit this | ||
| config_profile_contact = 'Andries van Tonder (ajv37@cam.ac.uk)' | ||
| config_profile_url = "https://docs.hpc.cam.ac.uk/hpc" | ||
| partition = null | ||
| project = null | ||
| max_memory = 192.GB | ||
| max_cpus = 56 | ||
| max_time = 12.h | ||
| config_profile_description = 'Cambridge HPC CSD3 cluster profile.' | ||
| config_profile_contact = 'Raquel Manzano (rm889@cam.ac.uk) and Andries van Tonder (ajv37@cam.ac.uk)' | ||
| config_profile_url = 'https://docs.hpc.cam.ac.uk/hpc' | ||
|
|
||
| partition = 'icelake' | ||
| project = null | ||
|
|
||
| // Compatibility with nf-core schema validation across pipeline versions. | ||
| schema_ignore_params = 'partition,project,max_memory,max_cpus,max_time,validationSchemaIgnoreParams' | ||
| validationSchemaIgnoreParams = 'partition,project,max_memory,max_cpus,max_time,schema_ignore_params,validationSchemaIgnoreParams' | ||
| } | ||
|
|
||
| // Description is overwritten with user specific flags | ||
| validation { | ||
| ignoreParams = ['partition', 'project', 'max_memory', 'max_cpus', 'max_time', 'schema_ignore_params', 'validationSchemaIgnoreParams'] | ||
| } | ||
|
|
||
| params.max_memory = { | ||
| if (params.partition == 'icelake') { | ||
| return 256.GB // this is a whole node | ||
| } | ||
| if (params.partition == 'icelake-himem' || params.partition == 'sapphire') { | ||
| return 512.GB // this is a whole node | ||
| } | ||
|
|
||
| System.err.println("ERROR: cambridge params.partition must be one of 'icelake', 'icelake-himem', or 'sapphire' (got '${params.partition}').") | ||
| System.exit(1) | ||
| }.call() | ||
|
|
||
| params.max_cpus = { | ||
| if (params.partition == 'sapphire') { | ||
| return 112 | ||
| } | ||
| if (params.partition == 'icelake' || params.partition == 'icelake-himem') { | ||
| return 76 | ||
| } | ||
|
|
||
| System.err.println("ERROR: cambridge params.partition must be one of 'icelake', 'icelake-himem', or 'sapphire' (got '${params.partition}').") | ||
| System.exit(1) | ||
| }.call() | ||
|
|
||
| params.max_time = { | ||
| def project_name = params.project?.toUpperCase() | ||
| return project_name?.contains('-SL3-') ? 12.h : 36.h | ||
| }.call() | ||
|
|
||
| singularity { | ||
| enabled = true | ||
| autoMounts = true | ||
| } | ||
|
|
||
| process { | ||
| resourceLimits = [ | ||
| memory: 192.GB, | ||
| cpus: 56, | ||
| time: 12.h | ||
| memory: params.max_memory, | ||
| cpus: params.max_cpus, | ||
| time: params.max_time | ||
| ] | ||
|
|
||
| executor = 'slurm' | ||
| clusterOptions = "-A ${params.project} -p ${params.partition}" | ||
| queue = params.partition | ||
| clusterOptions = { params.project ? "--account=${params.project}" : '' } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.