Merge pull request #8159 from jsquyres/pr/fix-coll-and-adapt-warnings
coll/adapt and coll/han: fix trivial compiler warnings
Этот коммит содержится в:
Коммит
25e47411e0
@ -2,6 +2,7 @@
|
|||||||
* Copyright (c) 2014-2020 The University of Tennessee and The University
|
* Copyright (c) 2014-2020 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -524,7 +525,6 @@ int ompi_coll_adapt_ireduce_generic(const void *sbuf, void *rbuf, int count,
|
|||||||
char **accumbuf = NULL;
|
char **accumbuf = NULL;
|
||||||
opal_mutex_t *mutex_op_list;
|
opal_mutex_t *mutex_op_list;
|
||||||
/* A list to store the segments need to be sent */
|
/* A list to store the segments need to be sent */
|
||||||
opal_list_t *recv_list;
|
|
||||||
mca_pml_base_send_mode_t sendmode = (mca_coll_adapt_component.adapt_ireduce_synchronous_send)
|
mca_pml_base_send_mode_t sendmode = (mca_coll_adapt_component.adapt_ireduce_synchronous_send)
|
||||||
? MCA_PML_BASE_SEND_SYNCHRONOUS : MCA_PML_BASE_SEND_STANDARD;
|
? MCA_PML_BASE_SEND_SYNCHRONOUS : MCA_PML_BASE_SEND_STANDARD;
|
||||||
|
|
||||||
@ -604,7 +604,7 @@ int ompi_coll_adapt_ireduce_generic(const void *sbuf, void *rbuf, int count,
|
|||||||
/* If the current process is not leaf */
|
/* If the current process is not leaf */
|
||||||
if (tree->tree_nextsize > 0) {
|
if (tree->tree_nextsize > 0) {
|
||||||
size_t num_allocate_elems = mca_coll_adapt_component.adapt_inbuf_free_list_min;
|
size_t num_allocate_elems = mca_coll_adapt_component.adapt_inbuf_free_list_min;
|
||||||
if (tree->tree_nextsize * num_segs < num_allocate_elems) {
|
if (((size_t) tree->tree_nextsize * num_segs) < num_allocate_elems) {
|
||||||
num_allocate_elems = tree->tree_nextsize * num_segs;
|
num_allocate_elems = tree->tree_nextsize * num_segs;
|
||||||
}
|
}
|
||||||
opal_free_list_init(&con->inbuf_list,
|
opal_free_list_init(&con->inbuf_list,
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
* Copyright (c) 2014-2020 The University of Tennessee and The University
|
* Copyright (c) 2014-2020 The University of Tennessee and The University
|
||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -20,7 +21,7 @@ typedef struct adapt_topology_cache_item_t {
|
|||||||
opal_list_item_t super;
|
opal_list_item_t super;
|
||||||
ompi_coll_tree_t *tree;
|
ompi_coll_tree_t *tree;
|
||||||
int root;
|
int root;
|
||||||
int algorithm;
|
ompi_coll_adapt_algorithm_t algorithm;
|
||||||
} adapt_topology_cache_item_t;
|
} adapt_topology_cache_item_t;
|
||||||
|
|
||||||
OBJ_CLASS_DECLARATION(adapt_topology_cache_item_t);
|
OBJ_CLASS_DECLARATION(adapt_topology_cache_item_t);
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
||||||
*
|
*
|
||||||
|
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -410,8 +411,10 @@ mca_coll_han_allreduce_intra_simple(const void *sbuf,
|
|||||||
int root_low_rank = 0;
|
int root_low_rank = 0;
|
||||||
int low_rank;
|
int low_rank;
|
||||||
int ret;
|
int ret;
|
||||||
mca_coll_han_component_t *cs = &mca_coll_han_component;
|
|
||||||
mca_coll_han_module_t *han_module = (mca_coll_han_module_t *)module;
|
mca_coll_han_module_t *han_module = (mca_coll_han_module_t *)module;
|
||||||
|
#if OPAL_ENABLE_DEBUG
|
||||||
|
mca_coll_han_component_t *cs = &mca_coll_han_component;
|
||||||
|
#endif
|
||||||
|
|
||||||
OPAL_OUTPUT_VERBOSE((10, cs->han_output,
|
OPAL_OUTPUT_VERBOSE((10, cs->han_output,
|
||||||
"[OMPI][han] in mca_coll_han_reduce_intra_simple\n"));
|
"[OMPI][han] in mca_coll_han_reduce_intra_simple\n"));
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
||||||
|
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -221,7 +222,10 @@ mca_coll_han_bcast_intra_simple(void *buff,
|
|||||||
/* create the subcommunicators */
|
/* create the subcommunicators */
|
||||||
mca_coll_han_module_t *han_module = (mca_coll_han_module_t *)module;
|
mca_coll_han_module_t *han_module = (mca_coll_han_module_t *)module;
|
||||||
ompi_communicator_t *low_comm, *up_comm;
|
ompi_communicator_t *low_comm, *up_comm;
|
||||||
int err, w_rank = ompi_comm_rank(comm);
|
int err;
|
||||||
|
#if OPAL_ENABLE_DEBUG
|
||||||
|
int w_rank = ompi_comm_rank(comm);
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Create the subcommunicators */
|
/* Create the subcommunicators */
|
||||||
err = mca_coll_han_comm_create_new(comm, han_module);
|
err = mca_coll_han_comm_create_new(comm, han_module);
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
* of Tennessee Research Foundation. All rights
|
* of Tennessee Research Foundation. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
* Copyright (c) 2020 Bull S.A.S. All rights reserved.
|
||||||
|
* Copyright (c) 2020 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -490,7 +491,9 @@ ompi_coll_han_reorder_gather(const void *sbuf,
|
|||||||
int * topo)
|
int * topo)
|
||||||
{
|
{
|
||||||
int i, topolevel = 2; // always 2 levels in topo
|
int i, topolevel = 2; // always 2 levels in topo
|
||||||
|
#if OPAL_ENABLE_DEBUG
|
||||||
int w_rank = ompi_comm_rank(comm);
|
int w_rank = ompi_comm_rank(comm);
|
||||||
|
#endif
|
||||||
int w_size = ompi_comm_size(comm);
|
int w_size = ompi_comm_size(comm);
|
||||||
ptrdiff_t rextent;
|
ptrdiff_t rextent;
|
||||||
ompi_datatype_type_extent(dtype, &rextent);
|
ompi_datatype_type_extent(dtype, &rextent);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user