1
1

coll/spacc: silence more coverity warnings in mca_coll_spacc_allreduce_intra_redscat_allgather()

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2017-06-02 16:24:56 +09:00
родитель 2f0f476642
Коммит 5fceca235b

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

@ -281,7 +281,6 @@ int mca_coll_spacc_allreduce_intra_redscat_allgather(
wsize = rcount[step]; wsize = rcount[step];
step++; step++;
} }
}
/* /*
* Assertion: each process has 1 / p' of the total reduction result: * Assertion: each process has 1 / p' of the total reduction result:
* rcount[nsteps - 1] elements in the rbuf[rindex[nsteps - 1], ...]. * rcount[nsteps - 1] elements in the rbuf[rindex[nsteps - 1], ...].
@ -295,8 +294,7 @@ int mca_coll_spacc_allreduce_intra_redscat_allgather(
* to recursive doubling (previous step). * to recursive doubling (previous step).
*/ */
if (vrank != -1) { step--;
step = nsteps - 1; /* step = ilog2(p') - 1 */
for (int mask = nprocs_pof2 >> 1; mask > 0; mask >>= 1) { for (int mask = nprocs_pof2 >> 1; mask > 0; mask >>= 1) {
int vdest = vrank ^ mask; int vdest = vrank ^ mask;