|
20 | 20 | * Copyright (c) 2014-2020 Research Organization for Information Science
|
21 | 21 | * and Technology (RIST). All rights reserved.
|
22 | 22 | * Copyright (c) 2018 Amazon.com, Inc. or its affiliates. All Rights reserved.
|
23 |
| - * Copyright (c) 2021 Nanook Consulting. All rights reserved. |
| 23 | + * Copyright (c) 2021-2022 Nanook Consulting. All rights reserved. |
24 | 24 | * Copyright (c) 2018-2022 Triad National Security, LLC. All rights
|
25 | 25 | * reserved.
|
26 | 26 | * Copyright (c) 2022 IBM Corporation. All rights reserved.
|
@@ -1596,18 +1596,6 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
|
1596 | 1596 | opal_list_append(&job_info, &info->super);
|
1597 | 1597 | }
|
1598 | 1598 |
|
1599 |
| - /* spawn procs */ |
1600 |
| - ninfo = opal_list_get_size(&job_info); |
1601 |
| - if (0 < ninfo) { |
1602 |
| - PMIX_INFO_CREATE(pinfo, ninfo); |
1603 |
| - n = 0; |
1604 |
| - OPAL_LIST_FOREACH(info, &job_info, opal_info_item_t) { |
1605 |
| - PMIX_INFO_XFER(&pinfo[n], &info->info); |
1606 |
| - ++n; |
1607 |
| - } |
1608 |
| - } |
1609 |
| - OPAL_LIST_DESTRUCT(&job_info); |
1610 |
| - |
1611 | 1599 | if (opal_process_info.is_singleton) {
|
1612 | 1600 | /* The GDS 'hash' component is known to work for singleton, so
|
1613 | 1601 | * recommend it. The user may set this envar to override the setting.
|
@@ -1646,6 +1634,18 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
|
1646 | 1634 | opal_argv_free(dash_host);
|
1647 | 1635 | }
|
1648 | 1636 |
|
| 1637 | + /* spawn procs */ |
| 1638 | + ninfo = opal_list_get_size(&job_info); |
| 1639 | + if (0 < ninfo) { |
| 1640 | + PMIX_INFO_CREATE(pinfo, ninfo); |
| 1641 | + n = 0; |
| 1642 | + OPAL_LIST_FOREACH(info, &job_info, opal_info_item_t) { |
| 1643 | + PMIX_INFO_XFER(&pinfo[n], &info->info); |
| 1644 | + ++n; |
| 1645 | + } |
| 1646 | + } |
| 1647 | + OPAL_LIST_DESTRUCT(&job_info); |
| 1648 | + |
1649 | 1649 | pret = PMIx_Spawn(pinfo, ninfo, apps, count, nspace);
|
1650 | 1650 | rc = opal_pmix_convert_status(pret);
|
1651 | 1651 | if (NULL != pinfo) {
|
@@ -2047,7 +2047,6 @@ static int start_dvm(char **hostfiles, char **dash_host)
|
2047 | 2047 | opal_asprintf(&tmp, "%d", death_pipe[0]);
|
2048 | 2048 | opal_argv_append_nosize(&args, tmp);
|
2049 | 2049 | free(tmp);
|
2050 |
| - opal_argv_append_nosize(&args, "--daemonize"); |
2051 | 2050 |
|
2052 | 2051 | /* Fork off the child */
|
2053 | 2052 | pid = fork();
|
|
0 commit comments