|
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. |
| 27 | + * Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved. |
27 | 28 | * $COPYRIGHT$ |
28 | 29 | * |
29 | 30 | * Additional copyrights may follow |
@@ -1243,19 +1244,9 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[], |
1243 | 1244 | /* check for 'display_map' - a job-level key */ |
1244 | 1245 | ompi_info_get_bool(array_of_info[i], "display_map", &local_spawn, &flag); |
1245 | 1246 | if ( flag ) { |
1246 | | - rc = dpm_convert(&job_info, "display_map", PMIX_MAPBY, NULL, "DISPLAY", true); |
1247 | | - if (OMPI_SUCCESS != rc) { |
1248 | | - OPAL_LIST_DESTRUCT(&job_info); |
1249 | | - OPAL_LIST_DESTRUCT(&app_info); |
1250 | | - PMIX_APP_FREE(apps, scount); |
1251 | | - if (NULL != hostfiles) { |
1252 | | - opal_argv_free(hostfiles); |
1253 | | - } |
1254 | | - if (NULL != dash_host) { |
1255 | | - opal_argv_free(dash_host); |
1256 | | - } |
1257 | | - return MPI_ERR_SPAWN; |
1258 | | - } |
| 1247 | + info = OBJ_NEW(opal_info_item_t); |
| 1248 | + PMIX_INFO_LOAD(&info->info, PMIX_DISPLAY_MAP, &local_spawn, PMIX_BOOL); |
| 1249 | + opal_list_append(&job_info, &info->super); |
1259 | 1250 | } |
1260 | 1251 |
|
1261 | 1252 | /* check for 'npernode' and 'ppr' - job-level key */ |
|
0 commit comments