e9d533e62ecb should fix these warnings. They are harmless, as we cannot be
reaching the context needed for them to have an impact because collectives
communications with 0 bytes are trimmed out in the MPI layer.

Thanks for reporting.
  George.


On Tue, Jun 13, 2017 at 12:43 PM, r...@open-mpi.org <r...@open-mpi.org> wrote:

> Configured master with no options given to it (i.e., out-of-the-box) - the
> key being that it defaults to --disable-debug - and drowned in warnings:
>
> *base/coll_base_scatter.c:* In function ‘
> *ompi_coll_base_scatter_intra_binomial*’:
> *base/coll_base_scatter.c:90:28:* *warning: *‘*sgap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              ptmp = tempbuf *-* sgap;
>                             *^*
> *base/coll_base_scatter.c:117:24:* *warning: *‘*rgap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          ptmp = tempbuf *-* rgap;
>                         *^*
> *base/coll_base_alltoall.c:* In function ‘
> *mca_coll_base_alltoall_intra_basic_inplace*’:
> *base/coll_base_alltoall.c:69:35:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      tmp_buffer = allocated_buffer *-* gap;
>                                    *^*
> *base/coll_base_alltoall.c:* In function ‘
> *ompi_coll_base_alltoall_intra_bruck*’:
> *base/coll_base_alltoall.c:230:26:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      tmpbuf = tmpbuf_free *-* gap;
>                           *^*
> *base/coll_base_allgather.c:* In function ‘
> *ompi_coll_base_allgather_intra_bruck*’:
> *base/coll_base_allgather.c:179:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          shift_buf = free_buf *-* gap;
>                               *^*
> *base/coll_base_gather.c:* In function ‘
> *ompi_coll_base_gather_intra_binomial*’:
> *base/coll_base_gather.c:91:28:* *warning: *‘*rgap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              ptmp = tempbuf *-* rgap;
>                             *^*
> *base/coll_base_gather.c:114:24:* *warning: *‘*sgap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          ptmp = tempbuf *-* sgap;
>                         *^*
> *base/coll_base_reduce_scatter.c:* In function ‘
> *ompi_coll_base_reduce_scatter_intra_nonoverlapping*’:
> *base/coll_base_reduce_scatter.c:83:36:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              tmprbuf = tmprbuf_free *-* gap;
>                                     *^*
> *base/coll_base_reduce.c:* In function ‘*ompi_coll_base_reduce_generic*’:
> *base/coll_base_reduce.c:124:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          inbuf[0] = inbuf_free[0] *-* gap;
>                                   *^*
> *base/coll_base_allreduce.c:* In function ‘
> *ompi_coll_base_allreduce_intra_recursivedoubling*’:
> *base/coll_base_allreduce.c:159:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      inplacebuf = inplacebuf_free *-* gap;
>                                   *^*
> *base/coll_base_reduce_scatter.c:* In function ‘
> *ompi_coll_base_reduce_scatter_intra_basic_recursivehalving*’:
> *base/coll_base_reduce_scatter.c:178:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      recv_buf = recv_buf_free *-* gap;
>                               *^*
> *base/coll_base_reduce.c:* In function ‘
> *ompi_coll_base_reduce_intra_in_order_binary*’:
> *base/coll_base_reduce.c:549:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              tmpbuf = tmpbuf_free *-* gap;
>                                   *^*
> *base/coll_base_reduce.c:* In function ‘
> *ompi_coll_base_reduce_intra_basic_linear*’:
> *base/coll_base_reduce.c:653:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          pml_buffer = free_buffer *-* gap;
>                                   *^*
> *base/coll_base_reduce_scatter.c:* In function ‘
> *ompi_coll_base_reduce_scatter_intra_ring*’:
> *base/coll_base_reduce_scatter.c:513:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      accumbuf = accumbuf_free *-* gap;
>
> *coll_basic_allgather.c:* In function ‘*mca_coll_basic_allgather_inter*’:
> *coll_basic_allgather.c:112:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          tmpbuf = tmpbuf_free *-* gap;
>                               *^*
> *coll_basic_exscan.c:* In function ‘*mca_coll_basic_exscan_intra*’:
> *coll_basic_exscan.c:92:33:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>      reduce_buffer = free_buffer *-* gap;
>                                  *^*
> *coll_basic_reduce_scatter_block.c:* In function ‘
> *mca_coll_basic_reduce_scatter_block_intra*’:
> *coll_basic_reduce_scatter_block.c:90:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          recv_buf = recv_buf_free *-* gap;
>                                   *^*
> *coll_basic_reduce_scatter_block.c:* In function ‘
> *mca_coll_basic_reduce_scatter_block_inter*’:
> *coll_basic_reduce_scatter_block.c:161:23:* *warning: *‘*gap*’ may be
> used uninitialized in this function [*-Wmaybe-uninitialized*]
>          lbuf = tmpbuf *-* gap;
>                        *^*
> *coll_basic_allreduce.c:* In function ‘*mca_coll_basic_allreduce_inter*’:
> *coll_basic_allreduce.c:109:29:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          pml_buffer = tmpbuf *-* gap;
>                              *^*
> *coll_basic_reduce_scatter.c:* In function ‘
> *mca_coll_basic_reduce_scatter_intra*’:
> *coll_basic_reduce_scatter.c:113:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          recv_buf = recv_buf_free *-* gap;
>                                   *^*
> *coll_basic_scan.c:* In function ‘*mca_coll_basic_scan_intra*’:
> *coll_basic_scan.c:82:34:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>          pml_buffer = free_buffer *-* gap;
>                                   *^*
> *coll_basic_reduce.c:* In function ‘*mca_coll_basic_reduce_log_intra*’:
> *coll_basic_reduce.c:130:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      pml_buffer = free_buffer *-* gap;
>                               *^*
> *coll_basic_reduce.c:* In function ‘*mca_coll_basic_reduce_lin_inter*’:
> *coll_basic_reduce.c:314:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          pml_buffer = free_buffer *-* gap;
>                                   *^*
> *coll_basic_reduce_scatter.c:* In function ‘
> *mca_coll_basic_reduce_scatter_inter*’:
> *coll_basic_reduce_scatter.c:419:23:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          lbuf = tmpbuf *-* gap;
>                        *^*
> *coll_inter_gather.c:* In function ‘*mca_coll_inter_gather_inter*’:
> *coll_inter_gather.c:71:26:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>          ptmp = ptmp_free *-* gap;
>                           *^*
> *coll_inter_allreduce.c:* In function ‘*mca_coll_inter_allreduce_inter*’:
> *coll_inter_reduce.c:* In function ‘*mca_coll_inter_reduce_inter*’:
> *coll_inter_allreduce.c:63:25:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      pml_buffer = tmpbuf *-* gap;
>                          *^*
> *coll_inter_reduce.c:69:27:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>   pml_buffer = free_buffer *-* gap;
>                            *^*
> *coll_inter_gatherv.c:* In function ‘*mca_coll_inter_gatherv_inter*’:
> *coll_inter_gatherv.c:103:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              ptmp = ptmp_free *-* gap;
>                               *^*
> *coll_inter_scatterv.c:* In function ‘*mca_coll_inter_scatterv_inter*’:
> *coll_inter_scatterv.c:83:34:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>                  ptmp = ptmp_free *-* gap;
>                                   *^*
> *coll_inter_allgatherv.c:* In function ‘*mca_coll_inter_allgatherv_inter*
> ’:
> *coll_inter_allgatherv.c:92:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              ptmp = ptmp_free *-* gap;
>                               *^*
> *coll_inter_scatter.c:* In function ‘*mca_coll_inter_scatter_inter*’:
> *coll_inter_scatter.c:70:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>              ptmp = ptmp_free *-* gap;
>                               *^*
> *coll_inter_allgather.c:* In function ‘*mca_coll_inter_allgather_inter*’:
> *coll_inter_allgather.c:66:26:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>          ptmp = ptmp_free *-* gap;
>                           *^*
> *nbc_ialltoallv.c:* In function ‘*ompi_coll_libnbc_ialltoallv*’:
> *nbc_ialltoallv.c:329:38:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>        res = NBC_Sched_send ((void *)*(-gap)*, true, counts[rpeer], type,
> rpeer, schedule, false);
>                                      *~^~~~~*
> *nbc_ialltoallv.c:52:13:* *note: *‘*gap*’ was declared here
>    ptrdiff_t *gap*, span;
>              *^~~*
> *nbc_ireduce_scatter_block.c:* In function ‘
> *ompi_coll_libnbc_ireduce_scatter_block*’:
> *nbc_ireduce_scatter_block.c:97:51:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      redbuf = (char *) handle->tmpbuf + span_align *-* gap;
>                                                    *^*
> *nbc_ireduce.c:* In function ‘*ompi_coll_libnbc_ireduce*’:
> *nbc_ireduce.c:328:21:* *warning: *‘*gap*’ may be used uninitialized in
> this function [*-Wmaybe-uninitialized*]
>      lbuf = (void *)*(-gap)*;
>                     *~^~~~~*
> *nbc_ireduce.c:306:13:* *note: *‘*gap*’ was declared here
>    ptrdiff_t *gap*;
>              *^~~*
> *nbc_ireduce.c:116:34:* *warning: *‘*gap*’ may be used uninitialized in
> this function [*-Wmaybe-uninitialized*]
>        redbuf = (char*)span_align *-* gap;
>                                   *^*
> *nbc_iallreduce.c:* In function ‘*ompi_coll_libnbc_iallreduce*’:
> *nbc_iallreduce.c:328:21:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>      lbuf = (void *)*(-gap)*;
>                     *~^~~~~*
> *nbc_iallreduce.c:70:19:* *note: *‘*gap*’ was declared here
>    ptrdiff_t span, *gap*;
>                    *^~~*
> *nbc_ireduce_scatter_block.c:* In function ‘
> *ompi_coll_libnbc_ireduce_scatter_block_inter*’:
> *nbc_ireduce_scatter_block.c:269:31:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      rbuf = (char *)*(span_align-gap)*;
>                     *~~~~~~~~~~~^~~~~*
> *nbc_ireduce.c:* In function ‘*ompi_coll_libnbc_ireduce_inter*’:
> *nbc_ireduce.c:245:73:* *warning: *‘*gap*’ may be used uninitialized in
> this function [*-Wmaybe-uninitialized*]
>    res = red_sched_linear (rank, rsize, root, sendbuf, recvbuf, (void *)
> *(-gap)*, count, datatype, op, schedule, handle);
>
> *~^~~~~*
> *nbc_iallreduce.c:* In function ‘*ompi_coll_libnbc_iallreduce_inter*’:
> *nbc_iallreduce.c:667:23:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>        rbuf = (void *)*(-gap)*;
>                       *~^~~~~*
> *nbc_iallreduce.c:213:19:* *note: *‘*gap*’ was declared here
>    ptrdiff_t span, *gap*;
>                    *^~~*
> *nbc_ialltoallw.c:* In function ‘*ompi_coll_libnbc_ialltoallw*’:
> *nbc_ialltoallw.c:320:36:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>                            (void *)*(-gap)*, true, counts[peer],
> types[peer],
>                                    *~^~~~~*
> *nbc_ialltoallw.c:270:13:* *note: *‘*gap*’ was declared here
>    ptrdiff_t *gap*;
>              *^~~*
> *nbc_iscan.c:* In function ‘*ompi_coll_libnbc_iscan*’:
> *nbc_iscan.c:106:38:* *warning: *‘*gap*’ may be used uninitialized in
> this function [*-Wmaybe-uninitialized*]
>        res = NBC_Sched_recv ((void *)*(-gap)*, true, count, datatype,
> rank-1, schedule, true);
>                                      *~^~~~~*
> *nbc_iexscan.c:* In function ‘*ompi_coll_libnbc_iexscan*’:
> *nbc_iexscan.c:124:62:* *warning: *‘*gap*’ may be used uninitialized in
> this function [*-Wmaybe-uninitialized*]
>                  res = NBC_Sched_op (recvbuf, false, (void *)*(-gap)*,
> true, count,
>                                                              *~^~~~~*
> *nbc_ireduce_scatter.c:* In function ‘*ompi_coll_libnbc_ireduce_scatter*’:
> *nbc_ireduce_scatter.c:101:30:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>    lbuf = (char *)*(span_align - gap)*;
>                   *~~~~~~~~~~~~^~~~~~*
> *nbc_ireduce_scatter.c:* In function ‘
> *ompi_coll_libnbc_ireduce_scatter_inter*’:
> *nbc_ireduce_scatter.c:270:31:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      rbuf = (char *)*(span_align-gap)*;
>                     *~~~~~~~~~~~^~~~~*
> *coll_sm_reduce.c:* In function ‘*reduce_inorder*’:
> *coll_sm_reduce.c:321:33:* *warning: *‘*gap*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>              sbuf = inplace_temp *-* gap;
>                                  *^*
> *coll_spacc_reduce.c:* In function ‘
> *mca_coll_spacc_reduce_intra_redscat_gather*’:
> *coll_spacc_reduce.c:120:27:* *warning: *‘*gap*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      tmp_buf = tmp_buf_raw *-* gap;
>                            *^*
> *osc_pt2pt_data_move.c:* In function ‘*ompi_osc_pt2pt_process_receive*’:
> *osc_pt2pt_data_move.c:1645:9:* *warning: *variable ‘*rc*’ set but not
> used [*-Wunused-but-set-variable*]
>      int *rc*;
>          *^~*
> *osc_rdma_component.c:1288:12:* *warning: *‘*ompi_osc_rdma_get_info*’
> defined but not used [*-Wunused-function*]
>  static int *ompi_osc_rdma_get_info* (struct ompi_win_t *win, struct
> opal_info_t **info_used)
>             *^~~~~~~~~~~~~~~~~~~~~~*
> *osc_rdma_component.c:1254:12:* *warning: *‘*ompi_osc_rdma_set_info*’
> defined but not used [*-Wunused-function*]
>  static int *ompi_osc_rdma_set_info* (struct ompi_win_t *win, struct
> opal_info_t *info)
>             *^~~~~~~~~~~~~~~~~~~~~~*
> *osc_rdma_comm.c:* In function ‘*ompi_osc_rdma_put*’:
> *osc_rdma_comm.c:804:73:* *warning: *‘*offset*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *offset+len*,
>
> *~~~~~~^~~~*
> *osc_rdma_comm.c:797:20:* *note: *‘*offset*’ was declared here
>      ptrdiff_t len, *offset*;
>                     *^~~~~~*
> *osc_rdma_comm.c:* In function ‘*ompi_osc_rdma_rput*’:
> *osc_rdma_comm.c:804:73:* *warning: *‘*offset*’ may be used uninitialized
> in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *offset+len*,
>
> *~~~~~~^~~~*
> *osc_rdma_comm.c:797:20:* *note: *‘*offset*’ was declared here
>      ptrdiff_t len, *offset*;
>                     *^~~~~~*
> *osc_rdma_comm.c:* In function ‘*ompi_osc_rdma_get*’:
> *osc_rdma_comm.c:844:78:* *warning: *‘*source_lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, source_disp,
> *source_span+source_lb*,
>
> *~~~~~~~~~~~^~~~~~~~~~*
> *osc_rdma_comm.c:828:28:* *note: *‘*source_lb*’ was declared here
>      ptrdiff_t source_span, *source_lb*;
>                             *^~~~~~~~~*
> *osc_rdma_comm.c:* In function ‘*ompi_osc_rdma_rget*’:
> *osc_rdma_comm.c:844:78:* *warning: *‘*source_lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, source_disp,
> *source_span+source_lb*,
>
> *~~~~~~~~~~~^~~~~~~~~~*
> *osc_rdma_comm.c:828:28:* *note: *‘*source_lb*’ was declared here
>      ptrdiff_t source_span, *source_lb*;
>                             *^~~~~~~~~*
> *osc_rdma_accumulate.c:* In function ‘*ompi_osc_rdma_get_accumulate*’:
> *osc_rdma_accumulate.c:1040:78:* *warning: *‘*lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *target_span+lb*, &target_address, &target_handle);
>
> *~~~~~~~~~~~^~~*
> *osc_rdma_accumulate.c:1024:15:* *note: *‘*lb*’ was declared here
>      ptrdiff_t *lb*, origin_extent, target_span;
>                *^~*
> *osc_rdma_accumulate.c:* In function ‘*ompi_osc_rdma_rget_accumulate*’:
> *osc_rdma_accumulate.c:1040:78:* *warning: *‘*lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *target_span+lb*, &target_address, &target_handle);
>
> *~~~~~~~~~~~^~~*
> *osc_rdma_accumulate.c:1024:15:* *note: *‘*lb*’ was declared here
>      ptrdiff_t *lb*, origin_extent, target_span;
>                *^~*
> *osc_rdma_accumulate.c:* In function ‘*ompi_osc_rdma_raccumulate*’:
> *osc_rdma_accumulate.c:1040:78:* *warning: *‘*lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *target_span+lb*, &target_address, &target_handle);
>
> *~~~~~~~~~~~^~~*
> *osc_rdma_accumulate.c:1024:15:* *note: *‘*lb*’ was declared here
>      ptrdiff_t *lb*, origin_extent, target_span;
>                *^~*
> *osc_rdma_accumulate.c:* In function ‘*ompi_osc_rdma_accumulate*’:
> *osc_rdma_accumulate.c:1040:78:* *warning: *‘*lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *target_span+lb*, &target_address, &target_handle);
>
> *~~~~~~~~~~~^~~*
> *osc_rdma_accumulate.c:1024:15:* *note: *‘*lb*’ was declared here
>      ptrdiff_t *lb*, origin_extent, target_span;
>                *^~*
> *osc_rdma_accumulate.c:* In function ‘*ompi_osc_rdma_fetch_and_op*’:
> *osc_rdma_accumulate.c:1040:78:* *warning: *‘*lb*’ may be used
> uninitialized in this function [*-Wmaybe-uninitialized*]
>      ret = osc_rdma_get_remote_segment (module, peer, target_disp,
> *target_span+lb*, &target_address, &target_handle);
>
> *~~~~~~~~~~~^~~*
> *osc_rdma_accumulate.c:1024:15:* *note: *‘*lb*’ was declared here
>      ptrdiff_t *lb*, origin_extent, target_span;
>
>
>
> _______________________________________________
> devel mailing list
> devel@lists.open-mpi.org
> https://rfd.newmexicoconsortium.org/mailman/listinfo/devel
>
_______________________________________________
devel mailing list
devel@lists.open-mpi.org
https://rfd.newmexicoconsortium.org/mailman/listinfo/devel

Reply via email to