|
16 | 16 | * Copyright (c) 2015-2018 Research Organization for Information Science |
17 | 17 | * and Technology (RIST). All rights reserved. |
18 | 18 | * Copyright (c) 2017 IBM Corporation. All rights reserved. |
| 19 | + * Copyright (c) 2023 Jeffrey M. Squyres. All rights reserved. |
19 | 20 | * $COPYRIGHT$ |
20 | 21 | * |
21 | 22 | * Additional copyrights may follow |
@@ -195,16 +196,13 @@ int mca_common_ompio_forced_grouping ( ompio_file_t *fh, |
195 | 196 | int rest = fh->f_size % num_groups; |
196 | 197 | int flag = OMPI_COMM_IS_MAPBY_NODE (&ompi_mpi_comm_world.comm); |
197 | 198 | int k=0, p=0, g=0; |
198 | | - int total_procs = 0; |
199 | 199 |
|
200 | 200 | for ( k=0, p=0; p<num_groups; p++ ) { |
201 | 201 | if ( p < rest ) { |
202 | 202 | contg_groups[p].procs_per_contg_group = group_size+1; |
203 | | - total_procs +=(group_size+1); |
204 | 203 | } |
205 | 204 | else { |
206 | 205 | contg_groups[p].procs_per_contg_group = group_size; |
207 | | - total_procs +=group_size; |
208 | 206 | } |
209 | 207 |
|
210 | 208 | if ( flag ) { |
@@ -1269,9 +1267,6 @@ int mca_common_ompio_prepare_to_group(ompio_file_t *fh, |
1269 | 1267 | int i = 0; |
1270 | 1268 | int j = 0; |
1271 | 1269 | int k = 0; |
1272 | | - int merge_count = 0; |
1273 | | - int split_count = 0; //not req? |
1274 | | - int retain_as_is_count = 0; //not req? |
1275 | 1270 | int ret=OMPI_SUCCESS; |
1276 | 1271 |
|
1277 | 1272 | //Store start offset and length in an array //also add bytes per process |
@@ -1367,16 +1362,13 @@ int mca_common_ompio_prepare_to_group(ompio_file_t *fh, |
1367 | 1362 | if((size_t)(aggr_bytes_per_group_tmp[i])> |
1368 | 1363 | (size_t)OMPIO_MCA_GET(fh, bytes_per_agg)){ |
1369 | 1364 | decision_list_tmp[i] = OMPIO_SPLIT; |
1370 | | - split_count++; |
1371 | 1365 | } |
1372 | 1366 | else if((size_t)(aggr_bytes_per_group_tmp[i])< |
1373 | 1367 | (size_t)OMPIO_MCA_GET(fh, bytes_per_agg)){ |
1374 | 1368 | decision_list_tmp[i] = OMPIO_MERGE; |
1375 | | - merge_count++; |
1376 | 1369 | } |
1377 | 1370 | else{ |
1378 | 1371 | decision_list_tmp[i] = OMPIO_RETAIN; |
1379 | | - retain_as_is_count++; |
1380 | 1372 | } |
1381 | 1373 | } |
1382 | 1374 |
|
|
0 commit comments