1
1

Cleanup a loop that couldn't possibly execute as the outer loop indexed was being reused by the inner loops, leaving the index at the cutoff point after the first iteration

cmr=v1.7.4:reviewer=edgar:subject=Cleanup loop in sharedfp

This commit was SVN r30059.
Этот коммит содержится в:
Ralph Castain 2013-12-23 18:34:34 +00:00
родитель 3be4536d9b
Коммит 9eebb79d54

Просмотреть файл

@ -153,21 +153,18 @@ int mca_sharedfp_individual_write_ordered (mca_io_ompio_file_t *fh,
sh->comm, sh->comm->c_coll.coll_gather_module );
if ( 0 == rank ) {
for (i = 0; i < size; i++){
prev_offset = offbuff[0];
offbuff[0] = sh->global_offset;
prev_offset = offbuff[0];
offbuff[0] = sh->global_offset;
for (i = 1; i < size ; i++){
temp = offbuff[i];
offbuff[i] = offbuff[i - 1] + prev_offset;
prev_offset = temp;
}
for (i = 1; i < size ; i++){
temp = offbuff[i];
offbuff[i] = offbuff[i - 1] + prev_offset;
prev_offset = temp;
}
for (i = 0; i < size; i++){
global_offset = offbuff[size - 1] + prev_offset;
}
}
for (i = 0; i < size; i++){
global_offset = offbuff[size - 1] + prev_offset;
}
}