Skip to content

Commit

Permalink
add default task.cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Joon-Klaps committed Nov 27, 2024
1 parent dcd9741 commit 595da58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions conf/vsc_kul_uhasselt.config
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ profiles {
singularity.runOptions = '--containall --cleanenv --nv'
clusterOptions = {
// suggested to use 9 cpus per gpu
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/9) as int)
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/9) as int)
"--gres=gpu:${gpus} --clusters=genius --account=$tier1_project"
}

Expand All @@ -92,7 +92,7 @@ profiles {
// 768 - 65 so 65GB for overhead, max is 720000MB
resourceLimits = [ memory: 703.GB, cpus: 36, time: 168.h]
clusterOptions = {
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/9) as int)
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/9) as int)
"--gres=gpu:${gpus} --clusters=genius --account=$tier1_project"
}

Expand Down Expand Up @@ -124,7 +124,7 @@ profiles {
singularity.runOptions = '--containall --cleanenv --nv'
clusterOptions = {
// suggested to use 16 cpus per gpu
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/16) as int)
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/16) as int)
"--gres=gpu:${gpus} --clusters=wice --account=$tier1_project"
}

Expand All @@ -147,7 +147,7 @@ profiles {
// 768 - 65 so 65GB for overhead, max is 720000MB
resourceLimits = [ memory: 703.GB, cpus: 64, time: 168.h ]
clusterOptions = {
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor(task.cpus/16) as int)
def gpus = task.accelerator?.request ?: Math.max(1, Math.floor((task.cpus ?:1)/16) as int)
"--gres=gpu:${gpus} --clusters=wice --account=$tier1_project"
}

Expand Down

0 comments on commit 595da58

Please sign in to comment.