Initialize the sndbuf in all cases. Do not forget to initialize the
tree used in each of the broadcast functions. This commit was SVN r12332.
Этот коммит содержится в:
родитель
126a68dc9a
Коммит
393657ee26
@ -59,6 +59,7 @@ ompi_coll_tuned_bcast_intra_chain ( void *buff, int count,
|
||||
|
||||
/* setup the chain topology. */
|
||||
COLL_TUNED_UPDATE_CHAIN( comm, root, chains );
|
||||
chain = comm->c_coll_selected_data->cached_chain;
|
||||
|
||||
ompi_ddt_type_size( datatype, &typelng );
|
||||
|
||||
@ -243,6 +244,7 @@ ompi_coll_tuned_bcast_intra_split_bintree ( void* buffer,
|
||||
|
||||
/* setup the binary tree topology. */
|
||||
COLL_TUNED_UPDATE_BINTREE( comm, root );
|
||||
tree = comm->c_coll_selected_data->cached_bintree;
|
||||
|
||||
err = ompi_ddt_type_size( datatype, &type_size );
|
||||
|
||||
@ -488,6 +490,7 @@ ompi_coll_tuned_bcast_intra_bintree ( void* buffer,
|
||||
|
||||
/* setup the tree topology. */
|
||||
COLL_TUNED_UPDATE_BINTREE( comm, root );
|
||||
tree = comm->c_coll_selected_data->cached_bintree;
|
||||
|
||||
err = ompi_ddt_type_size( datatype, &type_size );
|
||||
|
||||
|
@ -42,7 +42,7 @@ int ompi_coll_tuned_reduce_generic( void* sendbuf, void* recvbuf, int original_c
|
||||
ompi_coll_tree_t* tree, int count_by_segment )
|
||||
{
|
||||
char *inbuf[2] = {(char*)NULL, (char*)NULL};
|
||||
char *local_op_buffer, *accumbuf, *sendtmpbuf;
|
||||
char *local_op_buffer, *accumbuf = NULL, *sendtmpbuf;
|
||||
ptrdiff_t extent, lower_bound;
|
||||
size_t typelng, realsegsize;
|
||||
ompi_request_t* reqs[2] = {MPI_REQUEST_NULL, MPI_REQUEST_NULL};
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user