Skip to content

Commit 7261255

Browse files
committed
coll/tuned: Mark global static algorithm as const
Signed-off-by: Joseph Schuchart <[email protected]>
1 parent 06f605c commit 7261255

14 files changed

+35
-26
lines changed

ompi/mca/coll/tuned/coll_tuned_allgather_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2004-2017 The University of Tennessee and The University
2+
* Copyright (c) 2004-2020 The University of Tennessee and The University
33
* of Tennessee Research Foundation. All rights
44
* reserved.
55
* Copyright (c) 2015 Research Organization for Information Science
@@ -31,7 +31,7 @@ static int coll_tuned_allgather_tree_fanout;
3131
static int coll_tuned_allgather_chain_fanout;
3232

3333
/* valid values for coll_tuned_allgather_forced_algorithm */
34-
static mca_base_var_enum_value_t allgather_algorithms[] = {
34+
static const mca_base_var_enum_value_t allgather_algorithms[] = {
3535
{0, "ignore"},
3636
{1, "linear"},
3737
{2, "bruck"},

ompi/mca/coll/tuned/coll_tuned_allgatherv_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015 Research Organization for Information Science
@@ -31,7 +31,7 @@ static int coll_tuned_allgatherv_tree_fanout;
3131
static int coll_tuned_allgatherv_chain_fanout;
3232

3333
/* valid values for coll_tuned_allgatherv_forced_algorithm */
34-
static mca_base_var_enum_value_t allgatherv_algorithms[] = {
34+
static const mca_base_var_enum_value_t allgatherv_algorithms[] = {
3535
{0, "ignore"},
3636
{1, "default"},
3737
{2, "bruck"},

ompi/mca/coll/tuned/coll_tuned_allreduce_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015-2018 Research Organization for Information Science
@@ -34,7 +34,7 @@ static int coll_tuned_allreduce_tree_fanout;
3434
static int coll_tuned_allreduce_chain_fanout;
3535

3636
/* valid values for coll_tuned_allreduce_forced_algorithm */
37-
static mca_base_var_enum_value_t allreduce_algorithms[] = {
37+
static const mca_base_var_enum_value_t allreduce_algorithms[] = {
3838
{0, "ignore"},
3939
{1, "basic_linear"},
4040
{2, "nonoverlapping"},

ompi/mca/coll/tuned/coll_tuned_alltoall_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015 Research Organization for Information Science
@@ -32,7 +32,7 @@ static int coll_tuned_alltoall_tree_fanout;
3232
static int coll_tuned_alltoall_chain_fanout;
3333

3434
/* valid values for coll_tuned_alltoall_forced_algorithm */
35-
static mca_base_var_enum_value_t alltoall_algorithms[] = {
35+
static const mca_base_var_enum_value_t alltoall_algorithms[] = {
3636
{0, "ignore"},
3737
{1, "linear"},
3838
{2, "pairwise"},

ompi/mca/coll/tuned/coll_tuned_alltoallv_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015 Research Organization for Information Science
@@ -29,7 +29,7 @@
2929
static int coll_tuned_alltoallv_forced_algorithm = 0;
3030

3131
/* valid values for coll_tuned_alltoallv_forced_algorithm */
32-
static mca_base_var_enum_value_t alltoallv_algorithms[] = {
32+
static const mca_base_var_enum_value_t alltoallv_algorithms[] = {
3333
{0, "ignore"},
3434
{1, "basic_linear"},
3535
{2, "pairwise"},

ompi/mca/coll/tuned/coll_tuned_barrier_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2015 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* $COPYRIGHT$
@@ -27,7 +27,7 @@
2727
static int coll_tuned_barrier_forced_algorithm = 0;
2828

2929
/* valid values for coll_tuned_barrier_forced_algorithm */
30-
static mca_base_var_enum_value_t barrier_algorithms[] = {
30+
static const mca_base_var_enum_value_t barrier_algorithms[] = {
3131
{0, "ignore"},
3232
{1, "linear"},
3333
{2, "double_ring"},

ompi/mca/coll/tuned/coll_tuned_bcast_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015 Research Organization for Information Science
@@ -34,7 +34,7 @@ static int coll_tuned_bcast_chain_fanout;
3434
static int coll_tuned_bcast_knomial_radix = 4;
3535

3636
/* valid values for coll_tuned_bcast_forced_algorithm */
37-
static mca_base_var_enum_value_t bcast_algorithms[] = {
37+
static const mca_base_var_enum_value_t bcast_algorithms[] = {
3838
{0, "ignore"},
3939
{1, "basic_linear"},
4040
{2, "chain"},

ompi/mca/coll/tuned/coll_tuned_exscan_decision.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
/*
33
* Copyright (c) 2018 Research Organization for Information Science
44
* and Technology (RIST). All rights reserved.
5+
* Copyright (c) 2020 The University of Tennessee and The University
6+
* of Tennessee Research Foundation. All rights
7+
* reserved.
58
* $COPYRIGHT$
69
*
710
* Additional copyrights may follow
@@ -26,7 +29,7 @@
2629
static int coll_tuned_exscan_forced_algorithm = 0;
2730

2831
/* valid values for coll_tuned_exscan_forced_algorithm */
29-
static mca_base_var_enum_value_t exscan_algorithms[] = {
32+
static const mca_base_var_enum_value_t exscan_algorithms[] = {
3033
{0, "ignore"},
3134
{1, "linear"},
3235
{2, "recursive_doubling"},

ompi/mca/coll/tuned/coll_tuned_gather_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015-2017 Research Organization for Information Science
@@ -32,7 +32,7 @@ static int coll_tuned_gather_tree_fanout;
3232
static int coll_tuned_gather_chain_fanout;
3333

3434
/* valid values for coll_tuned_gather_forced_algorithm */
35-
static mca_base_var_enum_value_t gather_algorithms[] = {
35+
static const mca_base_var_enum_value_t gather_algorithms[] = {
3636
{0, "ignore"},
3737
{1, "basic_linear"},
3838
{2, "binomial"},

ompi/mca/coll/tuned/coll_tuned_reduce_decision.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2004-2017 The University of Tennessee and The University
3+
* Copyright (c) 2004-2020 The University of Tennessee and The University
44
* of Tennessee Research Foundation. All rights
55
* reserved.
66
* Copyright (c) 2015-2018 Research Organization for Information Science
@@ -33,7 +33,7 @@ static int coll_tuned_reduce_tree_fanout;
3333
static int coll_tuned_reduce_chain_fanout;
3434

3535
/* valid values for coll_tuned_reduce_forced_algorithm */
36-
static mca_base_var_enum_value_t reduce_algorithms[] = {
36+
static const mca_base_var_enum_value_t reduce_algorithms[] = {
3737
{0, "ignore"},
3838
{1, "linear"},
3939
{2, "chain"},

0 commit comments

Comments
 (0)