Skip to content

Commit

Permalink
Fix the dpm to fwd IO to the spawning parent
Browse files Browse the repository at this point in the history
When doing a comm_spawn as a singleton, you need to instruct
the "prte" DVM to forward any IO from the child job to the
singleton "parent" so it can be properly output. Otherwise,
the IO from the child job will simply be lost.

Signed-off-by: Ralph Castain <rhc@pmix.org>
  • Loading branch information
rhc54 authored and Mamzi Bayatpour mbayatpour@nvidia.com () committed Oct 26, 2022
1 parent 27e797d commit 4ba11c5
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ompi/dpm/dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1624,6 +1624,16 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
}
return MPI_ERR_SPAWN;
}
/* tell it to forward output to us */
info = OBJ_NEW(opal_info_item_t);
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDOUT, NULL, PMIX_BOOL);
opal_list_append(&job_info, &info->super);
info = OBJ_NEW(opal_info_item_t);
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDERR, NULL, PMIX_BOOL);
opal_list_append(&job_info, &info->super);
info = OBJ_NEW(opal_info_item_t);
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDDIAG, NULL, PMIX_BOOL);
opal_list_append(&job_info, &info->super);
}
if (NULL != hostfiles) {
opal_argv_free(hostfiles);
Expand Down

0 comments on commit 4ba11c5

Please sign in to comment.