coll/libnbc/ireduce: silence Coverity warning CID 1440360
Signed-off-by: Mikhail Kurnosov <mkurnosov@gmail.com>
Этот коммит содержится в:
родитель
6213d23f0b
Коммит
8b511c7889
@ -655,6 +655,10 @@ static inline int red_sched_redscat_gather(
|
||||
|
||||
/* Find nearest power-of-two less than or equal to comm_size */
|
||||
int nsteps = opal_hibit(comm_size, comm->c_cube_dim + 1); /* ilog2(comm_size) */
|
||||
if (nsteps < 1) {
|
||||
/* This case never happens (for comm_size < 2 other algorithms are used) */
|
||||
return OMPI_ERR_NOT_SUPPORTED;
|
||||
}
|
||||
int nprocs_pof2 = 1 << nsteps; /* flp2(comm_size) */
|
||||
|
||||
ptrdiff_t lb, extent;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user