Skip to content
This repository has been archived by the owner on Jan 27, 2020. It is now read-only.

returnMin() always returns with the total memory #473

Closed
szilvajuhos opened this issue Oct 5, 2017 · 0 comments
Closed

returnMin() always returns with the total memory #473

szilvajuhos opened this issue Oct 5, 2017 · 0 comments
Assignees
Labels
Milestone

Comments

@szilvajuhos
Copy link
Collaborator

Seems returnMin() in nextflow.config is expecting integers:

szilva@galatea ~/dev/forkCAW $ nextflow run test.nf 
N E X T F L O W  ~  version 0.25.6
Launching `test.nf` [prickly_euclid] - revision: 9c68f25573
cat tesERROR ~ No signature of method: returnMin() is applicable for argument types: (nextflow.util.MemoryUnit, nextflow.util.MemoryUnit) values: [16 GB, 104 GB]

 -- Check script 'test.nf' at line: 1 or see '.nextflow.log' file for more details
szilva@galatea ~/dev/forkCAW $ cat test.nf 
println returnMin(params.singleCPUMem * 2 , params.totalMemory)

, so it is always returning with the total memory. Therefore all the memory is assigned to all the time to single processes.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants