Skip to content

Commit c657db4

Browse files
committed
Fix indentation
Signed-off-by: Jake Tronge <[email protected]>
1 parent 63f3e6a commit c657db4

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed

ompi/mca/coll/inter/coll_inter_scatterv.c

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ mca_coll_inter_scatterv_inter(const void *sbuf, ompi_count_array_t *scounts,
101101
}
102102
}
103103
/* perform the scatterv locally */
104-
OMPI_COUNT_ARRAY_INIT(&counts_arg, counts);
105-
OMPI_DISP_ARRAY_INIT(&displace_arg, displace);
104+
OMPI_COUNT_ARRAY_INIT(&counts_arg, counts);
105+
OMPI_DISP_ARRAY_INIT(&displace_arg, displace);
106106
err = comm->c_local_comm->c_coll->coll_scatterv(ptmp, &counts_arg, &displace_arg,
107107
rdtype, rbuf, rcount,
108108
rdtype, 0, comm->c_local_comm,
@@ -122,37 +122,37 @@ mca_coll_inter_scatterv_inter(const void *sbuf, ompi_count_array_t *scounts,
122122
}
123123

124124
} else {
125-
/* We must ensure that rank 0 receives a size_t array */
126-
size_t *tmp_scounts_root = malloc(sizeof(size_t) * size);
127-
if (NULL == tmp_scounts_root) {
128-
return OMPI_ERR_OUT_OF_RESOURCE;
129-
}
130-
for (i = 0; i < size; ++i) {
131-
tmp_scounts_root[i] = ompi_count_array_get(scounts, i);
132-
}
125+
/* We must ensure that rank 0 receives a size_t array */
126+
size_t *tmp_scounts_root = malloc(sizeof(size_t) * size);
127+
if (NULL == tmp_scounts_root) {
128+
return OMPI_ERR_OUT_OF_RESOURCE;
129+
}
130+
for (i = 0; i < size; ++i) {
131+
tmp_scounts_root[i] = ompi_count_array_get(scounts, i);
132+
}
133133
err = MCA_PML_CALL(send(tmp_scounts_root, sizeof(size_t) * size, MPI_BYTE, 0,
134134
MCA_COLL_BASE_TAG_SCATTERV,
135135
MCA_PML_BASE_SEND_STANDARD, comm));
136-
free(tmp_scounts_root);
136+
free(tmp_scounts_root);
137137

138138
if (OMPI_SUCCESS != err) {
139139
return err;
140140
}
141141

142-
/* TODO:BIGCOUNT: Remove these temporaries once ompi_datatype is updated for bigcount */
143-
int *tmp_scounts = malloc(sizeof(int) * size);
144-
int *tmp_disps = malloc(sizeof(int) * size);
145-
if (NULL == tmp_scounts || NULL == tmp_disps) {
146-
return OMPI_ERR_OUT_OF_RESOURCE;
147-
}
148-
for (i = 0; i < size; ++i) {
149-
tmp_scounts[i] = (int) ompi_count_array_get(scounts, i);
150-
tmp_disps[i] = (int) ompi_disp_array_get(disps, i);
151-
}
142+
/* TODO:BIGCOUNT: Remove these temporaries once ompi_datatype is updated for bigcount */
143+
int *tmp_scounts = malloc(sizeof(int) * size);
144+
int *tmp_disps = malloc(sizeof(int) * size);
145+
if (NULL == tmp_scounts || NULL == tmp_disps) {
146+
return OMPI_ERR_OUT_OF_RESOURCE;
147+
}
148+
for (i = 0; i < size; ++i) {
149+
tmp_scounts[i] = (int) ompi_count_array_get(scounts, i);
150+
tmp_disps[i] = (int) ompi_disp_array_get(disps, i);
151+
}
152152
ompi_datatype_create_indexed(size,tmp_scounts,tmp_disps,sdtype,&ndtype);
153153
ompi_datatype_commit(&ndtype);
154-
free(tmp_scounts);
155-
free(tmp_disps);
154+
free(tmp_scounts);
155+
free(tmp_disps);
156156

157157
err = MCA_PML_CALL(send(sbuf, 1, ndtype, 0,
158158
MCA_COLL_BASE_TAG_SCATTERV,

ompi/mca/coll/ucc/coll_ucc_allgatherv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ static inline ucc_status_t mca_coll_ucc_allgatherv_init(const void *sbuf, int sc
5252
};
5353

5454
if (MPI_IN_PLACE == sbuf) {
55-
coll.mask |= UCC_COLL_ARGS_FIELD_FLAGS;
55+
coll.mask = UCC_COLL_ARGS_FIELD_FLAGS;
5656
coll.flags |= UCC_COLL_ARGS_FLAG_IN_PLACE;
5757
}
5858
COLL_UCC_REQ_INIT(coll_req, req, coll, ucc_module);

ompi/mca/io/ompio/io_ompio.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ int ompi_io_ompio_generate_current_file_view (struct ompio_file_t *fh,
120120
if (mca_io_ompio_record_offset_info){
121121

122122
int tot_entries=0, *recvcounts=NULL, *displs=NULL;
123-
ompi_count_array_t recvcounts_desc;
124-
ompi_disp_array_t displs_desc;
123+
ompi_count_array_t recvcounts_desc;
124+
ompi_disp_array_t displs_desc;
125125
mca_io_ompio_offlen_array_t *per_process=NULL;
126126
mca_io_ompio_offlen_array_t *all_process=NULL;
127127
int *sorted=NULL, *column_list=NULL, *values=NULL;
@@ -251,8 +251,8 @@ int ompi_io_ompio_generate_current_file_view (struct ompio_file_t *fh,
251251
}
252252
}
253253
}
254-
OMPI_COUNT_ARRAY_INIT(&recvcounts_desc, recvcounts);
255-
OMPI_DISP_ARRAY_INIT(&displs_desc, displs);
254+
OMPI_COUNT_ARRAY_INIT(&recvcounts_desc, recvcounts);
255+
OMPI_DISP_ARRAY_INIT(&displs_desc, displs);
256256
fh->f_comm->c_coll->coll_gatherv (per_process,
257257
k,
258258
io_array_type,

0 commit comments

Comments
 (0)