1
1

COMMON/UCX: suppressed coverity warnings

- suppressed coverity warnings - added log messages on failed calls

Signed-off-by: Sergey Oblomov <sergeyo@mellanox.com>
Этот коммит содержится в:
Sergey Oblomov 2018-10-17 16:11:03 +03:00
родитель 2acc4b7e7f
Коммит df765595e3
3 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -193,7 +193,9 @@ int ompi_osc_ucx_complete(struct ompi_win_t *win) {
OSC_UCX_VERBOSE(1, "ucp_atomic_post failed: %d", status);
}
opal_common_ucx_ep_flush(ep, mca_osc_ucx_component.ucp_worker);
if (OMPI_SUCCESS != opal_common_ucx_ep_flush(ep, mca_osc_ucx_component.ucp_worker)) {
OSC_UCX_VERBOSE(1, "opal_common_ucx_ep_flush failed");
}
}
OBJ_RELEASE(module->start_group);

Просмотреть файл

@ -825,7 +825,9 @@ int ompi_osc_ucx_free(struct ompi_win_t *win) {
ucp_worker_progress(mca_osc_ucx_component.ucp_worker);
}
opal_common_ucx_worker_flush(mca_osc_ucx_component.ucp_worker);
if (OMPI_SUCCESS != opal_common_ucx_worker_flush(mca_osc_ucx_component.ucp_worker)) {
OSC_UCX_VERBOSE(1, "opal_common_ucx_worker_flush failed");
}
ret = module->comm->c_coll->coll_barrier(module->comm,
module->comm->c_coll->coll_barrier_module);

Просмотреть файл

@ -89,7 +89,12 @@ OPAL_DECLSPEC void opal_common_ucx_mca_register(void)
opal_common_ucx.output = opal_output_open(NULL);
opal_output_set_verbosity(opal_common_ucx.output, opal_common_ucx.verbose);
mca_base_framework_open(&opal_memory_base_framework, 0);
if (OPAL_SUCCESS != mca_base_framework_open(&opal_memory_base_framework, 0)) {
/* failed to initialize memory framework - just exit */
MCA_COMMON_UCX_VERBOSE(1, "%s", "failed to initialize memory base framework, "
"memory hooks will not be used");
return;
}
/* Set memory hooks */
if (opal_common_ucx.opal_mem_hooks &&