We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 593db29 + 8b511c7 commit 96f8805Copy full SHA for 96f8805
ompi/mca/coll/libnbc/nbc_ireduce.c
@@ -656,6 +656,10 @@ static inline int red_sched_redscat_gather(
656
657
/* Find nearest power-of-two less than or equal to comm_size */
658
int nsteps = opal_hibit(comm_size, comm->c_cube_dim + 1); /* ilog2(comm_size) */
659
+ if (nsteps < 1) {
660
+ /* This case never happens (for comm_size < 2 other algorithms are used) */
661
+ return OMPI_ERR_NOT_SUPPORTED;
662
+ }
663
int nprocs_pof2 = 1 << nsteps; /* flp2(comm_size) */
664
665
ptrdiff_t lb, extent;
0 commit comments