Accidentally allocating too much space -- only need to malloc enough
space for pointers to requests, not the actual requests. Thank to Tim for spotting this one. This commit was SVN r3155.
Этот коммит содержится в:
родитель
7f347651ae
Коммит
530ae63e74
@ -183,7 +183,7 @@ mca_coll_basic_module_init(struct ompi_communicator_t *comm)
|
|||||||
size = ompi_comm_size(comm);
|
size = ompi_comm_size(comm);
|
||||||
}
|
}
|
||||||
data = malloc(sizeof(struct mca_coll_base_comm_t) +
|
data = malloc(sizeof(struct mca_coll_base_comm_t) +
|
||||||
(sizeof(ompi_request_t) * size * 2));
|
(sizeof(ompi_request_t *) * size * 2));
|
||||||
|
|
||||||
if (NULL == data) {
|
if (NULL == data) {
|
||||||
return NULL;
|
return NULL;
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user