Skip to content

Commit f8dae5f

Browse files
authored
Merge pull request #2474 from vspetrov/v2.0.x_hcoll_context_free
v2.0.x: coll/hcoll: hcoll_context_free
2 parents 37a9c54 + ca905d6 commit f8dae5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ompi/mca/coll/hcoll/coll_hcoll_module.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,12 @@ static void mca_coll_hcoll_module_destruct(mca_coll_hcoll_module_t *hcoll_module
138138
OBJ_RELEASE(hcoll_module->previous_reduce_scatter_module);
139139
OBJ_RELEASE(hcoll_module->previous_reduce_module);
140140
*/
141-
141+
#if HCOLL_API < HCOLL_VERSION(3,7)
142142
context_destroyed = 0;
143143
hcoll_destroy_context(hcoll_module->hcoll_context,
144144
(rte_grp_handle_t)hcoll_module->comm,
145145
&context_destroyed);
146+
#endif
146147
}
147148
mca_coll_hcoll_module_clear(hcoll_module);
148149
}
@@ -205,7 +206,11 @@ int hcoll_comm_attr_del_fn(MPI_Comm comm, int keyval, void *attr_val, void *extr
205206
mca_coll_hcoll_module_t *hcoll_module;
206207
hcoll_module = (mca_coll_hcoll_module_t*) attr_val;
207208

209+
#if HCOLL_API >= HCOLL_VERSION(3,7)
210+
hcoll_context_free(hcoll_module->hcoll_context, (rte_grp_handle_t)comm);
211+
#else
208212
hcoll_group_destroy_notify(hcoll_module->hcoll_context);
213+
#endif
209214
return OMPI_SUCCESS;
210215

211216
}

0 commit comments

Comments
 (0)