We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 76eb62b + 8ad36b8 commit 0415382Copy full SHA for 0415382
conf/ucl_cscluster.config
@@ -12,10 +12,14 @@ executor {
12
singularity.runOptions = "-B ${HOME},${PWD}"
13
14
process {
15
-
16
- //NEED TO SET PARALLEL ENVIRONMENT TO SMP SO MULTIPLE CPUS CAN BE SUBMITTED
17
- penv = 'smp'
18
19
- //ADD MEMORY TO CLUSTEROPTIONS
20
- clusterOptions = { "-S /bin/bash -l tmem=${task.memory.mega}M,h_vmem=${task.memory.mega}M" }
+ scratch = "/scratch0/${USER}/"
+ executor = 'sge'
+ penv = { task.cpus > 1 ? 'smp' : '' }
+ clusterOptions = {
+ def mem = task.memory.mega
+ def cpus = task.cpus
21
+ def baseOpts = "-S /bin/bash -l tmem=${mem}M,h_vmem=${mem}M "
22
+ def peOpts = cpus > 1 ? " -R y " : ""
23
+ return baseOpts + peOpts
24
+ }
25
}
0 commit comments