Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
deep_genome
cedalion
Commits
34c81070
Commit
34c81070
authored
Nov 13, 2017
by
timdiels
Browse files
Fix h_vmem: requested total instead of per cpu
meaning we requested $cpus times as much as necessary.
parent
1d5a3820
Changes
1
Hide whitespace changes
Inline
Side-by-side
nextflow.config
View file @
34c81070
...
...
@@ -73,11 +73,15 @@ process.time = '5m'
//
Default
cluster
options
(
change
this
if
you
use
an
executor
other
than
sge
//
or
local
)
//
Note
:
requesting
h_stack
avoids
http
://
www
.
parallelpython
.
com
/
component
/
option
,
com_smf
/
Itemid
,
1
/
topic
,
395
.
0
/
wap2
,
wap2
String
h_vmem
(
def
memory
) {
memory
=
memory
?.
toMega
()
memory
?
"-l h_vmem=${memory}M"
:
""
String
h_vmem
(
def
task
) {
def
memory
=
task
.
memory
?.
toMega
()
if
(!
memory
) {
return
""
}
memory
/=
task
.
cpus
?:
1
return
"-l h_vmem=${memory}M"
}
process
.
clusterOptions
= {
"-S /bin/bash ${h_vmem(task
.memory
)} -l h_stack=8M"
}
process
.
clusterOptions
= {
"-S /bin/bash ${h_vmem(task)} -l h_stack=8M"
}
process
.
penv
=
'serial'
//
Per
process
config
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment