Skip to content

Commit 48dbd1d

Browse files
committed
Fix the dpm to fwd IO to the spawning parent
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>
1 parent 31d719d commit 48dbd1d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

ompi/dpm/dpm.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,6 +1624,16 @@ int ompi_dpm_spawn(int count, const char *array_of_commands[],
16241624
}
16251625
return MPI_ERR_SPAWN;
16261626
}
1627+
/* tell it to forward output to us */
1628+
info = OBJ_NEW(opal_info_item_t);
1629+
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDOUT, NULL, PMIX_BOOL);
1630+
opal_list_append(&job_info, &info->super);
1631+
info = OBJ_NEW(opal_info_item_t);
1632+
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDERR, NULL, PMIX_BOOL);
1633+
opal_list_append(&job_info, &info->super);
1634+
info = OBJ_NEW(opal_info_item_t);
1635+
PMIX_INFO_LOAD(&info->info, PMIX_FWD_STDDIAG, NULL, PMIX_BOOL);
1636+
opal_list_append(&job_info, &info->super);
16271637
}
16281638
if (NULL != hostfiles) {
16291639
opal_argv_free(hostfiles);

0 commit comments

Comments
 (0)