Skip to content

Commit 6f1e04c

Browse files
author
Maochao Xiao
committed
--gres=gpu:0 added to srun options, necessary to run on cpus of leonardo booster and dcgp partitions
1 parent faca215 commit 6f1e04c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/smartflow/runtime.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,11 +254,12 @@ def _validate_args(arg, n):
254254
}
255255
elif launcher == 'srun':
256256
run_args = {
257-
# 'mpi': 'pmix',
257+
# 'mpi': 'pmix_v3',
258258
'nodelist': ','.join(self.launch_config.hosts_per_exe[i]),
259259
'distribution': 'block:block:block,Pack',
260-
'cpu-bind': 'verbose',
260+
'cpu-bind': 'cores,verbose',
261261
'exclusive': None,
262+
'gres': 'gpu:0',
262263
}
263264
run_settings = self.exp.create_run_settings(
264265
exe=exe[i],

0 commit comments

Comments
 (0)