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.
1 parent 6213d23 commit 8b511c7Copy full SHA for 8b511c7
ompi/mca/coll/libnbc/nbc_ireduce.c
@@ -655,6 +655,10 @@ static inline int red_sched_redscat_gather(
655
656
/* Find nearest power-of-two less than or equal to comm_size */
657
int nsteps = opal_hibit(comm_size, comm->c_cube_dim + 1); /* ilog2(comm_size) */
658
+ if (nsteps < 1) {
659
+ /* This case never happens (for comm_size < 2 other algorithms are used) */
660
+ return OMPI_ERR_NOT_SUPPORTED;
661
+ }
662
int nprocs_pof2 = 1 << nsteps; /* flp2(comm_size) */
663
664
ptrdiff_t lb, extent;
0 commit comments