HCOLL: fix misplaced hcoll_init return value check.
cmr=v1.8.2:reviewer=jladd This commit was SVN r32282.
Этот коммит содержится в:
родитель
63d6a08283
Коммит
74852b4d21
@ -237,12 +237,6 @@ mca_coll_hcoll_comm_query(struct ompi_communicator_t *comm, int *priority)
|
|||||||
HCOL_VERBOSE(10,"Calling hcoll_init();");
|
HCOL_VERBOSE(10,"Calling hcoll_init();");
|
||||||
rc = hcoll_init();
|
rc = hcoll_init();
|
||||||
|
|
||||||
if (cm->using_mem_hooks && hcoll_check_mem_release_cb_needed()) {
|
|
||||||
opal_mem_hooks_register_release(mca_coll_hcoll_mem_release_cb, NULL);
|
|
||||||
} else {
|
|
||||||
cm->using_mem_hooks = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (HCOLL_SUCCESS != rc){
|
if (HCOLL_SUCCESS != rc){
|
||||||
cm->hcoll_enable = 0;
|
cm->hcoll_enable = 0;
|
||||||
opal_progress_unregister(mca_coll_hcoll_progress);
|
opal_progress_unregister(mca_coll_hcoll_progress);
|
||||||
@ -250,6 +244,12 @@ mca_coll_hcoll_comm_query(struct ompi_communicator_t *comm, int *priority)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (cm->using_mem_hooks && hcoll_check_mem_release_cb_needed()) {
|
||||||
|
opal_mem_hooks_register_release(mca_coll_hcoll_mem_release_cb, NULL);
|
||||||
|
} else {
|
||||||
|
cm->using_mem_hooks = 0;
|
||||||
|
}
|
||||||
|
|
||||||
copy_fn.attr_communicator_copy_fn = (MPI_Comm_internal_copy_attr_function*) MPI_COMM_NULL_COPY_FN;
|
copy_fn.attr_communicator_copy_fn = (MPI_Comm_internal_copy_attr_function*) MPI_COMM_NULL_COPY_FN;
|
||||||
del_fn.attr_communicator_delete_fn = hcoll_comm_attr_del_fn;
|
del_fn.attr_communicator_delete_fn = hcoll_comm_attr_del_fn;
|
||||||
err = ompi_attr_create_keyval(COMM_ATTR, copy_fn, del_fn, &hcoll_comm_attr_keyval, NULL ,0, NULL);
|
err = ompi_attr_create_keyval(COMM_ATTR, copy_fn, del_fn, &hcoll_comm_attr_keyval, NULL ,0, NULL);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user