fix selection logic: if no suitable device found - disqulaify mxm w/o complains.
This commit was SVN r25021.
Этот коммит содержится в:
родитель
67feeb6aca
Коммит
bfd75de6f9
@ -82,8 +82,12 @@ static int ompi_mtl_mxm_component_open(void)
|
|||||||
mxm_fill_context_opts(&mxm_opts);
|
mxm_fill_context_opts(&mxm_opts);
|
||||||
err = mxm_init(&mxm_opts, &ompi_mtl_mxm.mxm_context);
|
err = mxm_init(&mxm_opts, &ompi_mtl_mxm.mxm_context);
|
||||||
if (MXM_OK != err) {
|
if (MXM_OK != err) {
|
||||||
orte_show_help("help-mtl-mxm.txt", "mxm init", true,
|
if (MXM_ERR_NO_DEVICE == err) {
|
||||||
mxm_error_string(err));
|
MXM_VERBOSE(1, "No supported device found, disqualifying mxm");
|
||||||
|
} else {
|
||||||
|
orte_show_help("help-mtl-mxm.txt", "mxm init", true,
|
||||||
|
mxm_error_string(err));
|
||||||
|
}
|
||||||
return OPAL_ERR_NOT_AVAILABLE;
|
return OPAL_ERR_NOT_AVAILABLE;
|
||||||
}
|
}
|
||||||
return OMPI_SUCCESS;
|
return OMPI_SUCCESS;
|
||||||
@ -104,7 +108,7 @@ ompi_mtl_mxm_component_init(bool enable_progress_threads,
|
|||||||
|
|
||||||
rc = ompi_mtl_mxm_module_init();
|
rc = ompi_mtl_mxm_module_init();
|
||||||
if (OMPI_SUCCESS != rc) {
|
if (OMPI_SUCCESS != rc) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Calculate MTL constraints according to MXM types */
|
/* Calculate MTL constraints according to MXM types */
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user