[mpich-discuss] [patch] fix bug in NEWMAD and MXM netmods

Seo, Sangmin sseo at anl.gov
Tue Dec 2 22:06:44 CST 2014


Hi Kuleshov,

Thanks for reporting this bug and patch.

I have pushed your patch to mpich/master. You can find it from http://git.mpich.org/mpich.git/commit/8bdfaf741104f88c27b8a845d4ca325ad5005122.

Best regards,
Sangmin


On Nov 29, 2014, at 2:14 PM, Kuleshov Aleksey <rndfax at yandex.ru<mailto:rndfax at yandex.ru>> wrote:

diff --git a/src/mpid/ch3/channels/nemesis/netmod/mxm/mxm_poll.c b/src/mpid/ch3/channels/nemesis/netmod/mxm/mxm_poll.c
index e8bddc3..752a1f9 100644
--- a/src/mpid/ch3/channels/nemesis/netmod/mxm/mxm_poll.c
+++ b/src/mpid/ch3/channels/nemesis/netmod/mxm/mxm_poll.c
@@ -482,8 +482,8 @@ static int _mxm_process_rdtype(MPID_Request ** rreq_p, MPI_Datatype datatype,
        *iov_count = n_iov;
    }
    else {
-        int packsize = 0;
-        MPIR_Pack_size_impl(rreq->dev.user_count, rreq->dev.datatype, (MPI_Aint *) & packsize);
+        MPI_Aint packsize = 0;
+        MPIR_Pack_size_impl(rreq->dev.user_count, rreq->dev.datatype, &packsize);
        rreq->dev.tmpbuf = MPIU_Malloc((size_t) packsize);
        MPIU_Assert(rreq->dev.tmpbuf);
        rreq->dev.tmpbuf_sz = packsize;
diff --git a/src/mpid/ch3/channels/nemesis/netmod/newmad/newmad_poll.c b/src/mpid/ch3/channels/nemesis/netmod/newmad/newmad_poll.c
index 2dba872..5a32515 100644
--- a/src/mpid/ch3/channels/nemesis/netmod/newmad/newmad_poll.c
+++ b/src/mpid/ch3/channels/nemesis/netmod/newmad/newmad_poll.c
@@ -575,7 +575,7 @@ int MPID_nem_newmad_process_rdtype(MPID_Request **rreq_p, MPID_Datatype * dt_ptr
    }
    else
    {
-       int packsize = 0;
+       MPI_Aint packsize = 0;
       MPIR_Pack_size_impl(rreq->dev.user_count, rreq->dev.datatype, &packsize);
       rreq->dev.tmpbuf = MPIU_Malloc((size_t) packsize);
       MPIU_Assert(rreq->dev.tmpbuf);
_______________________________________________
discuss mailing list     discuss at mpich.org<mailto:discuss at mpich.org>
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20141203/ff1a7057/attachment.html>
-------------- next part --------------
_______________________________________________
discuss mailing list     discuss at mpich.org
To manage subscription options or unsubscribe:
https://lists.mpich.org/mailman/listinfo/discuss


More information about the discuss mailing list