[mpich-discuss] mpich2.1.4.1p1: intercomm_create.c

Richard Muddle rlmuddle at googlemail.com
Thu Apr 18 21:43:10 CDT 2013


In src/mpi/comm/intercomm_create.c from lines 58, the calculation of maxi
seems to be incorrect when maxlpid is a multiple of 32.

    /* Compute the max index and zero the pids array */
    maxi = (maxlpid + 31) / 32;

    if (maxi >= MAX_LPID32_ARRAY) {
MPIU_CHKLMEM_MALLOC(lpidmask,int32_t*,maxi*sizeof(int32_t),
    mpi_errno,"lpidmask");
    }
    else {
lpidmask = lpidmaskPrealloc;
    }

    for (i=0; i<maxi; i++) lpidmask[i] = 0;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20130418/c2ce9bc0/attachment.html>


More information about the discuss mailing list