Skip to content

Commit 0415382

Browse files
authored
Merge pull request #883 from chriswyatt1/cs_cluster_1cpu
Added scratch location
2 parents 76eb62b + 8ad36b8 commit 0415382

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

conf/ucl_cscluster.config

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ executor {
1212
singularity.runOptions = "-B ${HOME},${PWD}"
1313

1414
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" }
15+
scratch = "/scratch0/${USER}/"
16+
executor = 'sge'
17+
penv = { task.cpus > 1 ? 'smp' : '' }
18+
clusterOptions = {
19+
def mem = task.memory.mega
20+
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+
}
2125
}

0 commit comments

Comments
 (0)