Update Slurm launch support
Assign all cpu's on node to the daemon Signed-off-by: Ralph Castain <rhc@pmix.org> (cherry picked from commit 7bac7eed6ef423e47fe980b4c32eae36b8e1d4cb)
Этот коммит содержится в:
родитель
c65e9cbfb7
Коммит
7b138ec6d9
@ -12,7 +12,7 @@
|
|||||||
* Copyright (c) 2006-2019 Cisco Systems, Inc. All rights reserved
|
* Copyright (c) 2006-2019 Cisco Systems, Inc. All rights reserved
|
||||||
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2014-2017 Intel, Inc. All rights reserved.
|
* Copyright (c) 2014-2020 Intel, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -267,6 +267,9 @@ static void launch_daemons(int fd, short args, void *cbdata)
|
|||||||
/* start one orted on each node */
|
/* start one orted on each node */
|
||||||
opal_argv_append(&argc, &argv, "--ntasks-per-node=1");
|
opal_argv_append(&argc, &argv, "--ntasks-per-node=1");
|
||||||
|
|
||||||
|
/* ensure Slurm adds all CPUs to this task */
|
||||||
|
putenv("SLURM_WHOLE=1");
|
||||||
|
|
||||||
if (!orte_enable_recovery) {
|
if (!orte_enable_recovery) {
|
||||||
/* kill the job if any orteds die */
|
/* kill the job if any orteds die */
|
||||||
opal_argv_append(&argc, &argv, "--kill-on-bad-exit");
|
opal_argv_append(&argc, &argv, "--kill-on-bad-exit");
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user