1313 * Copyright (c) 2009 Oak Ridge National Labs. All rights reserved.
1414 * Copyright (c) 2012-2013 Los Alamos National Security, Inc. All rights reserved.
1515 * Copyright (c) 2012-2013 Inria. All rights reserved.
16- * Copyright (c) 2014 Research Organization for Information Science
16+ * Copyright (c) 2014-2015 Research Organization for Information Science
1717 * and Technology (RIST). All rights reserved.
1818 * $COPYRIGHT$
1919 *
@@ -73,8 +73,8 @@ OMPI_DECLSPEC int
7373mca_topo_base_cart_create (mca_topo_base_module_t * topo_module ,
7474 ompi_communicator_t * old_comm ,
7575 int ndims ,
76- int * dims ,
77- int * periods ,
76+ const int * dims ,
77+ const int * periods ,
7878 bool reorder ,
7979 ompi_communicator_t * * comm_topo );
8080
@@ -98,11 +98,11 @@ mca_topo_base_cart_get(ompi_communicator_t *comm,
9898OMPI_DECLSPEC int
9999mca_topo_base_cart_map (ompi_communicator_t * comm ,
100100 int ndims ,
101- int * dims , int * periods , int * newrank );
101+ const int * dims , const int * periods , int * newrank );
102102
103103OMPI_DECLSPEC int
104104mca_topo_base_cart_rank (ompi_communicator_t * comm ,
105- int * coords ,
105+ const int * coords ,
106106 int * rank );
107107
108108OMPI_DECLSPEC int
@@ -114,7 +114,7 @@ mca_topo_base_cart_shift(ompi_communicator_t *comm,
114114
115115OMPI_DECLSPEC int
116116mca_topo_base_cart_sub (ompi_communicator_t * comm ,
117- int * remain_dims ,
117+ const int * remain_dims ,
118118 ompi_communicator_t * * new_comm );
119119
120120OMPI_DECLSPEC int
@@ -126,8 +126,8 @@ OMPI_DECLSPEC int
126126mca_topo_base_graph_create (mca_topo_base_module_t * topo_module ,
127127 ompi_communicator_t * old_comm ,
128128 int nnodes ,
129- int * index ,
130- int * edges ,
129+ const int * index ,
130+ const int * edges ,
131131 bool reorder ,
132132 ompi_communicator_t * * new_comm );
133133
@@ -141,7 +141,7 @@ mca_topo_base_graph_get(ompi_communicator_t *comm,
141141OMPI_DECLSPEC int
142142mca_topo_base_graph_map (ompi_communicator_t * comm ,
143143 int nnodes ,
144- int * index , int * edges , int * newrank );
144+ const int * index , const int * edges , int * newrank );
145145
146146OMPI_DECLSPEC int
147147mca_topo_base_graph_neighbors (ompi_communicator_t * comm ,
@@ -161,25 +161,25 @@ mca_topo_base_graph_neighbors_count(ompi_communicator_t *comm,
161161OMPI_DECLSPEC int
162162mca_topo_base_dist_graph_distribute (mca_topo_base_module_t * module ,
163163 ompi_communicator_t * comm ,
164- int n , int nodes [],
165- int degrees [], int targets [],
166- int weights [],
164+ int n , const int nodes [],
165+ const int degrees [], const int targets [],
166+ const int weights [],
167167 mca_topo_base_comm_dist_graph_2_2_0_t * * ptopo );
168168
169169OMPI_DECLSPEC int
170170mca_topo_base_dist_graph_create (mca_topo_base_module_t * module ,
171171 ompi_communicator_t * old_comm ,
172- int n , int nodes [],
173- int degrees [], int targets [], int weights [],
172+ int n , const int nodes [],
173+ const int degrees [], const int targets [], const int weights [],
174174 ompi_info_t * info , int reorder ,
175175 ompi_communicator_t * * new_comm );
176176
177177OMPI_DECLSPEC int
178178mca_topo_base_dist_graph_create_adjacent (mca_topo_base_module_t * module ,
179179 ompi_communicator_t * old_comm ,
180- int indegree , int sources [],
181- int sourceweights [], int outdegree ,
182- int destinations [], int destweights [],
180+ int indegree , const int sources [],
181+ const int sourceweights [], int outdegree ,
182+ const int destinations [], const int destweights [],
183183 ompi_info_t * info , int reorder ,
184184 ompi_communicator_t * * comm_dist_graph );
185185
0 commit comments