Quentin Duvert
02/16/2026, 1:20 PM--mem or --mem-per-cpu), this plugin may be exactly what you've been missing. Many clusters enforce a fixed memory-per-CPU ratio, and this plugin restores the ability for Nextflow to adapt automatically by computing the optimal CPU count for each process.
Just add it to your config, set the executor to slurm_no_memory, and Nextflow will dynamically calculate the required CPUs based on the process memory request and the clusterโs memory-per-CPU policy (default: 4 GB/CPU).
plugins {
id 'nf-slurm-no-memory@1.0.0'
}Adam Talbot
02/16/2026, 3:13 PMexecutor.perCpuMemAllocation option?Adam Talbot
02/16/2026, 3:17 PMQuentin Duvert
02/16/2026, 3:17 PM--mem-per-cpu option is available, but on some clusters, it is impossible to use the --mem* options.Adam Talbot
02/16/2026, 3:19 PMQuentin Duvert
02/16/2026, 3:22 PMMaxime Garcia
02/17/2026, 8:24 AMPhil Ewels
02/17/2026, 8:09 PMPhil Ewels
02/17/2026, 8:09 PMwithName: '.*' { memory = null }Quentin Duvert
02/18/2026, 9:07 AM