1
1

Merge pull request #5948 from mkurnosov/coll-ireduce-silence-coverity

coll/libnbc/ireduce: silence Coverity warning CID 1440360
Этот коммит содержится в:
bosilca 2018-12-24 12:59:16 -05:00 коммит произвёл GitHub
родитель 593db292da 8b511c7889
Коммит 96f88052e9
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23

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

@ -656,6 +656,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;