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.
Этот коммит содержится в:
родитель
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 );
|
sh->comm, sh->comm->c_coll.coll_gather_module );
|
||||||
|
|
||||||
if ( 0 == rank ) {
|
if ( 0 == rank ) {
|
||||||
for (i = 0; i < size; i++){
|
prev_offset = offbuff[0];
|
||||||
prev_offset = offbuff[0];
|
offbuff[0] = sh->global_offset;
|
||||||
offbuff[0] = sh->global_offset;
|
|
||||||
|
for (i = 1; i < size ; i++){
|
||||||
for (i = 1; i < size ; i++){
|
temp = offbuff[i];
|
||||||
temp = offbuff[i];
|
offbuff[i] = offbuff[i - 1] + prev_offset;
|
||||||
offbuff[i] = offbuff[i - 1] + prev_offset;
|
prev_offset = temp;
|
||||||
prev_offset = temp;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 0; i < size; i++){
|
for (i = 0; i < size; i++){
|
||||||
global_offset = offbuff[size - 1] + prev_offset;
|
global_offset = offbuff[size - 1] + prev_offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user