|
3 | 3 | * Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana |
4 | 4 | * University Research and Technology |
5 | 5 | * Corporation. All rights reserved. |
6 | | - * Copyright (c) 2004-2015 The University of Tennessee and The University |
| 6 | + * Copyright (c) 2004-2017 The University of Tennessee and The University |
7 | 7 | * of Tennessee Research Foundation. All rights |
8 | 8 | * reserved. |
9 | 9 | * Copyright (c) 2004-2005 High Performance Computing Center Stuttgart, |
@@ -65,7 +65,7 @@ int ompi_coll_base_reduce_generic( const void* sendbuf, void* recvbuf, int origi |
65 | 65 | char *inbuf[2] = {NULL, NULL}, *inbuf_free[2] = {NULL, NULL}; |
66 | 66 | char *accumbuf = NULL, *accumbuf_free = NULL; |
67 | 67 | char *local_op_buffer = NULL, *sendtmpbuf = NULL; |
68 | | - ptrdiff_t extent, size, gap, segment_increment; |
| 68 | + ptrdiff_t extent, size, gap = 0, segment_increment; |
69 | 69 | ompi_request_t **sreq = NULL, *reqs[2] = {MPI_REQUEST_NULL, MPI_REQUEST_NULL}; |
70 | 70 | int num_segments, line, ret, segindex, i, rank; |
71 | 71 | int recvcount, prevcount, inbi; |
@@ -526,7 +526,7 @@ int ompi_coll_base_reduce_intra_in_order_binary( const void *sendbuf, void *recv |
526 | 526 | use_this_sendbuf = (void *)sendbuf; |
527 | 527 | use_this_recvbuf = recvbuf; |
528 | 528 | if (io_root != root) { |
529 | | - ptrdiff_t dsize, gap; |
| 529 | + ptrdiff_t dsize, gap = 0; |
530 | 530 | char *tmpbuf; |
531 | 531 |
|
532 | 532 | dsize = opal_datatype_span(&datatype->super, count, &gap); |
@@ -610,7 +610,7 @@ ompi_coll_base_reduce_intra_basic_linear(const void *sbuf, void *rbuf, int count |
610 | 610 | mca_coll_base_module_t *module) |
611 | 611 | { |
612 | 612 | int i, rank, err, size; |
613 | | - ptrdiff_t extent, dsize, gap; |
| 613 | + ptrdiff_t extent, dsize, gap = 0; |
614 | 614 | char *free_buffer = NULL; |
615 | 615 | char *pml_buffer = NULL; |
616 | 616 | char *inplace_temp_free = NULL; |
|
0 commit comments