Skip to content

Commit eb733df

Browse files
authored
Merge pull request #5984 from mkurnosov/coll-spacc-fix-module-init
coll/spacc: fix module initialization in v3.1.x
2 parents 0e27b42 + 3ca18e9 commit eb733df

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

ompi/mca/coll/spacc/coll_spacc_module.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
#include "mpi.h"
1212
#include "ompi/communicator/communicator.h"
1313
#include "ompi/mca/coll/base/base.h"
14+
#include "ompi/mca/coll/base/coll_base_functions.h"
1415
#include "ompi/mca/coll/coll.h"
1516
#include "coll_spacc.h"
1617

@@ -87,6 +88,11 @@ static int spacc_module_enable(mca_coll_base_module_t *module,
8788
struct ompi_communicator_t *comm)
8889
{
8990
opal_output_verbose(30, mca_coll_spacc_stream, "coll:spacc:module_enable called");
91+
/* prepare the placeholder for the array of request* */
92+
module->base_data = OBJ_NEW(mca_coll_base_comm_t);
93+
if (NULL == module->base_data) {
94+
return OMPI_ERROR;
95+
}
9096
return OMPI_SUCCESS;
9197
}
9298

0 commit comments

Comments
 (0)