Skip to content

Fix the dpm to fwd IO to the spawning parent #10695

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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