Skip to content

Commit 24d6cd9

Browse files
used only cpus per task in base config (#11)
1 parent 32da82e commit 24d6cd9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The parameters you can override are defined in the `hydra-submitit-launcher` plu
4242

4343
For example, if you want to use the gpu_p2 partition, you would need to do:
4444
```
45-
hydra-submitit-launch my_app.py dev hydra.launcher.setup=null hydra.launcher.partition=gpu_p2
45+
hydra-submitit-launch my_app.py dev hydra.launcher.setup=null hydra.launcher.partition=gpu_p2 hydra.launcher.cpus_per_task=3
4646
```
4747

4848
In order to change the timeout on the SLURM job to for example 10 hours, you would need to do:

hydra_plugins/jz_hydra_submitit_launcher/hydra/launcher/base.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ gpus_per_node: 1
66
tasks_per_node: 1
77
gres: "gpu:${hydra.launcher.gpus_per_node}"
88
qos: ${qos_from_hours:${hours}}
9-
cpus_per_gpu: 10
10-
cpus_per_task: ${cpu_from_gpu:${hydra.launcher.gpus_per_node},${hydra.launcher.cpus_per_gpu}}
9+
cpus_per_task: ${cpu_from_gpu:${hydra.launcher.gpus_per_node},10}
1110
gpus_per_task: ${hydra.launcher.gpus_per_node}
1211
additional_parameters:
1312
account: ${oc.env:IDRPROJ}@gpu

0 commit comments

Comments
 (0)