Skip to content
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
20 changes: 20 additions & 0 deletions src/mca/schizo/ompi/schizo_ompi.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,16 @@ static prte_cmd_line_init_t cmd_line_init[] = {
"Forward mpirun port to compute node daemons so all will use it",
PRTE_CMD_LINE_OTYPE_DVM },

/* Display Commumication Protocol : MPI_Init */
{ '\0', "display-comm", 0, PRTE_CMD_LINE_TYPE_BOOL,
"Display table of communication methods between ranks during MPI_Init",
PRTE_CMD_LINE_OTYPE_GENERAL },

/* Display Commumication Protocol : MPI_Finalize */
{ '\0', "display-comm-finalize", 0, PRTE_CMD_LINE_TYPE_BOOL,
"Display table of communication methods between ranks during MPI_Finalize",
PRTE_CMD_LINE_OTYPE_GENERAL },


/* End of list */
{ '\0', NULL, 0, PRTE_CMD_LINE_TYPE_NULL, NULL }
Expand Down Expand Up @@ -890,6 +900,16 @@ static int parse_env(prte_cmd_line_t *cmd_line,
}
}

if (prte_cmd_line_is_taken(cmd_line, "display-comm") && prte_cmd_line_is_taken(cmd_line, "display-comm-finalize")) {
prte_setenv("OMPI_MCA_ompi_display_comm", "mpi_init,mpi_finalize", true, dstenv);
}
else if (prte_cmd_line_is_taken(cmd_line, "display-comm")) {
prte_setenv("OMPI_MCA_ompi_display_comm", "mpi_init", true, dstenv);
}
else if (prte_cmd_line_is_taken(cmd_line, "display-comm-finalize")) {
prte_setenv("OMPI_MCA_ompi_display_comm", "mpi_finalize", true, dstenv);
}

/* now look for any "--mca" options - note that it is an error
* for the same MCA param to be given more than once if the
* values differ */
Expand Down