Fix fi_av_insert return code test.
Этот коммит содержится в:
родитель
5944c294ad
Коммит
1e24da90fe
@ -104,10 +104,11 @@ ompi_mtl_ofi_add_procs(struct mca_mtl_base_module_t *mtl,
|
||||
* Map the EP names to fi_addrs.
|
||||
*/
|
||||
ret = fi_av_insert(ompi_mtl_ofi.av, ep_names, nprocs, fi_addrs, 0, NULL);
|
||||
if (ret) {
|
||||
if (nprocs != ret) {
|
||||
opal_output_verbose(1, ompi_mtl_base_framework.framework_output,
|
||||
"%s:%d: fi_av_insert failed: %s\n",
|
||||
__FILE__, __LINE__, fi_strerror(errno));
|
||||
ret = OMPI_ERROR;
|
||||
goto bail;
|
||||
}
|
||||
|
||||
@ -123,6 +124,8 @@ ompi_mtl_ofi_add_procs(struct mca_mtl_base_module_t *mtl,
|
||||
procs[i]->proc_endpoints[OMPI_PROC_ENDPOINT_TAG_MTL] = endpoint;
|
||||
}
|
||||
|
||||
ret = OMPI_SUCCESS;
|
||||
|
||||
bail:
|
||||
if (fi_addrs)
|
||||
free(fi_addrs);
|
||||
|
@ -353,7 +353,7 @@ ompi_mtl_ofi_component_init(bool enable_progress_threads,
|
||||
&ompi_mtl_ofi.any_addr,
|
||||
0ULL,
|
||||
NULL);
|
||||
if (ret) {
|
||||
if (1 != ret) {
|
||||
opal_output_verbose(1, ompi_mtl_base_framework.framework_output,
|
||||
"%s:%d: fi_av_insert failed: %s\n",
|
||||
__FILE__, __LINE__, fi_strerror(-ret));
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user