Skip to content

Commit 684b91a

Browse files
committed
We can only specify one single PML as MCA params.
Make sure the MCA parameter for the PML selection only contains a single value. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
1 parent a7e2bb4 commit 684b91a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ompi/mca/pml/base/pml_base_frame.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,19 @@ static int mca_pml_base_open(mca_base_open_flag_t flags)
218218
opal_pointer_array_add(&mca_pml_base_pml, strdup("ucx"));
219219
opal_pointer_array_add(&mca_pml_base_pml, strdup("cm"));
220220
} else {
221+
#if OPAL_ENABLE_DEBUG
222+
char **req_pml = opal_argv_split(default_pml[0], ',');
223+
if( NULL != req_pml[1] ) {
224+
opal_output(0, "Only one PML must be provided. Using %s PML (the"
225+
" first on the MCA pml list)", req_pml[0]);
226+
opal_pointer_array_add(&mca_pml_base_pml, strdup(req_pml[0]));
227+
} else {
228+
opal_pointer_array_add(&mca_pml_base_pml, strdup(default_pml[0]));
229+
}
230+
opal_argv_free(req_pml);
231+
#else
221232
opal_pointer_array_add(&mca_pml_base_pml, strdup(default_pml[0]));
233+
#endif /* OPAL_ENABLE_DEBUG */
222234
}
223235
}
224236
#if OPAL_ENABLE_FT_CR == 1

0 commit comments

Comments
 (0)